diff --git a/ground/src/libs/glc_lib/include/GLC_3DRep b/ground/src/libs/glc_lib/include/GLC_3DRep deleted file mode 100644 index f9d6643f7..000000000 --- a/ground/src/libs/glc_lib/include/GLC_3DRep +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_3drep.h" diff --git a/ground/src/libs/glc_lib/include/GLC_3DViewCollection b/ground/src/libs/glc_lib/include/GLC_3DViewCollection deleted file mode 100644 index 88dea1166..000000000 --- a/ground/src/libs/glc_lib/include/GLC_3DViewCollection +++ /dev/null @@ -1 +0,0 @@ -#include "sceneGraph/glc_3dviewcollection.h" diff --git a/ground/src/libs/glc_lib/include/GLC_3DViewInstance b/ground/src/libs/glc_lib/include/GLC_3DViewInstance deleted file mode 100644 index 93c72b1c1..000000000 --- a/ground/src/libs/glc_lib/include/GLC_3DViewInstance +++ /dev/null @@ -1 +0,0 @@ -#include "sceneGraph/glc_3dviewinstance.h" diff --git a/ground/src/libs/glc_lib/include/GLC_3DWidget b/ground/src/libs/glc_lib/include/GLC_3DWidget deleted file mode 100644 index e73fa2731..000000000 --- a/ground/src/libs/glc_lib/include/GLC_3DWidget +++ /dev/null @@ -1 +0,0 @@ -#include "3DWidget/glc_3dwidget.h" diff --git a/ground/src/libs/glc_lib/include/GLC_3DWidgetManager b/ground/src/libs/glc_lib/include/GLC_3DWidgetManager deleted file mode 100644 index b4b055698..000000000 --- a/ground/src/libs/glc_lib/include/GLC_3DWidgetManager +++ /dev/null @@ -1 +0,0 @@ -#include "3DWidget/glc_3dwidgetmanager.h" diff --git a/ground/src/libs/glc_lib/include/GLC_3DWidgetManagerHandle b/ground/src/libs/glc_lib/include/GLC_3DWidgetManagerHandle deleted file mode 100644 index 6dfcf9197..000000000 --- a/ground/src/libs/glc_lib/include/GLC_3DWidgetManagerHandle +++ /dev/null @@ -1 +0,0 @@ -#include "3DWidget/glc_3dwidgetmanagerhandle.h" diff --git a/ground/src/libs/glc_lib/include/GLC_AbstractManipulator b/ground/src/libs/glc_lib/include/GLC_AbstractManipulator deleted file mode 100644 index 55c3a2d07..000000000 --- a/ground/src/libs/glc_lib/include/GLC_AbstractManipulator +++ /dev/null @@ -1 +0,0 @@ -#include "3DWidget/glc_abstractmanipulator.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Arrow b/ground/src/libs/glc_lib/include/GLC_Arrow deleted file mode 100644 index f951fa027..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Arrow +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_arrow.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Attribute b/ground/src/libs/glc_lib/include/GLC_Attribute deleted file mode 100644 index 048eef5a8..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Attribute +++ /dev/null @@ -1 +0,0 @@ -#include "sceneGraph/glc_attribute.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Axis b/ground/src/libs/glc_lib/include/GLC_Axis deleted file mode 100644 index 671eb7ece..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Axis +++ /dev/null @@ -1 +0,0 @@ -#include "3DWidget/glc_axis.h" diff --git a/ground/src/libs/glc_lib/include/GLC_BSRep b/ground/src/libs/glc_lib/include/GLC_BSRep deleted file mode 100644 index b6e3b5cca..000000000 --- a/ground/src/libs/glc_lib/include/GLC_BSRep +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_bsrep.h" diff --git a/ground/src/libs/glc_lib/include/GLC_BoundingBox b/ground/src/libs/glc_lib/include/GLC_BoundingBox deleted file mode 100644 index 676d13bdb..000000000 --- a/ground/src/libs/glc_lib/include/GLC_BoundingBox +++ /dev/null @@ -1 +0,0 @@ -#include "glc_boundingbox.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Box b/ground/src/libs/glc_lib/include/GLC_Box deleted file mode 100644 index 53fc7c827..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Box +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_box.h" diff --git a/ground/src/libs/glc_lib/include/GLC_CacheManager b/ground/src/libs/glc_lib/include/GLC_CacheManager deleted file mode 100644 index 390653efa..000000000 --- a/ground/src/libs/glc_lib/include/GLC_CacheManager +++ /dev/null @@ -1 +0,0 @@ -#include "glc_cachemanager.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Camera b/ground/src/libs/glc_lib/include/GLC_Camera deleted file mode 100644 index ed2fa35db..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Camera +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_camera.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Circle b/ground/src/libs/glc_lib/include/GLC_Circle deleted file mode 100644 index 5e6a7f81e..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Circle +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_circle.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Cone b/ground/src/libs/glc_lib/include/GLC_Cone deleted file mode 100644 index 00e32cfbc..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Cone +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_cone.h" diff --git a/ground/src/libs/glc_lib/include/GLC_CuttingPlane b/ground/src/libs/glc_lib/include/GLC_CuttingPlane deleted file mode 100644 index 3b46742b4..000000000 --- a/ground/src/libs/glc_lib/include/GLC_CuttingPlane +++ /dev/null @@ -1 +0,0 @@ -#include "3DWidget/glc_cuttingplane.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Cylinder b/ground/src/libs/glc_lib/include/GLC_Cylinder deleted file mode 100644 index ab0d0ff1f..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Cylinder +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_cylinder.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Disc b/ground/src/libs/glc_lib/include/GLC_Disc deleted file mode 100644 index a9962c239..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Disc +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_disc.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Exception b/ground/src/libs/glc_lib/include/GLC_Exception deleted file mode 100644 index 122455f0e..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Exception +++ /dev/null @@ -1 +0,0 @@ -#include "glc_exception.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Ext b/ground/src/libs/glc_lib/include/GLC_Ext deleted file mode 100644 index 98a7a701a..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Ext +++ /dev/null @@ -1 +0,0 @@ -#include "glc_ext.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Factory b/ground/src/libs/glc_lib/include/GLC_Factory deleted file mode 100644 index 5d86240d8..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Factory +++ /dev/null @@ -1 +0,0 @@ -#include "glc_factory.h" diff --git a/ground/src/libs/glc_lib/include/GLC_FileFormatException b/ground/src/libs/glc_lib/include/GLC_FileFormatException deleted file mode 100644 index 35bd2c612..000000000 --- a/ground/src/libs/glc_lib/include/GLC_FileFormatException +++ /dev/null @@ -1 +0,0 @@ -#include "glc_fileformatexception.h" diff --git a/ground/src/libs/glc_lib/include/GLC_FlyMover b/ground/src/libs/glc_lib/include/GLC_FlyMover deleted file mode 100644 index 43068977a..000000000 --- a/ground/src/libs/glc_lib/include/GLC_FlyMover +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_flymover.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Frustum b/ground/src/libs/glc_lib/include/GLC_Frustum deleted file mode 100644 index d19cb6005..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Frustum +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_frustum.h" diff --git a/ground/src/libs/glc_lib/include/GLC_GeomTools b/ground/src/libs/glc_lib/include/GLC_GeomTools deleted file mode 100644 index 5b52e7833..000000000 --- a/ground/src/libs/glc_lib/include/GLC_GeomTools +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_geomtools.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Geometry b/ground/src/libs/glc_lib/include/GLC_Geometry deleted file mode 100644 index 57d8d7494..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Geometry +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_geometry.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Global b/ground/src/libs/glc_lib/include/GLC_Global deleted file mode 100644 index 51b8bbabd..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Global +++ /dev/null @@ -1 +0,0 @@ -#include "glc_global.h" diff --git a/ground/src/libs/glc_lib/include/GLC_ImagePlane b/ground/src/libs/glc_lib/include/GLC_ImagePlane deleted file mode 100644 index 4ad46e629..000000000 --- a/ground/src/libs/glc_lib/include/GLC_ImagePlane +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_imageplane.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Interpolator b/ground/src/libs/glc_lib/include/GLC_Interpolator deleted file mode 100644 index 3cc316011..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Interpolator +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_interpolator.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Light b/ground/src/libs/glc_lib/include/GLC_Light deleted file mode 100644 index 3d90d8407..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Light +++ /dev/null @@ -1 +0,0 @@ -#include "shading/glc_light.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Line b/ground/src/libs/glc_lib/include/GLC_Line deleted file mode 100644 index e4b0dafab..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Line +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_line.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Line3d b/ground/src/libs/glc_lib/include/GLC_Line3d deleted file mode 100644 index e6b482090..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Line3d +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_line3d.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Material b/ground/src/libs/glc_lib/include/GLC_Material deleted file mode 100644 index e1357616e..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Material +++ /dev/null @@ -1 +0,0 @@ -#include "shading/glc_material.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Matrix4x4 b/ground/src/libs/glc_lib/include/GLC_Matrix4x4 deleted file mode 100644 index 4426a087e..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Matrix4x4 +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_matrix4x4.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Mesh b/ground/src/libs/glc_lib/include/GLC_Mesh deleted file mode 100644 index bf8c0657f..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Mesh +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_mesh.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Mover b/ground/src/libs/glc_lib/include/GLC_Mover deleted file mode 100644 index 5b98ad0ed..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Mover +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_mover.h" diff --git a/ground/src/libs/glc_lib/include/GLC_MoverController b/ground/src/libs/glc_lib/include/GLC_MoverController deleted file mode 100644 index da22c73eb..000000000 --- a/ground/src/libs/glc_lib/include/GLC_MoverController +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_movercontroller.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Object b/ground/src/libs/glc_lib/include/GLC_Object deleted file mode 100644 index 86e9b2f8d..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Object +++ /dev/null @@ -1 +0,0 @@ -#include "glc_object.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Octree b/ground/src/libs/glc_lib/include/GLC_Octree deleted file mode 100644 index d9acc2869..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Octree +++ /dev/null @@ -1 +0,0 @@ -#include diff --git a/ground/src/libs/glc_lib/include/GLC_OctreeNode b/ground/src/libs/glc_lib/include/GLC_OctreeNode deleted file mode 100644 index a22b7056a..000000000 --- a/ground/src/libs/glc_lib/include/GLC_OctreeNode +++ /dev/null @@ -1 +0,0 @@ -#include diff --git a/ground/src/libs/glc_lib/include/GLC_OpenGlException b/ground/src/libs/glc_lib/include/GLC_OpenGlException deleted file mode 100644 index 8e1d352d6..000000000 --- a/ground/src/libs/glc_lib/include/GLC_OpenGlException +++ /dev/null @@ -1 +0,0 @@ -#include "glc_openglexception.h" diff --git a/ground/src/libs/glc_lib/include/GLC_PanMover b/ground/src/libs/glc_lib/include/GLC_PanMover deleted file mode 100644 index 69916d0c1..000000000 --- a/ground/src/libs/glc_lib/include/GLC_PanMover +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_panmover.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Plane b/ground/src/libs/glc_lib/include/GLC_Plane deleted file mode 100644 index 87952f25f..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Plane +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_plane.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Point b/ground/src/libs/glc_lib/include/GLC_Point deleted file mode 100644 index 1bd38f6a6..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Point +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_point.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Point2d b/ground/src/libs/glc_lib/include/GLC_Point2d deleted file mode 100644 index 79fcf82b8..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Point2d +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_vector2d.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Point2df b/ground/src/libs/glc_lib/include/GLC_Point2df deleted file mode 100644 index 17f84c7f0..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Point2df +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_vector2df.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Point3d b/ground/src/libs/glc_lib/include/GLC_Point3d deleted file mode 100644 index 16e48ca73..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Point3d +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_vector3d.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Point3df b/ground/src/libs/glc_lib/include/GLC_Point3df deleted file mode 100644 index 70748f2f7..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Point3df +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_vector3df.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Point4d b/ground/src/libs/glc_lib/include/GLC_Point4d deleted file mode 100644 index 2053b8083..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Point4d +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_vector4d.h" diff --git a/ground/src/libs/glc_lib/include/GLC_PointSprite b/ground/src/libs/glc_lib/include/GLC_PointSprite deleted file mode 100644 index 06dccfe6a..000000000 --- a/ground/src/libs/glc_lib/include/GLC_PointSprite +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_pointsprite.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Polylines b/ground/src/libs/glc_lib/include/GLC_Polylines deleted file mode 100644 index f8d0fad1f..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Polylines +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_polylines.h" diff --git a/ground/src/libs/glc_lib/include/GLC_PullManipulator b/ground/src/libs/glc_lib/include/GLC_PullManipulator deleted file mode 100644 index 00a2fe680..000000000 --- a/ground/src/libs/glc_lib/include/GLC_PullManipulator +++ /dev/null @@ -1 +0,0 @@ -#include "3DWidget/glc_pullmanipulator.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Rectangle b/ground/src/libs/glc_lib/include/GLC_Rectangle deleted file mode 100644 index e3e28df67..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Rectangle +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_rectangle.h" diff --git a/ground/src/libs/glc_lib/include/GLC_RenderProperties b/ground/src/libs/glc_lib/include/GLC_RenderProperties deleted file mode 100644 index a271ed40a..000000000 --- a/ground/src/libs/glc_lib/include/GLC_RenderProperties +++ /dev/null @@ -1 +0,0 @@ -#include "shading/glc_renderproperties.h" diff --git a/ground/src/libs/glc_lib/include/GLC_RenderStatistics b/ground/src/libs/glc_lib/include/GLC_RenderStatistics deleted file mode 100644 index 6b89f2c50..000000000 --- a/ground/src/libs/glc_lib/include/GLC_RenderStatistics +++ /dev/null @@ -1 +0,0 @@ -#include "glc_renderstatistics.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Rep b/ground/src/libs/glc_lib/include/GLC_Rep deleted file mode 100644 index b798dcde1..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Rep +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_rep.h" diff --git a/ground/src/libs/glc_lib/include/GLC_RepCrossMover b/ground/src/libs/glc_lib/include/GLC_RepCrossMover deleted file mode 100644 index f3b70385f..000000000 --- a/ground/src/libs/glc_lib/include/GLC_RepCrossMover +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_repcrossmover.h" diff --git a/ground/src/libs/glc_lib/include/GLC_RepFlyMover b/ground/src/libs/glc_lib/include/GLC_RepFlyMover deleted file mode 100644 index 561a8810b..000000000 --- a/ground/src/libs/glc_lib/include/GLC_RepFlyMover +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_repflymover.h" diff --git a/ground/src/libs/glc_lib/include/GLC_RepMover b/ground/src/libs/glc_lib/include/GLC_RepMover deleted file mode 100644 index e57e359ea..000000000 --- a/ground/src/libs/glc_lib/include/GLC_RepMover +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_repmover.h" diff --git a/ground/src/libs/glc_lib/include/GLC_RepTrackBallMover b/ground/src/libs/glc_lib/include/GLC_RepTrackBallMover deleted file mode 100644 index 163668c62..000000000 --- a/ground/src/libs/glc_lib/include/GLC_RepTrackBallMover +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_reptrackballmover.h" diff --git a/ground/src/libs/glc_lib/include/GLC_RotationManipulator b/ground/src/libs/glc_lib/include/GLC_RotationManipulator deleted file mode 100644 index d2e8f29c7..000000000 --- a/ground/src/libs/glc_lib/include/GLC_RotationManipulator +++ /dev/null @@ -1 +0,0 @@ -#include "3DWidget/glc_rotationmanipulator.h" diff --git a/ground/src/libs/glc_lib/include/GLC_SelectionMaterial b/ground/src/libs/glc_lib/include/GLC_SelectionMaterial deleted file mode 100644 index 1c0690d75..000000000 --- a/ground/src/libs/glc_lib/include/GLC_SelectionMaterial +++ /dev/null @@ -1 +0,0 @@ -#include "shading/glc_selectionmaterial.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Shader b/ground/src/libs/glc_lib/include/GLC_Shader deleted file mode 100644 index f058f2f45..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Shader +++ /dev/null @@ -1 +0,0 @@ -#include "shading/glc_shader.h" diff --git a/ground/src/libs/glc_lib/include/GLC_SpacePartitioning b/ground/src/libs/glc_lib/include/GLC_SpacePartitioning deleted file mode 100644 index 320e5e46e..000000000 --- a/ground/src/libs/glc_lib/include/GLC_SpacePartitioning +++ /dev/null @@ -1 +0,0 @@ -#include diff --git a/ground/src/libs/glc_lib/include/GLC_Sphere b/ground/src/libs/glc_lib/include/GLC_Sphere deleted file mode 100644 index 17d43946e..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Sphere +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_sphere.h" diff --git a/ground/src/libs/glc_lib/include/GLC_State b/ground/src/libs/glc_lib/include/GLC_State deleted file mode 100644 index eeffae68e..000000000 --- a/ground/src/libs/glc_lib/include/GLC_State +++ /dev/null @@ -1 +0,0 @@ -#include "glc_state.h" diff --git a/ground/src/libs/glc_lib/include/GLC_StructInstance b/ground/src/libs/glc_lib/include/GLC_StructInstance deleted file mode 100644 index 22fe9472b..000000000 --- a/ground/src/libs/glc_lib/include/GLC_StructInstance +++ /dev/null @@ -1 +0,0 @@ -#include diff --git a/ground/src/libs/glc_lib/include/GLC_StructOccurence b/ground/src/libs/glc_lib/include/GLC_StructOccurence deleted file mode 100644 index cd63dc059..000000000 --- a/ground/src/libs/glc_lib/include/GLC_StructOccurence +++ /dev/null @@ -1 +0,0 @@ -#include diff --git a/ground/src/libs/glc_lib/include/GLC_StructReference b/ground/src/libs/glc_lib/include/GLC_StructReference deleted file mode 100644 index 28b7846ec..000000000 --- a/ground/src/libs/glc_lib/include/GLC_StructReference +++ /dev/null @@ -1 +0,0 @@ -#include diff --git a/ground/src/libs/glc_lib/include/GLC_Texture b/ground/src/libs/glc_lib/include/GLC_Texture deleted file mode 100644 index d3f388b94..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Texture +++ /dev/null @@ -1 +0,0 @@ -#include "shading/glc_texture.h" diff --git a/ground/src/libs/glc_lib/include/GLC_TrackBallMover b/ground/src/libs/glc_lib/include/GLC_TrackBallMover deleted file mode 100644 index ccfa82792..000000000 --- a/ground/src/libs/glc_lib/include/GLC_TrackBallMover +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_trackballmover.h" diff --git a/ground/src/libs/glc_lib/include/GLC_TurnTableMover b/ground/src/libs/glc_lib/include/GLC_TurnTableMover deleted file mode 100644 index 9665a18ac..000000000 --- a/ground/src/libs/glc_lib/include/GLC_TurnTableMover +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_turntablemover.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Vector2d b/ground/src/libs/glc_lib/include/GLC_Vector2d deleted file mode 100644 index 79fcf82b8..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Vector2d +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_vector2d.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Vector2df b/ground/src/libs/glc_lib/include/GLC_Vector2df deleted file mode 100644 index 17f84c7f0..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Vector2df +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_vector2df.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Vector3d b/ground/src/libs/glc_lib/include/GLC_Vector3d deleted file mode 100644 index 16e48ca73..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Vector3d +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_vector3d.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Vector3df b/ground/src/libs/glc_lib/include/GLC_Vector3df deleted file mode 100644 index 70748f2f7..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Vector3df +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_vector3df.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Vector4d b/ground/src/libs/glc_lib/include/GLC_Vector4d deleted file mode 100644 index 2053b8083..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Vector4d +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_vector4d.h" diff --git a/ground/src/libs/glc_lib/include/GLC_Viewport b/ground/src/libs/glc_lib/include/GLC_Viewport deleted file mode 100644 index b7201a3f0..000000000 --- a/ground/src/libs/glc_lib/include/GLC_Viewport +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_viewport.h" diff --git a/ground/src/libs/glc_lib/include/GLC_World b/ground/src/libs/glc_lib/include/GLC_World deleted file mode 100644 index 9b29e8602..000000000 --- a/ground/src/libs/glc_lib/include/GLC_World +++ /dev/null @@ -1 +0,0 @@ -#include "sceneGraph/glc_world.h" diff --git a/ground/src/libs/glc_lib/include/GLC_WorldTo3dxml b/ground/src/libs/glc_lib/include/GLC_WorldTo3dxml deleted file mode 100644 index 2544b75dc..000000000 --- a/ground/src/libs/glc_lib/include/GLC_WorldTo3dxml +++ /dev/null @@ -1 +0,0 @@ -#include "io/glc_worldto3dxml.h" diff --git a/ground/src/libs/glc_lib/include/GLC_ZoomMover b/ground/src/libs/glc_lib/include/GLC_ZoomMover deleted file mode 100644 index af2a29be0..000000000 --- a/ground/src/libs/glc_lib/include/GLC_ZoomMover +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_zoommover.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_3dwidget.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_3dwidget.h deleted file mode 100644 index 0e29ffa7a..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_3dwidget.h +++ /dev/null @@ -1,188 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_3dwidget.h Interface for the GLC_3DWidget class. - -#ifndef GLC_3DWIDGET_H_ -#define GLC_3DWIDGET_H_ -#include -#include -#include "../glc_config.h" -#include "../glc_global.h" -#include "glc_3dwidgetmanagerhandle.h" - -class GLC_3DViewInstance; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_3DWidget -/*! \brief GLC_3DWidget : The base class for 3D user interface class */ - -/*! GLC_3DWidget The 3D widget has a 3d representation and react on user - * interactions*/ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_3DWidget : public QObject -{ - Q_OBJECT - - typedef QList InstanceIdList; - -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Construct a 3d widget with the given 3DWidget manager handle - GLC_3DWidget(GLC_3DWidgetManagerHandle* pWidgetManagerHandle= NULL); - - //! Construct a 3d widget form the given 3d widget - GLC_3DWidget(const GLC_3DWidget& widget); - - //! Destructor - virtual ~GLC_3DWidget(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return this widget id - inline GLC_uint id() const - {return m_Uid;} - - //! Return true if this 3d widget is equal to the given 3d widget - bool operator==(const GLC_3DWidget& widget) const; - - //! Return true if the given instance id belongs to this widget - inline bool instanceBelongTo(GLC_uint id) const - {return m_InstanceIdList.contains(id);} - - //! Return the widget manager of this 3d widget - inline const GLC_3DWidgetManagerHandle* widgetManagerHandle() const - {return m_pWidgetManagerHandle;} - - //! Return true if this widget has a 3DWidgetManager - inline bool has3DWidgetManager() const - {return (NULL == m_pWidgetManagerHandle);} - - //! Return true if otho is used - inline bool useOrtho() const - {return m_pWidgetManagerHandle->useOrtho();} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Copy the given widget in this widget and return a reference on this widget - virtual GLC_3DWidget& operator=(const GLC_3DWidget& widget); - - //! Set the given widgetManager to this widget - void setWidgetManager(GLC_3DWidgetManagerHandle* pWidgetManagerHandle); - - //! Update widget representation - virtual void updateWidgetRep(){}; -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Interaction Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! This widget as been selected - virtual glc::WidgetEventFlag select(const GLC_Point3d&, GLC_uint id); - - //! This widget as been unselected - virtual glc::WidgetEventFlag unselect(const GLC_Point3d&, GLC_uint id); - - //! The mouse is over this widget - virtual glc::WidgetEventFlag mouseOver(const GLC_Point3d&, GLC_uint id); - - //! The mouse is over this widget and a mousse button is pressed - virtual glc::WidgetEventFlag mousePressed(const GLC_Point3d&, Qt::MouseButton, GLC_uint id); - - //! The mouse is over this widget and a mousse button is released - virtual glc::WidgetEventFlag mouseReleased(Qt::MouseButton); - - //! This widget is selected and the mousse move with a pressed buttons - virtual glc::WidgetEventFlag mouseMove(const GLC_Point3d&, Qt::MouseButtons, GLC_uint id); - -//@} - -signals: - //! Sub class must emit this signal if they changed - void asChanged(); - -////////////////////////////////////////////////////////////////////// -// Protected services function -////////////////////////////////////////////////////////////////////// -protected: - //! Create the 3DView instance of this 3d widget - virtual void create3DviewInstance()= 0; - - //! Return true if this 3DWidget hasen't 3d instance - inline bool isEmpty() const - {return m_InstanceIdList.isEmpty();} - - //! Add 3D view instance in the widget manager handle - void add3DViewInstance(const GLC_3DViewInstance& instance); - - //! Return the 3D view instance handle from the given index - inline GLC_3DViewInstance* instanceHandle(int index) - {return m_pWidgetManagerHandle->instanceHandle(m_InstanceIdList.at(index));} - - //! Remove instance of this 3d widget from the 3D widget manager handle - void remove3DViewInstance(); - - //! Set the specified 3D view instance visibility - void set3DViewInstanceVisibility(int index, bool visibility); - - //! Return the index of the given instance id - inline int indexOfIntsanceId(GLC_uint id) - {return m_InstanceIdList.indexOf(id);} - -////////////////////////////////////////////////////////////////////// -// Private services function -////////////////////////////////////////////////////////////////////// -private: - -////////////////////////////////////////////////////////////////////// -// Private Member -////////////////////////////////////////////////////////////////////// -private: - //! The id of this 3d widget - /*! Generated on GLC_3DWidget construction*/ - GLC_uint m_Uid; - - //! Pointer to this widget manager handle - GLC_3DWidgetManagerHandle* m_pWidgetManagerHandle; - - //! The List of this widget instance id - QList m_InstanceIdList; - -}; - -#endif /* GLC_3DWIDGET_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_3dwidgetmanager.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_3dwidgetmanager.h deleted file mode 100644 index 1f0cc0cd2..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_3dwidgetmanager.h +++ /dev/null @@ -1,135 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_3dwidgetmanager.h Interface for the GLC_3DWidgetManager class. - -#ifndef GLC_3DWIDGETMANAGER_H_ -#define GLC_3DWIDGETMANAGER_H_ - -#include "glc_3dwidgetmanagerhandle.h" - -#include "../glc_config.h" - -class QMouseEvent; - -class GLC_LIB_EXPORT GLC_3DWidgetManager -{ - -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Construct the 3d widget manager associted to the given Viewport - GLC_3DWidgetManager(GLC_Viewport* pViewport); - - //! Construct a 3d widget manager from the given 3D widget manager - GLC_3DWidgetManager(const GLC_3DWidgetManager& widgetManager); - - //! Destructor - ~GLC_3DWidgetManager(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the boundingBox of 3dwidget - inline GLC_BoundingBox boundingBox() - {return m_pWidgetManagerHandle->boundingBox();} - - //! Return true if this manager contains the given widget id - inline bool contains3DWidget(GLC_uint id) const - {return m_pWidgetManagerHandle->contains3DWidget(id);} - - //! Return the 3DWidget of the given widget id - inline GLC_3DWidget* widget(GLC_uint id) const - {return m_pWidgetManagerHandle->widget(id);} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Add the given 3D widget into this manager - inline void add3DWidget(GLC_3DWidget* p3DWidget) - {m_pWidgetManagerHandle->add3DWidget(p3DWidget);} - - //! Remove the 3D widget with the given id from this manager - /*! Associated 3D view instance are removed*/ - inline void remove3DWidget(GLC_uint id) - {m_pWidgetManagerHandle->remove3DWidget(id);} - - //! Clear all widget from this manager - inline void clear() - {m_pWidgetManagerHandle->clear();} - -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Interaction Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Recieve Mouse double click event with the given instance id Return true if the event is catch - inline glc::WidgetEventFlag mouseDoubleClickEvent(QMouseEvent * pEvent) - {return m_pWidgetManagerHandle->mouseDoubleClickEvent(pEvent);} - - //! Recieve Mouse move event with the given instance id Return true if the event is catch - inline glc::WidgetEventFlag mouseMoveEvent(QMouseEvent * pEvent) - {return m_pWidgetManagerHandle->mouseMoveEvent(pEvent);} - - //! Recieve Mouse press event with the given instance id Return true if the event is catch - inline glc::WidgetEventFlag mousePressEvent(QMouseEvent * pEvent) - {return m_pWidgetManagerHandle->mousePressEvent(pEvent);} - - //! Recieve Mouse release event with the given instance id Return true if the event is catch - inline glc::WidgetEventFlag mouseReleaseEvent(QMouseEvent * pEvent) - {return m_pWidgetManagerHandle->mouseReleaseEvent(pEvent);} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Render the 3DWidget of this manager - inline void render() - {m_pWidgetManagerHandle->render();} - -//@} - -////////////////////////////////////////////////////////////////////// -// Private Member -////////////////////////////////////////////////////////////////////// -private: - //! The widget manager handle - GLC_3DWidgetManagerHandle* m_pWidgetManagerHandle; - -}; - -#endif /* GLC_3DWIDGETMANAGER_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_3dwidgetmanagerhandle.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_3dwidgetmanagerhandle.h deleted file mode 100644 index 2b0cc97b7..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_3dwidgetmanagerhandle.h +++ /dev/null @@ -1,194 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_3dwidgetmanagerhandle.h Interface for the GLC_3DWidgetManagerHandle class. - -#ifndef GLC_3DWIDGETMANAGERHANDLE_H_ -#define GLC_3DWIDGETMANAGERHANDLE_H_ - -#include "../glc_config.h" -#include "../sceneGraph/glc_3dviewcollection.h" -#include "../viewport/glc_viewport.h" - -class GLC_3DVIewInstance; -class GLC_3DWidget; - -class GLC_LIB_EXPORT GLC_3DWidgetManagerHandle -{ - -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Construct a 3D widget manager attached to the given viewport - GLC_3DWidgetManagerHandle(GLC_Viewport* pViewport); - - //! Destructor - ~GLC_3DWidgetManagerHandle(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return true if there is only one widget manager associated to this handle - inline bool isOrphan() const - {return 0 == m_Count;} - - //! Return the 3DView instance of the given id - inline GLC_3DViewInstance* instanceHandle(GLC_uint id) - {return m_Collection.instanceHandle(id);} - - //! Return true if this 3DWidget manager has active widget - inline bool hasAnActiveWidget() const - {return 0 != m_Active3DWidgetId;} - - //! Return an handle to the camera of the viewport of this manager - inline const GLC_Camera* cameraHandle() const - {return m_pViewport->cameraHandle();} - - //! Return the boundingBox of 3dwidget - inline GLC_BoundingBox boundingBox() - {return m_Collection.boundingBox();} - - //! Return true if the viewport use orthographic projection - inline bool useOrtho() const - {return m_pViewport->useOrtho();} - - //! Return the tangent value of the viewport - double viewportTangent() const - {return m_pViewport->viewTangent();} - - //! Return the viewport of this manager - inline GLC_Viewport* viewport() const - {return m_pViewport;} - - //! Return true if this manager contains the given widget id - inline bool contains3DWidget(GLC_uint id) const - {return m_3DWidgetHash.contains(id);} - - //! Return the 3DWidget of the given widget id - inline GLC_3DWidget* widget(GLC_uint id) const - {return m_3DWidgetHash.value(id);} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Increment the number of world - inline void increment() - {++m_Count;} - - //! Decrement the number of world - inline void decrement() - {--m_Count;} - - //! Add the given 3D widget into this manager - void add3DWidget(GLC_3DWidget* p3DWidget); - - //! Remove the 3D widget with the given id from this manager - /*! Associated 3D view instance are removed*/ - void remove3DWidget(GLC_uint id); - - //! Take the 3D widget with the given id from this manager - /*! Associated 3D view instance are NOT removed*/ - GLC_3DWidget* take(GLC_uint id); - - //! Add the given 3D view instance link to the given 3D widget into this manager - void add3DViewInstance(const GLC_3DViewInstance& instance, GLC_uint widgetId); - - //! Remove the 3D view instance with the given id from this manager collection - void remove3DViewInstance(GLC_uint id); - - //! Remove all 3D view instance from this manager - void clear(); - -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Interaction Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Recieve Mouse double click event with the given instance id Return true if the event is catch - glc::WidgetEventFlag mouseDoubleClickEvent(QMouseEvent * pEvent); - - //! Recieve Mouse move event with the given instance id Return true if the event is catch - glc::WidgetEventFlag mouseMoveEvent(QMouseEvent * pEvent); - - //! Recieve Mouse press event with the given instance id Return true if the event is catch - glc::WidgetEventFlag mousePressEvent(QMouseEvent * pEvent); - - //! Recieve Mouse release event with the given instance id Return true if the event is catch - glc::WidgetEventFlag mouseReleaseEvent(QMouseEvent * pEvent); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Render the 3DWidget of this manager - void render(); - -//@} - -////////////////////////////////////////////////////////////////////// -// Private services function -////////////////////////////////////////////////////////////////////// -private: - //! Make selection according to the given mouse event - QPair select(QMouseEvent* event); - -////////////////////////////////////////////////////////////////////// -// Private Member -////////////////////////////////////////////////////////////////////// -private: - //! The Collection - GLC_3DViewCollection m_Collection; - - //! Widget manager count - int m_Count; - - //! The 3D widget hash table - QHash m_3DWidgetHash; - - //! The papping between 3D view instance and 3DWidget - QHash m_MapBetweenInstanceWidget; - - //! The viewport of this 3d widget manager handle - GLC_Viewport* m_pViewport; - - //! The active 3Dwidget id - GLC_uint m_Active3DWidgetId; - - //! The preselected 3DWidget - GLC_uint m_Preselected3DWidgetId; -}; - -#endif /* GLC_3DWIDGETMANAGERHANDLE_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_abstractmanipulator.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_abstractmanipulator.h deleted file mode 100644 index 8f02fab53..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_abstractmanipulator.h +++ /dev/null @@ -1,127 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ - -#ifndef GLC_ABSTRACTMANIPULATOR_H_ -#define GLC_ABSTRACTMANIPULATOR_H_ - -#include "../maths/glc_vector3d.h" -#include "../maths/glc_matrix4x4.h" -#include "../maths/glc_plane.h" - -#include "../glc_config.h" - -class GLC_Viewport; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_AbstractManipulator -/*! \brief GLC_AbstractManipulator : Base class for all manipulator*/ - -/*! GLC_AbstractManipulator */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_AbstractManipulator -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Construct an abstract manipulator with the given viewport - GLC_AbstractManipulator(GLC_Viewport* pViewport); - - //! Copy constructor - GLC_AbstractManipulator(const GLC_AbstractManipulator& abstractManipulator); - - //! Destructor - virtual ~GLC_AbstractManipulator(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return true if this manipulator is in manipulate state - inline bool isInManipulateState() const - {return m_IsInManipulateState;} - - //! Return a const reference on the previous position - const GLC_Point3d& previousPosition() const - {return m_PreviousPosition;} - - //! Return the viewport of this manipulator - inline GLC_Viewport* viewportHandle() const - {return m_pViewport;} - - //! Clone the concrete manipulator - virtual GLC_AbstractManipulator* clone() const= 0; - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Put this manipulator in manipulate state - void enterManipulateState(const GLC_Point3d& startPoint); - - //! Manipulate this manipulator and return the moving matrix - GLC_Matrix4x4 manipulate(const GLC_Point3d& newPoint); - - //! Exit this manipulator of manipulate state - inline void exitManipulateState() - {m_IsInManipulateState= false;} - - //! Set the viewport of this manipulator - inline void setViewport(GLC_Viewport* pViewport) - {m_pViewport= pViewport;} - -//@} - -////////////////////////////////////////////////////////////////////// -// Protected services function -////////////////////////////////////////////////////////////////////// -protected: - //! Manipulate the concret manipulator and return the moving matrix - virtual GLC_Matrix4x4 doManipulate(const GLC_Point3d& newPoint, const GLC_Vector3d& projectionDirection)= 0; - -////////////////////////////////////////////////////////////////////// -// protected Member -////////////////////////////////////////////////////////////////////// -protected: - //! The viewport associated with this manipulator - GLC_Viewport* m_pViewport; - - //! The currentSlidding plane - GLC_Plane m_SliddingPlane; - - //! The previous position - GLC_Point3d m_PreviousPosition; - - //! Flag to know if this manipulator is in manipulate state - bool m_IsInManipulateState; - -}; - -#endif /* GLC_ABSTRACTMANIPULATOR_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_axis.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_axis.h deleted file mode 100644 index abcfbeccb..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_axis.h +++ /dev/null @@ -1,159 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_axis.h Interface for the GLC_Axis class. - -#ifndef GLC_AXIS_H_ -#define GLC_AXIS_H_ - -#include "glc_3dwidget.h" -#include "../glc_config.h" - -class GLC_AbstractManipulator; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Axis -/*! \brief GLC_Axis : 3d Widget axis use to translate objects*/ - -/*! GLC_Axis */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Axis : public GLC_3DWidget -{ - enum Manipulator - { - NoneManipulator, - X_AxisManipulator, - Y_AxisManipulator, - Z_AxisManipulator - }; - -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Construct a axis widget - GLC_Axis(const GLC_Point3d& center, GLC_3DWidgetManagerHandle* pWidgetManagerHandle= NULL); - - //! Copy constructor - GLC_Axis(const GLC_Axis& axis); - - //! Destructor - virtual ~GLC_Axis(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return this axis center - inline GLC_Point3d center() const - {return m_Center;} - - //! Return this axis length - inline double axisLength() const - {return m_AxisLength;} -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Copy the given cutting plane in this cutting plane and return a reference on this cutting plane - virtual GLC_Axis& operator=(const GLC_Axis& axis); - - //! Update widget representation - virtual void updateWidgetRep(); - - //! Set the axis length - void setAxisLength(double length); - - //! Set Axis center - void setCenter(const GLC_Point3d& newCenter); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Interaction Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! This widget as been selected - virtual glc::WidgetEventFlag select(const GLC_Point3d&, GLC_uint id); - - //! This widget as been unselected - virtual glc::WidgetEventFlag unselect(const GLC_Point3d&, GLC_uint id); - - //! The mouse is over this widget and a mousse button is pressed - virtual glc::WidgetEventFlag mousePressed(const GLC_Point3d&, Qt::MouseButton, GLC_uint id); - - //! The mouse is over this widget and a mousse button is released - virtual glc::WidgetEventFlag mouseReleased(Qt::MouseButton); - - //! This widget is selected and the mousse move with a pressed buttons - virtual glc::WidgetEventFlag mouseMove(const GLC_Point3d&, Qt::MouseButtons, GLC_uint id); - -//@} - -////////////////////////////////////////////////////////////////////// -// Protected services function -////////////////////////////////////////////////////////////////////// -protected: - //! Create the 3DView instance of this 3d widget - virtual void create3DviewInstance(); - -////////////////////////////////////////////////////////////////////// -// Private services function -////////////////////////////////////////////////////////////////////// -private: - //! Move the manipulator 3D representation - void moveManipulatorRep(const GLC_Point3d& pos); - -////////////////////////////////////////////////////////////////////// -// Private Member -////////////////////////////////////////////////////////////////////// -private: - //! The axis center - GLC_Point3d m_Center; - - //! The manipulator scale factor - double m_ScaleFactor; - - //! Current manipulator enum - Manipulator m_CurrentManipulator; - - //! The current manipulator of this cutting plane - GLC_AbstractManipulator* m_pCurrentManipulator; - - //! The axis length - double m_AxisLength; - - //! The axis radius Ratio : Radius / Length - double m_AxisRadiusRatio; - -}; - -#endif /* GLC_AXIS_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_cuttingplane.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_cuttingplane.h deleted file mode 100644 index e2ff8ddd9..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_cuttingplane.h +++ /dev/null @@ -1,193 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_cuttingplane.h Interface for the GLC_CuttingPlane class. - -#ifndef GLC_CUTTINGPLANE_H_ -#define GLC_CUTTINGPLANE_H_ - -#include "glc_3dwidget.h" -#include "../glc_config.h" - -class GLC_AbstractManipulator; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_CuttingPlane -/*! \brief GLC_CuttingPlane : 3d cutting plane widget*/ - -/*! GLC_CuttingPlane */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_CuttingPlane : public GLC_3DWidget -{ - enum Manipulator - { - TranslationManipulator, - RotationManipulator - }; -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Construct a 3d cutting plane widget - GLC_CuttingPlane(const GLC_Point3d& center, const GLC_Vector3d& normal, double l1, double l2, GLC_3DWidgetManagerHandle* pWidgetManagerHandle= NULL); - - //! Construct a 3d cutting plane with the given cutting plane - GLC_CuttingPlane(const GLC_CuttingPlane& cuttingPlane); - - //! Destructor - virtual ~GLC_CuttingPlane(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return this cutting plane center - inline GLC_Point3d center() const - {return m_Center;} - - //! Return this cutting plane normal - inline GLC_Vector3d normal() const - {return m_Normal;} - - //! Return this plane color - inline QColor color() const - {return m_Color;} - - //! Return this plane opacity - inline double opacity() const - {return m_Opacity;} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Copy the given cutting plane in this cutting plane and return a reference on this cutting plane - virtual GLC_CuttingPlane& operator=(const GLC_CuttingPlane& cuttingPlane); - - //! Update the lenght of this cutting plane - void updateLength(double l1, double l2); - - //! Set this plane color - inline void setColor(const QColor& color) - {m_Color= color;} - - //! Set this plane opacity - inline void setOpacity(double opacity) - {m_Opacity= opacity;} - - //! Update widget representation - virtual void updateWidgetRep(); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Interaction Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! This widget as been selected - virtual glc::WidgetEventFlag select(const GLC_Point3d&, GLC_uint id); - - //! This widget as been unselected - virtual glc::WidgetEventFlag unselect(const GLC_Point3d&, GLC_uint id); - - //! The mouse is over this widget and a mousse button is pressed - virtual glc::WidgetEventFlag mousePressed(const GLC_Point3d&, Qt::MouseButton, GLC_uint id); - - //! The mouse is over this widget and a mousse button is released - virtual glc::WidgetEventFlag mouseReleased(Qt::MouseButton); - - //! This widget is selected and the mousse move with a pressed buttons - virtual glc::WidgetEventFlag mouseMove(const GLC_Point3d&, Qt::MouseButtons, GLC_uint id); - -//@} - -////////////////////////////////////////////////////////////////////// -// Protected services function -////////////////////////////////////////////////////////////////////// -protected: - //! Create the 3DView instance of this 3d widget - virtual void create3DviewInstance(); - - -////////////////////////////////////////////////////////////////////// -// Private services function -////////////////////////////////////////////////////////////////////// -private: - //! Move the manipulator 3D representation - void moveManipulatorRep(const GLC_Point3d& pos); - - //! Create the rotation navigator of the given instance index - GLC_AbstractManipulator* rotationNavigator(int index); - -////////////////////////////////////////////////////////////////////// -// Private Member -////////////////////////////////////////////////////////////////////// -private: - //! The cutting plane center - GLC_Point3d m_Center; - - //! The cutting plane Normal - GLC_Vector3d m_Normal; - - //! The cutting plane compostion matrix - GLC_Matrix4x4 m_CompMatrix; - - //! The cutting plane size - double m_L1, m_L2; - - //! The cutting plane color - QColor m_Color; - - //! The cutting plane opacity - double m_Opacity; - - //! The manipulator offset - double m_ManipulatorOffsetFactor; - - //! The manipulator scale factor - double m_ScaleFactor; - - //! Index of the instance in selection - int m_SelectionIndex; - - //! current manipulator enum - Manipulator m_CurrentManipulator; - - //! The current manipulator of this cutting plane - GLC_AbstractManipulator* m_pCurrentManipulator; - - //! The current manipulator position - GLC_Point3d m_CurrentNavigatorPosition; - - -}; - -#endif /* GLC_CUTTINGPLANE_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_pullmanipulator.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_pullmanipulator.h deleted file mode 100644 index 5cc68948e..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_pullmanipulator.h +++ /dev/null @@ -1,94 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_pullmanipulator.h Interface for the GLC_PullManipulator class. - -#ifndef GLC_PULLMANIPULATOR_H_ -#define GLC_PULLMANIPULATOR_H_ -#include "../glc_config.h" -#include "glc_abstractmanipulator.h" - -class GLC_Viewport; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_PullManipulator -/*! \brief GLC_PullManipulator : */ - -/*! GLC_PullManipulator */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_PullManipulator : public GLC_AbstractManipulator -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Construct pull manipulator with the given viewport and pulling direction - GLC_PullManipulator(GLC_Viewport* pViewport, const GLC_Vector3d& pullDirection); - - //! Copy constructor - GLC_PullManipulator(const GLC_PullManipulator& pullManipulator); - - //! Destructor - virtual ~GLC_PullManipulator(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the pulling direction of this pull manipulator - inline GLC_Vector3d pullingDirection() const - {return m_PullDirection;} - - //! Clone the concrete manipulator - virtual GLC_AbstractManipulator* clone() const; -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Set the pulling direction of this manipulator - void setPullingDirection(const GLC_Vector3d& pullingDirection); - -//@} - -////////////////////////////////////////////////////////////////////// -// Protected services function -////////////////////////////////////////////////////////////////////// -protected: - //! Manipulate this manipulator and return the moving matrix - virtual GLC_Matrix4x4 doManipulate(const GLC_Point3d& newPoint, const GLC_Vector3d& projectionDirection); - -////////////////////////////////////////////////////////////////////// -// Private Member -////////////////////////////////////////////////////////////////////// -private: - //! The pulling direction - GLC_Vector3d m_PullDirection; -}; - -#endif /* GLC_PULLMANIPULATOR_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_rotationmanipulator.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_rotationmanipulator.h deleted file mode 100644 index c52d96b9b..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3DWidget/glc_rotationmanipulator.h +++ /dev/null @@ -1,100 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_rotationmanipulator.h Interface for the GLC_RotationManipulator class. - -#ifndef GLC_ROTATIONMANIPULATOR_H_ -#define GLC_ROTATIONMANIPULATOR_H_ - -#include "../glc_config.h" -#include "glc_abstractmanipulator.h" -#include "../maths/glc_line3d.h" - -class GLC_Viewport; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_RotationManipulator -/*! \brief GLC_RotationManipulator : */ - -/*! GLC_RotationManipulator */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_RotationManipulator : public GLC_AbstractManipulator -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Construct a rotation manipulator with the given viewport and rotation line - GLC_RotationManipulator(GLC_Viewport* pViewport, const GLC_Line3d& rotationLine); - - //! Copy constructor - GLC_RotationManipulator(const GLC_RotationManipulator& rotationmanipulator); - - //! Destructor - virtual ~GLC_RotationManipulator(); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Clone the concrete manipulator - virtual GLC_AbstractManipulator* clone() const; - - //! Return the rotation line of this rotation manipulator - inline GLC_Line3d rotationLine() const - {return m_RotationLine;} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Set the rotation line of this rotation manipulator - void setRotationLine(const GLC_Line3d line) - {m_RotationLine= line;} - -//@} - -////////////////////////////////////////////////////////////////////// -// Protected services function -////////////////////////////////////////////////////////////////////// -protected: - //! Manipulate this manipulator and return the moving matrix - virtual GLC_Matrix4x4 doManipulate(const GLC_Point3d& newPoint, const GLC_Vector3d& projectionDirection); - -////////////////////////////////////////////////////////////////////// -// Private Member -////////////////////////////////////////////////////////////////////// -private: - //! The rotation line of this manipulator - GLC_Line3d m_RotationLine; - -}; - -#endif /* GLC_ROTATIONMANIPULATOR_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/glext/glext.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/glext/glext.h deleted file mode 100644 index ad66b1f0f..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/glext/glext.h +++ /dev/null @@ -1,8395 +0,0 @@ -#ifndef __glext_h_ -#define __glext_h_ - -#ifdef __cplusplus -extern "C" { -#endif - -/* -** 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. -*/ - -#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) -#define WIN32_LEAN_AND_MEAN 1 -#include -#endif - -#ifndef APIENTRY -#define APIENTRY -#endif -#ifndef APIENTRYP -#define APIENTRYP APIENTRY * -#endif -#ifndef GLAPI -#define GLAPI extern -#endif - -/*************************************************************/ - -/* Header file version number, required by OpenGL ABI for Linux */ -/* glext.h last updated 2008/08/16 */ -/* Current version at http://www.opengl.org/registry/ */ -#define GL_GLEXT_VERSION 42 - -#ifndef GL_VERSION_1_2 -#define GL_UNSIGNED_BYTE_3_3_2 0x8032 -#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033 -#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034 -#define GL_UNSIGNED_INT_8_8_8_8 0x8035 -#define GL_UNSIGNED_INT_10_10_10_2 0x8036 -#define GL_RESCALE_NORMAL 0x803A -#define GL_TEXTURE_BINDING_3D 0x806A -#define GL_PACK_SKIP_IMAGES 0x806B -#define GL_PACK_IMAGE_HEIGHT 0x806C -#define GL_UNPACK_SKIP_IMAGES 0x806D -#define GL_UNPACK_IMAGE_HEIGHT 0x806E -#define GL_TEXTURE_3D 0x806F -#define GL_PROXY_TEXTURE_3D 0x8070 -#define GL_TEXTURE_DEPTH 0x8071 -#define GL_TEXTURE_WRAP_R 0x8072 -#define GL_MAX_3D_TEXTURE_SIZE 0x8073 -#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362 -#define GL_UNSIGNED_SHORT_5_6_5 0x8363 -#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364 -#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365 -#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366 -#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367 -#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368 -#define GL_BGR 0x80E0 -#define GL_BGRA 0x80E1 -#define GL_MAX_ELEMENTS_VERTICES 0x80E8 -#define GL_MAX_ELEMENTS_INDICES 0x80E9 -#define GL_CLAMP_TO_EDGE 0x812F -#define GL_TEXTURE_MIN_LOD 0x813A -#define GL_TEXTURE_MAX_LOD 0x813B -#define GL_TEXTURE_BASE_LEVEL 0x813C -#define GL_TEXTURE_MAX_LEVEL 0x813D -#define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8 -#define GL_SINGLE_COLOR 0x81F9 -#define GL_SEPARATE_SPECULAR_COLOR 0x81FA -#define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12 -#define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13 -#define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22 -#define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23 -#define GL_ALIASED_POINT_SIZE_RANGE 0x846D -#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E -#endif - -#ifndef GL_ARB_imaging -#define GL_CONSTANT_COLOR 0x8001 -#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002 -#define GL_CONSTANT_ALPHA 0x8003 -#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004 -#define GL_BLEND_COLOR 0x8005 -#define GL_FUNC_ADD 0x8006 -#define GL_MIN 0x8007 -#define GL_MAX 0x8008 -#define GL_BLEND_EQUATION 0x8009 -#define GL_FUNC_SUBTRACT 0x800A -#define GL_FUNC_REVERSE_SUBTRACT 0x800B -#define GL_CONVOLUTION_1D 0x8010 -#define GL_CONVOLUTION_2D 0x8011 -#define GL_SEPARABLE_2D 0x8012 -#define GL_CONVOLUTION_BORDER_MODE 0x8013 -#define GL_CONVOLUTION_FILTER_SCALE 0x8014 -#define GL_CONVOLUTION_FILTER_BIAS 0x8015 -#define GL_REDUCE 0x8016 -#define GL_CONVOLUTION_FORMAT 0x8017 -#define GL_CONVOLUTION_WIDTH 0x8018 -#define GL_CONVOLUTION_HEIGHT 0x8019 -#define GL_MAX_CONVOLUTION_WIDTH 0x801A -#define GL_MAX_CONVOLUTION_HEIGHT 0x801B -#define GL_POST_CONVOLUTION_RED_SCALE 0x801C -#define GL_POST_CONVOLUTION_GREEN_SCALE 0x801D -#define GL_POST_CONVOLUTION_BLUE_SCALE 0x801E -#define GL_POST_CONVOLUTION_ALPHA_SCALE 0x801F -#define GL_POST_CONVOLUTION_RED_BIAS 0x8020 -#define GL_POST_CONVOLUTION_GREEN_BIAS 0x8021 -#define GL_POST_CONVOLUTION_BLUE_BIAS 0x8022 -#define GL_POST_CONVOLUTION_ALPHA_BIAS 0x8023 -#define GL_HISTOGRAM 0x8024 -#define GL_PROXY_HISTOGRAM 0x8025 -#define GL_HISTOGRAM_WIDTH 0x8026 -#define GL_HISTOGRAM_FORMAT 0x8027 -#define GL_HISTOGRAM_RED_SIZE 0x8028 -#define GL_HISTOGRAM_GREEN_SIZE 0x8029 -#define GL_HISTOGRAM_BLUE_SIZE 0x802A -#define GL_HISTOGRAM_ALPHA_SIZE 0x802B -#define GL_HISTOGRAM_LUMINANCE_SIZE 0x802C -#define GL_HISTOGRAM_SINK 0x802D -#define GL_MINMAX 0x802E -#define GL_MINMAX_FORMAT 0x802F -#define GL_MINMAX_SINK 0x8030 -#define GL_TABLE_TOO_LARGE 0x8031 -#define GL_COLOR_MATRIX 0x80B1 -#define GL_COLOR_MATRIX_STACK_DEPTH 0x80B2 -#define GL_MAX_COLOR_MATRIX_STACK_DEPTH 0x80B3 -#define GL_POST_COLOR_MATRIX_RED_SCALE 0x80B4 -#define GL_POST_COLOR_MATRIX_GREEN_SCALE 0x80B5 -#define GL_POST_COLOR_MATRIX_BLUE_SCALE 0x80B6 -#define GL_POST_COLOR_MATRIX_ALPHA_SCALE 0x80B7 -#define GL_POST_COLOR_MATRIX_RED_BIAS 0x80B8 -#define GL_POST_COLOR_MATRIX_GREEN_BIAS 0x80B9 -#define GL_POST_COLOR_MATRIX_BLUE_BIAS 0x80BA -#define GL_POST_COLOR_MATRIX_ALPHA_BIAS 0x80BB -#define GL_COLOR_TABLE 0x80D0 -#define GL_POST_CONVOLUTION_COLOR_TABLE 0x80D1 -#define GL_POST_COLOR_MATRIX_COLOR_TABLE 0x80D2 -#define GL_PROXY_COLOR_TABLE 0x80D3 -#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4 -#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5 -#define GL_COLOR_TABLE_SCALE 0x80D6 -#define GL_COLOR_TABLE_BIAS 0x80D7 -#define GL_COLOR_TABLE_FORMAT 0x80D8 -#define GL_COLOR_TABLE_WIDTH 0x80D9 -#define GL_COLOR_TABLE_RED_SIZE 0x80DA -#define GL_COLOR_TABLE_GREEN_SIZE 0x80DB -#define GL_COLOR_TABLE_BLUE_SIZE 0x80DC -#define GL_COLOR_TABLE_ALPHA_SIZE 0x80DD -#define GL_COLOR_TABLE_LUMINANCE_SIZE 0x80DE -#define GL_COLOR_TABLE_INTENSITY_SIZE 0x80DF -#define GL_CONSTANT_BORDER 0x8151 -#define GL_REPLICATE_BORDER 0x8153 -#define GL_CONVOLUTION_BORDER_COLOR 0x8154 -#endif - -#ifndef GL_VERSION_1_3 -#define GL_TEXTURE0 0x84C0 -#define GL_TEXTURE1 0x84C1 -#define GL_TEXTURE2 0x84C2 -#define GL_TEXTURE3 0x84C3 -#define GL_TEXTURE4 0x84C4 -#define GL_TEXTURE5 0x84C5 -#define GL_TEXTURE6 0x84C6 -#define GL_TEXTURE7 0x84C7 -#define GL_TEXTURE8 0x84C8 -#define GL_TEXTURE9 0x84C9 -#define GL_TEXTURE10 0x84CA -#define GL_TEXTURE11 0x84CB -#define GL_TEXTURE12 0x84CC -#define GL_TEXTURE13 0x84CD -#define GL_TEXTURE14 0x84CE -#define GL_TEXTURE15 0x84CF -#define GL_TEXTURE16 0x84D0 -#define GL_TEXTURE17 0x84D1 -#define GL_TEXTURE18 0x84D2 -#define GL_TEXTURE19 0x84D3 -#define GL_TEXTURE20 0x84D4 -#define GL_TEXTURE21 0x84D5 -#define GL_TEXTURE22 0x84D6 -#define GL_TEXTURE23 0x84D7 -#define GL_TEXTURE24 0x84D8 -#define GL_TEXTURE25 0x84D9 -#define GL_TEXTURE26 0x84DA -#define GL_TEXTURE27 0x84DB -#define GL_TEXTURE28 0x84DC -#define GL_TEXTURE29 0x84DD -#define GL_TEXTURE30 0x84DE -#define GL_TEXTURE31 0x84DF -#define GL_ACTIVE_TEXTURE 0x84E0 -#define GL_CLIENT_ACTIVE_TEXTURE 0x84E1 -#define GL_MAX_TEXTURE_UNITS 0x84E2 -#define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3 -#define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4 -#define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5 -#define GL_TRANSPOSE_COLOR_MATRIX 0x84E6 -#define GL_MULTISAMPLE 0x809D -#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E -#define GL_SAMPLE_ALPHA_TO_ONE 0x809F -#define GL_SAMPLE_COVERAGE 0x80A0 -#define GL_SAMPLE_BUFFERS 0x80A8 -#define GL_SAMPLES 0x80A9 -#define GL_SAMPLE_COVERAGE_VALUE 0x80AA -#define GL_SAMPLE_COVERAGE_INVERT 0x80AB -#define GL_MULTISAMPLE_BIT 0x20000000 -#define GL_NORMAL_MAP 0x8511 -#define GL_REFLECTION_MAP 0x8512 -#define GL_TEXTURE_CUBE_MAP 0x8513 -#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A -#define GL_PROXY_TEXTURE_CUBE_MAP 0x851B -#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C -#define GL_COMPRESSED_ALPHA 0x84E9 -#define GL_COMPRESSED_LUMINANCE 0x84EA -#define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB -#define GL_COMPRESSED_INTENSITY 0x84EC -#define GL_COMPRESSED_RGB 0x84ED -#define GL_COMPRESSED_RGBA 0x84EE -#define GL_TEXTURE_COMPRESSION_HINT 0x84EF -#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0 -#define GL_TEXTURE_COMPRESSED 0x86A1 -#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2 -#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3 -#define GL_CLAMP_TO_BORDER 0x812D -#define GL_COMBINE 0x8570 -#define GL_COMBINE_RGB 0x8571 -#define GL_COMBINE_ALPHA 0x8572 -#define GL_SOURCE0_RGB 0x8580 -#define GL_SOURCE1_RGB 0x8581 -#define GL_SOURCE2_RGB 0x8582 -#define GL_SOURCE0_ALPHA 0x8588 -#define GL_SOURCE1_ALPHA 0x8589 -#define GL_SOURCE2_ALPHA 0x858A -#define GL_OPERAND0_RGB 0x8590 -#define GL_OPERAND1_RGB 0x8591 -#define GL_OPERAND2_RGB 0x8592 -#define GL_OPERAND0_ALPHA 0x8598 -#define GL_OPERAND1_ALPHA 0x8599 -#define GL_OPERAND2_ALPHA 0x859A -#define GL_RGB_SCALE 0x8573 -#define GL_ADD_SIGNED 0x8574 -#define GL_INTERPOLATE 0x8575 -#define GL_SUBTRACT 0x84E7 -#define GL_CONSTANT 0x8576 -#define GL_PRIMARY_COLOR 0x8577 -#define GL_PREVIOUS 0x8578 -#define GL_DOT3_RGB 0x86AE -#define GL_DOT3_RGBA 0x86AF -#endif - -#ifndef GL_VERSION_1_4 -#define GL_BLEND_DST_RGB 0x80C8 -#define GL_BLEND_SRC_RGB 0x80C9 -#define GL_BLEND_DST_ALPHA 0x80CA -#define GL_BLEND_SRC_ALPHA 0x80CB -#define GL_POINT_SIZE_MIN 0x8126 -#define GL_POINT_SIZE_MAX 0x8127 -#define GL_POINT_FADE_THRESHOLD_SIZE 0x8128 -#define GL_POINT_DISTANCE_ATTENUATION 0x8129 -#define GL_GENERATE_MIPMAP 0x8191 -#define GL_GENERATE_MIPMAP_HINT 0x8192 -#define GL_DEPTH_COMPONENT16 0x81A5 -#define GL_DEPTH_COMPONENT24 0x81A6 -#define GL_DEPTH_COMPONENT32 0x81A7 -#define GL_MIRRORED_REPEAT 0x8370 -#define GL_FOG_COORDINATE_SOURCE 0x8450 -#define GL_FOG_COORDINATE 0x8451 -#define GL_FRAGMENT_DEPTH 0x8452 -#define GL_CURRENT_FOG_COORDINATE 0x8453 -#define GL_FOG_COORDINATE_ARRAY_TYPE 0x8454 -#define GL_FOG_COORDINATE_ARRAY_STRIDE 0x8455 -#define GL_FOG_COORDINATE_ARRAY_POINTER 0x8456 -#define GL_FOG_COORDINATE_ARRAY 0x8457 -#define GL_COLOR_SUM 0x8458 -#define GL_CURRENT_SECONDARY_COLOR 0x8459 -#define GL_SECONDARY_COLOR_ARRAY_SIZE 0x845A -#define GL_SECONDARY_COLOR_ARRAY_TYPE 0x845B -#define GL_SECONDARY_COLOR_ARRAY_STRIDE 0x845C -#define GL_SECONDARY_COLOR_ARRAY_POINTER 0x845D -#define GL_SECONDARY_COLOR_ARRAY 0x845E -#define GL_MAX_TEXTURE_LOD_BIAS 0x84FD -#define GL_TEXTURE_FILTER_CONTROL 0x8500 -#define GL_TEXTURE_LOD_BIAS 0x8501 -#define GL_INCR_WRAP 0x8507 -#define GL_DECR_WRAP 0x8508 -#define GL_TEXTURE_DEPTH_SIZE 0x884A -#define GL_DEPTH_TEXTURE_MODE 0x884B -#define GL_TEXTURE_COMPARE_MODE 0x884C -#define GL_TEXTURE_COMPARE_FUNC 0x884D -#define GL_COMPARE_R_TO_TEXTURE 0x884E -#endif - -#ifndef GL_VERSION_1_5 -#define GL_BUFFER_SIZE 0x8764 -#define GL_BUFFER_USAGE 0x8765 -#define GL_QUERY_COUNTER_BITS 0x8864 -#define GL_CURRENT_QUERY 0x8865 -#define GL_QUERY_RESULT 0x8866 -#define GL_QUERY_RESULT_AVAILABLE 0x8867 -#define GL_ARRAY_BUFFER 0x8892 -#define GL_ELEMENT_ARRAY_BUFFER 0x8893 -#define GL_ARRAY_BUFFER_BINDING 0x8894 -#define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895 -#define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896 -#define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897 -#define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898 -#define GL_INDEX_ARRAY_BUFFER_BINDING 0x8899 -#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A -#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B -#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C -#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D -#define GL_WEIGHT_ARRAY_BUFFER_BINDING 0x889E -#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F -#define GL_READ_ONLY 0x88B8 -#define GL_WRITE_ONLY 0x88B9 -#define GL_READ_WRITE 0x88BA -#define GL_BUFFER_ACCESS 0x88BB -#define GL_BUFFER_MAPPED 0x88BC -#define GL_BUFFER_MAP_POINTER 0x88BD -#define GL_STREAM_DRAW 0x88E0 -#define GL_STREAM_READ 0x88E1 -#define GL_STREAM_COPY 0x88E2 -#define GL_STATIC_DRAW 0x88E4 -#define GL_STATIC_READ 0x88E5 -#define GL_STATIC_COPY 0x88E6 -#define GL_DYNAMIC_DRAW 0x88E8 -#define GL_DYNAMIC_READ 0x88E9 -#define GL_DYNAMIC_COPY 0x88EA -#define GL_SAMPLES_PASSED 0x8914 -#define GL_FOG_COORD_SRC GL_FOG_COORDINATE_SOURCE -#define GL_FOG_COORD GL_FOG_COORDINATE -#define GL_CURRENT_FOG_COORD GL_CURRENT_FOG_COORDINATE -#define GL_FOG_COORD_ARRAY_TYPE GL_FOG_COORDINATE_ARRAY_TYPE -#define GL_FOG_COORD_ARRAY_STRIDE GL_FOG_COORDINATE_ARRAY_STRIDE -#define GL_FOG_COORD_ARRAY_POINTER GL_FOG_COORDINATE_ARRAY_POINTER -#define GL_FOG_COORD_ARRAY GL_FOG_COORDINATE_ARRAY -#define GL_FOG_COORD_ARRAY_BUFFER_BINDING GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING -#define GL_SRC0_RGB GL_SOURCE0_RGB -#define GL_SRC1_RGB GL_SOURCE1_RGB -#define GL_SRC2_RGB GL_SOURCE2_RGB -#define GL_SRC0_ALPHA GL_SOURCE0_ALPHA -#define GL_SRC1_ALPHA GL_SOURCE1_ALPHA -#define GL_SRC2_ALPHA GL_SOURCE2_ALPHA -#endif - -#ifndef GL_VERSION_2_0 -#define GL_BLEND_EQUATION_RGB GL_BLEND_EQUATION -#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622 -#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623 -#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624 -#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625 -#define GL_CURRENT_VERTEX_ATTRIB 0x8626 -#define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642 -#define GL_VERTEX_PROGRAM_TWO_SIDE 0x8643 -#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645 -#define GL_STENCIL_BACK_FUNC 0x8800 -#define GL_STENCIL_BACK_FAIL 0x8801 -#define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802 -#define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803 -#define GL_MAX_DRAW_BUFFERS 0x8824 -#define GL_DRAW_BUFFER0 0x8825 -#define GL_DRAW_BUFFER1 0x8826 -#define GL_DRAW_BUFFER2 0x8827 -#define GL_DRAW_BUFFER3 0x8828 -#define GL_DRAW_BUFFER4 0x8829 -#define GL_DRAW_BUFFER5 0x882A -#define GL_DRAW_BUFFER6 0x882B -#define GL_DRAW_BUFFER7 0x882C -#define GL_DRAW_BUFFER8 0x882D -#define GL_DRAW_BUFFER9 0x882E -#define GL_DRAW_BUFFER10 0x882F -#define GL_DRAW_BUFFER11 0x8830 -#define GL_DRAW_BUFFER12 0x8831 -#define GL_DRAW_BUFFER13 0x8832 -#define GL_DRAW_BUFFER14 0x8833 -#define GL_DRAW_BUFFER15 0x8834 -#define GL_BLEND_EQUATION_ALPHA 0x883D -#define GL_POINT_SPRITE 0x8861 -#define GL_COORD_REPLACE 0x8862 -#define GL_MAX_VERTEX_ATTRIBS 0x8869 -#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A -#define GL_MAX_TEXTURE_COORDS 0x8871 -#define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872 -#define GL_FRAGMENT_SHADER 0x8B30 -#define GL_VERTEX_SHADER 0x8B31 -#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49 -#define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A -#define GL_MAX_VARYING_FLOATS 0x8B4B -#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C -#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D -#define GL_SHADER_TYPE 0x8B4F -#define GL_FLOAT_VEC2 0x8B50 -#define GL_FLOAT_VEC3 0x8B51 -#define GL_FLOAT_VEC4 0x8B52 -#define GL_INT_VEC2 0x8B53 -#define GL_INT_VEC3 0x8B54 -#define GL_INT_VEC4 0x8B55 -#define GL_BOOL 0x8B56 -#define GL_BOOL_VEC2 0x8B57 -#define GL_BOOL_VEC3 0x8B58 -#define GL_BOOL_VEC4 0x8B59 -#define GL_FLOAT_MAT2 0x8B5A -#define GL_FLOAT_MAT3 0x8B5B -#define GL_FLOAT_MAT4 0x8B5C -#define GL_SAMPLER_1D 0x8B5D -#define GL_SAMPLER_2D 0x8B5E -#define GL_SAMPLER_3D 0x8B5F -#define GL_SAMPLER_CUBE 0x8B60 -#define GL_SAMPLER_1D_SHADOW 0x8B61 -#define GL_SAMPLER_2D_SHADOW 0x8B62 -#define GL_DELETE_STATUS 0x8B80 -#define GL_COMPILE_STATUS 0x8B81 -#define GL_LINK_STATUS 0x8B82 -#define GL_VALIDATE_STATUS 0x8B83 -#define GL_INFO_LOG_LENGTH 0x8B84 -#define GL_ATTACHED_SHADERS 0x8B85 -#define GL_ACTIVE_UNIFORMS 0x8B86 -#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87 -#define GL_SHADER_SOURCE_LENGTH 0x8B88 -#define GL_ACTIVE_ATTRIBUTES 0x8B89 -#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A -#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B -#define GL_SHADING_LANGUAGE_VERSION 0x8B8C -#define GL_CURRENT_PROGRAM 0x8B8D -#define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0 -#define GL_LOWER_LEFT 0x8CA1 -#define GL_UPPER_LEFT 0x8CA2 -#define GL_STENCIL_BACK_REF 0x8CA3 -#define GL_STENCIL_BACK_VALUE_MASK 0x8CA4 -#define GL_STENCIL_BACK_WRITEMASK 0x8CA5 -#endif - -#ifndef GL_VERSION_2_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 -#endif - -#ifndef GL_VERSION_3_0 -#define GL_COMPARE_REF_TO_TEXTURE GL_COMPARE_R_TO_TEXTURE_ARB -#define GL_CLIP_DISTANCE0 GL_CLIP_PLANE0 -#define GL_CLIP_DISTANCE1 GL_CLIP_PLANE1 -#define GL_CLIP_DISTANCE2 GL_CLIP_PLANE2 -#define GL_CLIP_DISTANCE3 GL_CLIP_PLANE3 -#define GL_CLIP_DISTANCE4 GL_CLIP_PLANE4 -#define GL_CLIP_DISTANCE5 GL_CLIP_PLANE5 -#define GL_MAX_CLIP_DISTANCES GL_MAX_CLIP_PLANES -#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_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x0001 -#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_MAX_VARYING_COMPONENTS GL_MAX_VARYING_FLOATS -#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 -/* Reuse tokens from ARB_depth_buffer_float */ -/* reuse GL_DEPTH_COMPONENT32F */ -/* reuse GL_DEPTH32F_STENCIL8 */ -/* reuse GL_FLOAT_32_UNSIGNED_INT_24_8_REV */ -/* Reuse tokens from ARB_framebuffer_object */ -/* reuse GL_INVALID_FRAMEBUFFER_OPERATION */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE */ -/* reuse GL_FRAMEBUFFER_DEFAULT */ -/* reuse GL_FRAMEBUFFER_UNDEFINED */ -/* reuse GL_DEPTH_STENCIL_ATTACHMENT */ -/* reuse GL_INDEX */ -/* reuse GL_MAX_RENDERBUFFER_SIZE */ -/* reuse GL_DEPTH_STENCIL */ -/* reuse GL_UNSIGNED_INT_24_8 */ -/* reuse GL_DEPTH24_STENCIL8 */ -/* reuse GL_TEXTURE_STENCIL_SIZE */ -/* reuse GL_TEXTURE_RED_TYPE */ -/* reuse GL_TEXTURE_GREEN_TYPE */ -/* reuse GL_TEXTURE_BLUE_TYPE */ -/* reuse GL_TEXTURE_ALPHA_TYPE */ -/* reuse GL_TEXTURE_LUMINANCE_TYPE */ -/* reuse GL_TEXTURE_INTENSITY_TYPE */ -/* reuse GL_TEXTURE_DEPTH_TYPE */ -/* reuse GL_UNSIGNED_NORMALIZED */ -/* reuse GL_FRAMEBUFFER_BINDING */ -/* reuse GL_DRAW_FRAMEBUFFER_BINDING */ -/* reuse GL_RENDERBUFFER_BINDING */ -/* reuse GL_READ_FRAMEBUFFER */ -/* reuse GL_DRAW_FRAMEBUFFER */ -/* reuse GL_READ_FRAMEBUFFER_BINDING */ -/* reuse GL_RENDERBUFFER_SAMPLES */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER */ -/* reuse GL_FRAMEBUFFER_COMPLETE */ -/* reuse GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT */ -/* reuse GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT */ -/* reuse GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER */ -/* reuse GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER */ -/* reuse GL_FRAMEBUFFER_UNSUPPORTED */ -/* reuse GL_MAX_COLOR_ATTACHMENTS */ -/* reuse GL_COLOR_ATTACHMENT0 */ -/* reuse GL_COLOR_ATTACHMENT1 */ -/* reuse GL_COLOR_ATTACHMENT2 */ -/* reuse GL_COLOR_ATTACHMENT3 */ -/* reuse GL_COLOR_ATTACHMENT4 */ -/* reuse GL_COLOR_ATTACHMENT5 */ -/* reuse GL_COLOR_ATTACHMENT6 */ -/* reuse GL_COLOR_ATTACHMENT7 */ -/* reuse GL_COLOR_ATTACHMENT8 */ -/* reuse GL_COLOR_ATTACHMENT9 */ -/* reuse GL_COLOR_ATTACHMENT10 */ -/* reuse GL_COLOR_ATTACHMENT11 */ -/* reuse GL_COLOR_ATTACHMENT12 */ -/* reuse GL_COLOR_ATTACHMENT13 */ -/* reuse GL_COLOR_ATTACHMENT14 */ -/* reuse GL_COLOR_ATTACHMENT15 */ -/* reuse GL_DEPTH_ATTACHMENT */ -/* reuse GL_STENCIL_ATTACHMENT */ -/* reuse GL_FRAMEBUFFER */ -/* reuse GL_RENDERBUFFER */ -/* reuse GL_RENDERBUFFER_WIDTH */ -/* reuse GL_RENDERBUFFER_HEIGHT */ -/* reuse GL_RENDERBUFFER_INTERNAL_FORMAT */ -/* reuse GL_STENCIL_INDEX1 */ -/* reuse GL_STENCIL_INDEX4 */ -/* reuse GL_STENCIL_INDEX8 */ -/* reuse GL_STENCIL_INDEX16 */ -/* reuse GL_RENDERBUFFER_RED_SIZE */ -/* reuse GL_RENDERBUFFER_GREEN_SIZE */ -/* reuse GL_RENDERBUFFER_BLUE_SIZE */ -/* reuse GL_RENDERBUFFER_ALPHA_SIZE */ -/* reuse GL_RENDERBUFFER_DEPTH_SIZE */ -/* reuse GL_RENDERBUFFER_STENCIL_SIZE */ -/* reuse GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE */ -/* reuse GL_MAX_SAMPLES */ -/* Reuse tokens from ARB_framebuffer_sRGB */ -/* reuse GL_FRAMEBUFFER_SRGB */ -/* Reuse tokens from ARB_half_float_vertex */ -/* reuse GL_HALF_FLOAT */ -/* Reuse tokens from ARB_map_buffer_range */ -/* reuse GL_MAP_READ_BIT */ -/* reuse GL_MAP_WRITE_BIT */ -/* reuse GL_MAP_INVALIDATE_RANGE_BIT */ -/* reuse GL_MAP_INVALIDATE_BUFFER_BIT */ -/* reuse GL_MAP_FLUSH_EXPLICIT_BIT */ -/* reuse GL_MAP_UNSYNCHRONIZED_BIT */ -/* Reuse tokens from ARB_texture_compression_rgtc */ -/* reuse GL_COMPRESSED_RED_RGTC1 */ -/* reuse GL_COMPRESSED_SIGNED_RED_RGTC1 */ -/* reuse GL_COMPRESSED_RG_RGTC2 */ -/* reuse GL_COMPRESSED_SIGNED_RG_RGTC2 */ -/* Reuse tokens from ARB_texture_rg */ -/* reuse GL_RG */ -/* reuse GL_RG_INTEGER */ -/* reuse GL_R8 */ -/* reuse GL_R16 */ -/* reuse GL_RG8 */ -/* reuse GL_RG16 */ -/* reuse GL_R16F */ -/* reuse GL_R32F */ -/* reuse GL_RG16F */ -/* reuse GL_RG32F */ -/* reuse GL_R8I */ -/* reuse GL_R8UI */ -/* reuse GL_R16I */ -/* reuse GL_R16UI */ -/* reuse GL_R32I */ -/* reuse GL_R32UI */ -/* reuse GL_RG8I */ -/* reuse GL_RG8UI */ -/* reuse GL_RG16I */ -/* reuse GL_RG16UI */ -/* reuse GL_RG32I */ -/* reuse GL_RG32UI */ -/* Reuse tokens from ARB_vertex_array_object */ -/* reuse GL_VERTEX_ARRAY_BINDING */ -#endif - -#ifndef GL_ARB_multitexture -#define GL_TEXTURE0_ARB 0x84C0 -#define GL_TEXTURE1_ARB 0x84C1 -#define GL_TEXTURE2_ARB 0x84C2 -#define GL_TEXTURE3_ARB 0x84C3 -#define GL_TEXTURE4_ARB 0x84C4 -#define GL_TEXTURE5_ARB 0x84C5 -#define GL_TEXTURE6_ARB 0x84C6 -#define GL_TEXTURE7_ARB 0x84C7 -#define GL_TEXTURE8_ARB 0x84C8 -#define GL_TEXTURE9_ARB 0x84C9 -#define GL_TEXTURE10_ARB 0x84CA -#define GL_TEXTURE11_ARB 0x84CB -#define GL_TEXTURE12_ARB 0x84CC -#define GL_TEXTURE13_ARB 0x84CD -#define GL_TEXTURE14_ARB 0x84CE -#define GL_TEXTURE15_ARB 0x84CF -#define GL_TEXTURE16_ARB 0x84D0 -#define GL_TEXTURE17_ARB 0x84D1 -#define GL_TEXTURE18_ARB 0x84D2 -#define GL_TEXTURE19_ARB 0x84D3 -#define GL_TEXTURE20_ARB 0x84D4 -#define GL_TEXTURE21_ARB 0x84D5 -#define GL_TEXTURE22_ARB 0x84D6 -#define GL_TEXTURE23_ARB 0x84D7 -#define GL_TEXTURE24_ARB 0x84D8 -#define GL_TEXTURE25_ARB 0x84D9 -#define GL_TEXTURE26_ARB 0x84DA -#define GL_TEXTURE27_ARB 0x84DB -#define GL_TEXTURE28_ARB 0x84DC -#define GL_TEXTURE29_ARB 0x84DD -#define GL_TEXTURE30_ARB 0x84DE -#define GL_TEXTURE31_ARB 0x84DF -#define GL_ACTIVE_TEXTURE_ARB 0x84E0 -#define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1 -#define GL_MAX_TEXTURE_UNITS_ARB 0x84E2 -#endif - -#ifndef GL_ARB_transpose_matrix -#define GL_TRANSPOSE_MODELVIEW_MATRIX_ARB 0x84E3 -#define GL_TRANSPOSE_PROJECTION_MATRIX_ARB 0x84E4 -#define GL_TRANSPOSE_TEXTURE_MATRIX_ARB 0x84E5 -#define GL_TRANSPOSE_COLOR_MATRIX_ARB 0x84E6 -#endif - -#ifndef GL_ARB_multisample -#define GL_MULTISAMPLE_ARB 0x809D -#define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB 0x809E -#define GL_SAMPLE_ALPHA_TO_ONE_ARB 0x809F -#define GL_SAMPLE_COVERAGE_ARB 0x80A0 -#define GL_SAMPLE_BUFFERS_ARB 0x80A8 -#define GL_SAMPLES_ARB 0x80A9 -#define GL_SAMPLE_COVERAGE_VALUE_ARB 0x80AA -#define GL_SAMPLE_COVERAGE_INVERT_ARB 0x80AB -#define GL_MULTISAMPLE_BIT_ARB 0x20000000 -#endif - -#ifndef GL_ARB_texture_env_add -#endif - -#ifndef GL_ARB_texture_cube_map -#define GL_NORMAL_MAP_ARB 0x8511 -#define GL_REFLECTION_MAP_ARB 0x8512 -#define GL_TEXTURE_CUBE_MAP_ARB 0x8513 -#define GL_TEXTURE_BINDING_CUBE_MAP_ARB 0x8514 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x8515 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x8516 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x8517 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x8518 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x8519 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x851A -#define GL_PROXY_TEXTURE_CUBE_MAP_ARB 0x851B -#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB 0x851C -#endif - -#ifndef GL_ARB_texture_compression -#define GL_COMPRESSED_ALPHA_ARB 0x84E9 -#define GL_COMPRESSED_LUMINANCE_ARB 0x84EA -#define GL_COMPRESSED_LUMINANCE_ALPHA_ARB 0x84EB -#define GL_COMPRESSED_INTENSITY_ARB 0x84EC -#define GL_COMPRESSED_RGB_ARB 0x84ED -#define GL_COMPRESSED_RGBA_ARB 0x84EE -#define GL_TEXTURE_COMPRESSION_HINT_ARB 0x84EF -#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB 0x86A0 -#define GL_TEXTURE_COMPRESSED_ARB 0x86A1 -#define GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A2 -#define GL_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A3 -#endif - -#ifndef GL_ARB_texture_border_clamp -#define GL_CLAMP_TO_BORDER_ARB 0x812D -#endif - -#ifndef GL_ARB_point_parameters -#define GL_POINT_SIZE_MIN_ARB 0x8126 -#define GL_POINT_SIZE_MAX_ARB 0x8127 -#define GL_POINT_FADE_THRESHOLD_SIZE_ARB 0x8128 -#define GL_POINT_DISTANCE_ATTENUATION_ARB 0x8129 -#endif - -#ifndef GL_ARB_vertex_blend -#define GL_MAX_VERTEX_UNITS_ARB 0x86A4 -#define GL_ACTIVE_VERTEX_UNITS_ARB 0x86A5 -#define GL_WEIGHT_SUM_UNITY_ARB 0x86A6 -#define GL_VERTEX_BLEND_ARB 0x86A7 -#define GL_CURRENT_WEIGHT_ARB 0x86A8 -#define GL_WEIGHT_ARRAY_TYPE_ARB 0x86A9 -#define GL_WEIGHT_ARRAY_STRIDE_ARB 0x86AA -#define GL_WEIGHT_ARRAY_SIZE_ARB 0x86AB -#define GL_WEIGHT_ARRAY_POINTER_ARB 0x86AC -#define GL_WEIGHT_ARRAY_ARB 0x86AD -#define GL_MODELVIEW0_ARB 0x1700 -#define GL_MODELVIEW1_ARB 0x850A -#define GL_MODELVIEW2_ARB 0x8722 -#define GL_MODELVIEW3_ARB 0x8723 -#define GL_MODELVIEW4_ARB 0x8724 -#define GL_MODELVIEW5_ARB 0x8725 -#define GL_MODELVIEW6_ARB 0x8726 -#define GL_MODELVIEW7_ARB 0x8727 -#define GL_MODELVIEW8_ARB 0x8728 -#define GL_MODELVIEW9_ARB 0x8729 -#define GL_MODELVIEW10_ARB 0x872A -#define GL_MODELVIEW11_ARB 0x872B -#define GL_MODELVIEW12_ARB 0x872C -#define GL_MODELVIEW13_ARB 0x872D -#define GL_MODELVIEW14_ARB 0x872E -#define GL_MODELVIEW15_ARB 0x872F -#define GL_MODELVIEW16_ARB 0x8730 -#define GL_MODELVIEW17_ARB 0x8731 -#define GL_MODELVIEW18_ARB 0x8732 -#define GL_MODELVIEW19_ARB 0x8733 -#define GL_MODELVIEW20_ARB 0x8734 -#define GL_MODELVIEW21_ARB 0x8735 -#define GL_MODELVIEW22_ARB 0x8736 -#define GL_MODELVIEW23_ARB 0x8737 -#define GL_MODELVIEW24_ARB 0x8738 -#define GL_MODELVIEW25_ARB 0x8739 -#define GL_MODELVIEW26_ARB 0x873A -#define GL_MODELVIEW27_ARB 0x873B -#define GL_MODELVIEW28_ARB 0x873C -#define GL_MODELVIEW29_ARB 0x873D -#define GL_MODELVIEW30_ARB 0x873E -#define GL_MODELVIEW31_ARB 0x873F -#endif - -#ifndef GL_ARB_matrix_palette -#define GL_MATRIX_PALETTE_ARB 0x8840 -#define GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB 0x8841 -#define GL_MAX_PALETTE_MATRICES_ARB 0x8842 -#define GL_CURRENT_PALETTE_MATRIX_ARB 0x8843 -#define GL_MATRIX_INDEX_ARRAY_ARB 0x8844 -#define GL_CURRENT_MATRIX_INDEX_ARB 0x8845 -#define GL_MATRIX_INDEX_ARRAY_SIZE_ARB 0x8846 -#define GL_MATRIX_INDEX_ARRAY_TYPE_ARB 0x8847 -#define GL_MATRIX_INDEX_ARRAY_STRIDE_ARB 0x8848 -#define GL_MATRIX_INDEX_ARRAY_POINTER_ARB 0x8849 -#endif - -#ifndef GL_ARB_texture_env_combine -#define GL_COMBINE_ARB 0x8570 -#define GL_COMBINE_RGB_ARB 0x8571 -#define GL_COMBINE_ALPHA_ARB 0x8572 -#define GL_SOURCE0_RGB_ARB 0x8580 -#define GL_SOURCE1_RGB_ARB 0x8581 -#define GL_SOURCE2_RGB_ARB 0x8582 -#define GL_SOURCE0_ALPHA_ARB 0x8588 -#define GL_SOURCE1_ALPHA_ARB 0x8589 -#define GL_SOURCE2_ALPHA_ARB 0x858A -#define GL_OPERAND0_RGB_ARB 0x8590 -#define GL_OPERAND1_RGB_ARB 0x8591 -#define GL_OPERAND2_RGB_ARB 0x8592 -#define GL_OPERAND0_ALPHA_ARB 0x8598 -#define GL_OPERAND1_ALPHA_ARB 0x8599 -#define GL_OPERAND2_ALPHA_ARB 0x859A -#define GL_RGB_SCALE_ARB 0x8573 -#define GL_ADD_SIGNED_ARB 0x8574 -#define GL_INTERPOLATE_ARB 0x8575 -#define GL_SUBTRACT_ARB 0x84E7 -#define GL_CONSTANT_ARB 0x8576 -#define GL_PRIMARY_COLOR_ARB 0x8577 -#define GL_PREVIOUS_ARB 0x8578 -#endif - -#ifndef GL_ARB_texture_env_crossbar -#endif - -#ifndef GL_ARB_texture_env_dot3 -#define GL_DOT3_RGB_ARB 0x86AE -#define GL_DOT3_RGBA_ARB 0x86AF -#endif - -#ifndef GL_ARB_texture_mirrored_repeat -#define GL_MIRRORED_REPEAT_ARB 0x8370 -#endif - -#ifndef GL_ARB_depth_texture -#define GL_DEPTH_COMPONENT16_ARB 0x81A5 -#define GL_DEPTH_COMPONENT24_ARB 0x81A6 -#define GL_DEPTH_COMPONENT32_ARB 0x81A7 -#define GL_TEXTURE_DEPTH_SIZE_ARB 0x884A -#define GL_DEPTH_TEXTURE_MODE_ARB 0x884B -#endif - -#ifndef GL_ARB_shadow -#define GL_TEXTURE_COMPARE_MODE_ARB 0x884C -#define GL_TEXTURE_COMPARE_FUNC_ARB 0x884D -#define GL_COMPARE_R_TO_TEXTURE_ARB 0x884E -#endif - -#ifndef GL_ARB_shadow_ambient -#define GL_TEXTURE_COMPARE_FAIL_VALUE_ARB 0x80BF -#endif - -#ifndef GL_ARB_window_pos -#endif - -#ifndef GL_ARB_vertex_program -#define GL_COLOR_SUM_ARB 0x8458 -#define GL_VERTEX_PROGRAM_ARB 0x8620 -#define GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB 0x8622 -#define GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB 0x8623 -#define GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB 0x8624 -#define GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB 0x8625 -#define GL_CURRENT_VERTEX_ATTRIB_ARB 0x8626 -#define GL_PROGRAM_LENGTH_ARB 0x8627 -#define GL_PROGRAM_STRING_ARB 0x8628 -#define GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB 0x862E -#define GL_MAX_PROGRAM_MATRICES_ARB 0x862F -#define GL_CURRENT_MATRIX_STACK_DEPTH_ARB 0x8640 -#define GL_CURRENT_MATRIX_ARB 0x8641 -#define GL_VERTEX_PROGRAM_POINT_SIZE_ARB 0x8642 -#define GL_VERTEX_PROGRAM_TWO_SIDE_ARB 0x8643 -#define GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB 0x8645 -#define GL_PROGRAM_ERROR_POSITION_ARB 0x864B -#define GL_PROGRAM_BINDING_ARB 0x8677 -#define GL_MAX_VERTEX_ATTRIBS_ARB 0x8869 -#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB 0x886A -#define GL_PROGRAM_ERROR_STRING_ARB 0x8874 -#define GL_PROGRAM_FORMAT_ASCII_ARB 0x8875 -#define GL_PROGRAM_FORMAT_ARB 0x8876 -#define GL_PROGRAM_INSTRUCTIONS_ARB 0x88A0 -#define GL_MAX_PROGRAM_INSTRUCTIONS_ARB 0x88A1 -#define GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A2 -#define GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A3 -#define GL_PROGRAM_TEMPORARIES_ARB 0x88A4 -#define GL_MAX_PROGRAM_TEMPORARIES_ARB 0x88A5 -#define GL_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A6 -#define GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A7 -#define GL_PROGRAM_PARAMETERS_ARB 0x88A8 -#define GL_MAX_PROGRAM_PARAMETERS_ARB 0x88A9 -#define GL_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AA -#define GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AB -#define GL_PROGRAM_ATTRIBS_ARB 0x88AC -#define GL_MAX_PROGRAM_ATTRIBS_ARB 0x88AD -#define GL_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AE -#define GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AF -#define GL_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B0 -#define GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B1 -#define GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B2 -#define GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B3 -#define GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB 0x88B4 -#define GL_MAX_PROGRAM_ENV_PARAMETERS_ARB 0x88B5 -#define GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB 0x88B6 -#define GL_TRANSPOSE_CURRENT_MATRIX_ARB 0x88B7 -#define GL_MATRIX0_ARB 0x88C0 -#define GL_MATRIX1_ARB 0x88C1 -#define GL_MATRIX2_ARB 0x88C2 -#define GL_MATRIX3_ARB 0x88C3 -#define GL_MATRIX4_ARB 0x88C4 -#define GL_MATRIX5_ARB 0x88C5 -#define GL_MATRIX6_ARB 0x88C6 -#define GL_MATRIX7_ARB 0x88C7 -#define GL_MATRIX8_ARB 0x88C8 -#define GL_MATRIX9_ARB 0x88C9 -#define GL_MATRIX10_ARB 0x88CA -#define GL_MATRIX11_ARB 0x88CB -#define GL_MATRIX12_ARB 0x88CC -#define GL_MATRIX13_ARB 0x88CD -#define GL_MATRIX14_ARB 0x88CE -#define GL_MATRIX15_ARB 0x88CF -#define GL_MATRIX16_ARB 0x88D0 -#define GL_MATRIX17_ARB 0x88D1 -#define GL_MATRIX18_ARB 0x88D2 -#define GL_MATRIX19_ARB 0x88D3 -#define GL_MATRIX20_ARB 0x88D4 -#define GL_MATRIX21_ARB 0x88D5 -#define GL_MATRIX22_ARB 0x88D6 -#define GL_MATRIX23_ARB 0x88D7 -#define GL_MATRIX24_ARB 0x88D8 -#define GL_MATRIX25_ARB 0x88D9 -#define GL_MATRIX26_ARB 0x88DA -#define GL_MATRIX27_ARB 0x88DB -#define GL_MATRIX28_ARB 0x88DC -#define GL_MATRIX29_ARB 0x88DD -#define GL_MATRIX30_ARB 0x88DE -#define GL_MATRIX31_ARB 0x88DF -#endif - -#ifndef GL_ARB_fragment_program -#define GL_FRAGMENT_PROGRAM_ARB 0x8804 -#define GL_PROGRAM_ALU_INSTRUCTIONS_ARB 0x8805 -#define GL_PROGRAM_TEX_INSTRUCTIONS_ARB 0x8806 -#define GL_PROGRAM_TEX_INDIRECTIONS_ARB 0x8807 -#define GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x8808 -#define GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x8809 -#define GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x880A -#define GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB 0x880B -#define GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB 0x880C -#define GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB 0x880D -#define GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x880E -#define GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x880F -#define GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x8810 -#define GL_MAX_TEXTURE_COORDS_ARB 0x8871 -#define GL_MAX_TEXTURE_IMAGE_UNITS_ARB 0x8872 -#endif - -#ifndef GL_ARB_vertex_buffer_object -#define GL_BUFFER_SIZE_ARB 0x8764 -#define GL_BUFFER_USAGE_ARB 0x8765 -#define GL_ARRAY_BUFFER_ARB 0x8892 -#define GL_ELEMENT_ARRAY_BUFFER_ARB 0x8893 -#define GL_ARRAY_BUFFER_BINDING_ARB 0x8894 -#define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB 0x8895 -#define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB 0x8896 -#define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB 0x8897 -#define GL_COLOR_ARRAY_BUFFER_BINDING_ARB 0x8898 -#define GL_INDEX_ARRAY_BUFFER_BINDING_ARB 0x8899 -#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB 0x889A -#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB 0x889B -#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB 0x889C -#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB 0x889D -#define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB 0x889E -#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB 0x889F -#define GL_READ_ONLY_ARB 0x88B8 -#define GL_WRITE_ONLY_ARB 0x88B9 -#define GL_READ_WRITE_ARB 0x88BA -#define GL_BUFFER_ACCESS_ARB 0x88BB -#define GL_BUFFER_MAPPED_ARB 0x88BC -#define GL_BUFFER_MAP_POINTER_ARB 0x88BD -#define GL_STREAM_DRAW_ARB 0x88E0 -#define GL_STREAM_READ_ARB 0x88E1 -#define GL_STREAM_COPY_ARB 0x88E2 -#define GL_STATIC_DRAW_ARB 0x88E4 -#define GL_STATIC_READ_ARB 0x88E5 -#define GL_STATIC_COPY_ARB 0x88E6 -#define GL_DYNAMIC_DRAW_ARB 0x88E8 -#define GL_DYNAMIC_READ_ARB 0x88E9 -#define GL_DYNAMIC_COPY_ARB 0x88EA -#endif - -#ifndef GL_ARB_occlusion_query -#define GL_QUERY_COUNTER_BITS_ARB 0x8864 -#define GL_CURRENT_QUERY_ARB 0x8865 -#define GL_QUERY_RESULT_ARB 0x8866 -#define GL_QUERY_RESULT_AVAILABLE_ARB 0x8867 -#define GL_SAMPLES_PASSED_ARB 0x8914 -#endif - -#ifndef GL_ARB_shader_objects -#define GL_PROGRAM_OBJECT_ARB 0x8B40 -#define GL_SHADER_OBJECT_ARB 0x8B48 -#define GL_OBJECT_TYPE_ARB 0x8B4E -#define GL_OBJECT_SUBTYPE_ARB 0x8B4F -#define GL_FLOAT_VEC2_ARB 0x8B50 -#define GL_FLOAT_VEC3_ARB 0x8B51 -#define GL_FLOAT_VEC4_ARB 0x8B52 -#define GL_INT_VEC2_ARB 0x8B53 -#define GL_INT_VEC3_ARB 0x8B54 -#define GL_INT_VEC4_ARB 0x8B55 -#define GL_BOOL_ARB 0x8B56 -#define GL_BOOL_VEC2_ARB 0x8B57 -#define GL_BOOL_VEC3_ARB 0x8B58 -#define GL_BOOL_VEC4_ARB 0x8B59 -#define GL_FLOAT_MAT2_ARB 0x8B5A -#define GL_FLOAT_MAT3_ARB 0x8B5B -#define GL_FLOAT_MAT4_ARB 0x8B5C -#define GL_SAMPLER_1D_ARB 0x8B5D -#define GL_SAMPLER_2D_ARB 0x8B5E -#define GL_SAMPLER_3D_ARB 0x8B5F -#define GL_SAMPLER_CUBE_ARB 0x8B60 -#define GL_SAMPLER_1D_SHADOW_ARB 0x8B61 -#define GL_SAMPLER_2D_SHADOW_ARB 0x8B62 -#define GL_SAMPLER_2D_RECT_ARB 0x8B63 -#define GL_SAMPLER_2D_RECT_SHADOW_ARB 0x8B64 -#define GL_OBJECT_DELETE_STATUS_ARB 0x8B80 -#define GL_OBJECT_COMPILE_STATUS_ARB 0x8B81 -#define GL_OBJECT_LINK_STATUS_ARB 0x8B82 -#define GL_OBJECT_VALIDATE_STATUS_ARB 0x8B83 -#define GL_OBJECT_INFO_LOG_LENGTH_ARB 0x8B84 -#define GL_OBJECT_ATTACHED_OBJECTS_ARB 0x8B85 -#define GL_OBJECT_ACTIVE_UNIFORMS_ARB 0x8B86 -#define GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB 0x8B87 -#define GL_OBJECT_SHADER_SOURCE_LENGTH_ARB 0x8B88 -#endif - -#ifndef GL_ARB_vertex_shader -#define GL_VERTEX_SHADER_ARB 0x8B31 -#define GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB 0x8B4A -#define GL_MAX_VARYING_FLOATS_ARB 0x8B4B -#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB 0x8B4C -#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB 0x8B4D -#define GL_OBJECT_ACTIVE_ATTRIBUTES_ARB 0x8B89 -#define GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB 0x8B8A -#endif - -#ifndef GL_ARB_fragment_shader -#define GL_FRAGMENT_SHADER_ARB 0x8B30 -#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49 -#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8B8B -#endif - -#ifndef GL_ARB_shading_language_100 -#define GL_SHADING_LANGUAGE_VERSION_ARB 0x8B8C -#endif - -#ifndef GL_ARB_texture_non_power_of_two -#endif - -#ifndef GL_ARB_point_sprite -#define GL_POINT_SPRITE_ARB 0x8861 -#define GL_COORD_REPLACE_ARB 0x8862 -#endif - -#ifndef GL_ARB_fragment_program_shadow -#endif - -#ifndef GL_ARB_draw_buffers -#define GL_MAX_DRAW_BUFFERS_ARB 0x8824 -#define GL_DRAW_BUFFER0_ARB 0x8825 -#define GL_DRAW_BUFFER1_ARB 0x8826 -#define GL_DRAW_BUFFER2_ARB 0x8827 -#define GL_DRAW_BUFFER3_ARB 0x8828 -#define GL_DRAW_BUFFER4_ARB 0x8829 -#define GL_DRAW_BUFFER5_ARB 0x882A -#define GL_DRAW_BUFFER6_ARB 0x882B -#define GL_DRAW_BUFFER7_ARB 0x882C -#define GL_DRAW_BUFFER8_ARB 0x882D -#define GL_DRAW_BUFFER9_ARB 0x882E -#define GL_DRAW_BUFFER10_ARB 0x882F -#define GL_DRAW_BUFFER11_ARB 0x8830 -#define GL_DRAW_BUFFER12_ARB 0x8831 -#define GL_DRAW_BUFFER13_ARB 0x8832 -#define GL_DRAW_BUFFER14_ARB 0x8833 -#define GL_DRAW_BUFFER15_ARB 0x8834 -#endif - -#ifndef GL_ARB_texture_rectangle -#define GL_TEXTURE_RECTANGLE_ARB 0x84F5 -#define GL_TEXTURE_BINDING_RECTANGLE_ARB 0x84F6 -#define GL_PROXY_TEXTURE_RECTANGLE_ARB 0x84F7 -#define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84F8 -#endif - -#ifndef GL_ARB_color_buffer_float -#define GL_RGBA_FLOAT_MODE_ARB 0x8820 -#define GL_CLAMP_VERTEX_COLOR_ARB 0x891A -#define GL_CLAMP_FRAGMENT_COLOR_ARB 0x891B -#define GL_CLAMP_READ_COLOR_ARB 0x891C -#define GL_FIXED_ONLY_ARB 0x891D -#endif - -#ifndef GL_ARB_half_float_pixel -#define GL_HALF_FLOAT_ARB 0x140B -#endif - -#ifndef GL_ARB_texture_float -#define GL_TEXTURE_RED_TYPE_ARB 0x8C10 -#define GL_TEXTURE_GREEN_TYPE_ARB 0x8C11 -#define GL_TEXTURE_BLUE_TYPE_ARB 0x8C12 -#define GL_TEXTURE_ALPHA_TYPE_ARB 0x8C13 -#define GL_TEXTURE_LUMINANCE_TYPE_ARB 0x8C14 -#define GL_TEXTURE_INTENSITY_TYPE_ARB 0x8C15 -#define GL_TEXTURE_DEPTH_TYPE_ARB 0x8C16 -#define GL_UNSIGNED_NORMALIZED_ARB 0x8C17 -#define GL_RGBA32F_ARB 0x8814 -#define GL_RGB32F_ARB 0x8815 -#define GL_ALPHA32F_ARB 0x8816 -#define GL_INTENSITY32F_ARB 0x8817 -#define GL_LUMINANCE32F_ARB 0x8818 -#define GL_LUMINANCE_ALPHA32F_ARB 0x8819 -#define GL_RGBA16F_ARB 0x881A -#define GL_RGB16F_ARB 0x881B -#define GL_ALPHA16F_ARB 0x881C -#define GL_INTENSITY16F_ARB 0x881D -#define GL_LUMINANCE16F_ARB 0x881E -#define GL_LUMINANCE_ALPHA16F_ARB 0x881F -#endif - -#ifndef GL_ARB_pixel_buffer_object -#define GL_PIXEL_PACK_BUFFER_ARB 0x88EB -#define GL_PIXEL_UNPACK_BUFFER_ARB 0x88EC -#define GL_PIXEL_PACK_BUFFER_BINDING_ARB 0x88ED -#define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88EF -#endif - -#ifndef GL_ARB_depth_buffer_float -#define GL_DEPTH_COMPONENT32F 0x8CAC -#define GL_DEPTH32F_STENCIL8 0x8CAD -#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD -#endif - -#ifndef GL_ARB_draw_instanced -#endif - -#ifndef GL_ARB_framebuffer_object -#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_FRAMEBUFFER_BINDING 0x8CA6 -#define GL_DRAW_FRAMEBUFFER_BINDING GL_FRAMEBUFFER_BINDING -#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 -#endif - -#ifndef GL_ARB_framebuffer_sRGB -#define GL_FRAMEBUFFER_SRGB 0x8DB9 -#endif - -#ifndef GL_ARB_geometry_shader4 -#define GL_LINES_ADJACENCY_ARB 0x000A -#define GL_LINE_STRIP_ADJACENCY_ARB 0x000B -#define GL_TRIANGLES_ADJACENCY_ARB 0x000C -#define GL_TRIANGLE_STRIP_ADJACENCY_ARB 0x000D -#define GL_PROGRAM_POINT_SIZE_ARB 0x8642 -#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB 0x8C29 -#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 -/* reuse GL_MAX_VARYING_COMPONENTS */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER */ -#endif - -#ifndef GL_ARB_half_float_vertex -#define GL_HALF_FLOAT 0x140B -#endif - -#ifndef GL_ARB_instanced_arrays -#endif - -#ifndef GL_ARB_map_buffer_range -#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 -#endif - -#ifndef GL_ARB_texture_buffer_object -#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 -#endif - -#ifndef GL_ARB_texture_compression_rgtc -#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 -#endif - -#ifndef GL_ARB_texture_rg -#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 -#endif - -#ifndef GL_ARB_vertex_array_object -#define GL_VERTEX_ARRAY_BINDING 0x85B5 -#endif - -#ifndef GL_EXT_abgr -#define GL_ABGR_EXT 0x8000 -#endif - -#ifndef GL_EXT_blend_color -#define GL_CONSTANT_COLOR_EXT 0x8001 -#define GL_ONE_MINUS_CONSTANT_COLOR_EXT 0x8002 -#define GL_CONSTANT_ALPHA_EXT 0x8003 -#define GL_ONE_MINUS_CONSTANT_ALPHA_EXT 0x8004 -#define GL_BLEND_COLOR_EXT 0x8005 -#endif - -#ifndef GL_EXT_polygon_offset -#define GL_POLYGON_OFFSET_EXT 0x8037 -#define GL_POLYGON_OFFSET_FACTOR_EXT 0x8038 -#define GL_POLYGON_OFFSET_BIAS_EXT 0x8039 -#endif - -#ifndef GL_EXT_texture -#define GL_ALPHA4_EXT 0x803B -#define GL_ALPHA8_EXT 0x803C -#define GL_ALPHA12_EXT 0x803D -#define GL_ALPHA16_EXT 0x803E -#define GL_LUMINANCE4_EXT 0x803F -#define GL_LUMINANCE8_EXT 0x8040 -#define GL_LUMINANCE12_EXT 0x8041 -#define GL_LUMINANCE16_EXT 0x8042 -#define GL_LUMINANCE4_ALPHA4_EXT 0x8043 -#define GL_LUMINANCE6_ALPHA2_EXT 0x8044 -#define GL_LUMINANCE8_ALPHA8_EXT 0x8045 -#define GL_LUMINANCE12_ALPHA4_EXT 0x8046 -#define GL_LUMINANCE12_ALPHA12_EXT 0x8047 -#define GL_LUMINANCE16_ALPHA16_EXT 0x8048 -#define GL_INTENSITY_EXT 0x8049 -#define GL_INTENSITY4_EXT 0x804A -#define GL_INTENSITY8_EXT 0x804B -#define GL_INTENSITY12_EXT 0x804C -#define GL_INTENSITY16_EXT 0x804D -#define GL_RGB2_EXT 0x804E -#define GL_RGB4_EXT 0x804F -#define GL_RGB5_EXT 0x8050 -#define GL_RGB8_EXT 0x8051 -#define GL_RGB10_EXT 0x8052 -#define GL_RGB12_EXT 0x8053 -#define GL_RGB16_EXT 0x8054 -#define GL_RGBA2_EXT 0x8055 -#define GL_RGBA4_EXT 0x8056 -#define GL_RGB5_A1_EXT 0x8057 -#define GL_RGBA8_EXT 0x8058 -#define GL_RGB10_A2_EXT 0x8059 -#define GL_RGBA12_EXT 0x805A -#define GL_RGBA16_EXT 0x805B -#define GL_TEXTURE_RED_SIZE_EXT 0x805C -#define GL_TEXTURE_GREEN_SIZE_EXT 0x805D -#define GL_TEXTURE_BLUE_SIZE_EXT 0x805E -#define GL_TEXTURE_ALPHA_SIZE_EXT 0x805F -#define GL_TEXTURE_LUMINANCE_SIZE_EXT 0x8060 -#define GL_TEXTURE_INTENSITY_SIZE_EXT 0x8061 -#define GL_REPLACE_EXT 0x8062 -#define GL_PROXY_TEXTURE_1D_EXT 0x8063 -#define GL_PROXY_TEXTURE_2D_EXT 0x8064 -#define GL_TEXTURE_TOO_LARGE_EXT 0x8065 -#endif - -#ifndef GL_EXT_texture3D -#define GL_PACK_SKIP_IMAGES_EXT 0x806B -#define GL_PACK_IMAGE_HEIGHT_EXT 0x806C -#define GL_UNPACK_SKIP_IMAGES_EXT 0x806D -#define GL_UNPACK_IMAGE_HEIGHT_EXT 0x806E -#define GL_TEXTURE_3D_EXT 0x806F -#define GL_PROXY_TEXTURE_3D_EXT 0x8070 -#define GL_TEXTURE_DEPTH_EXT 0x8071 -#define GL_TEXTURE_WRAP_R_EXT 0x8072 -#define GL_MAX_3D_TEXTURE_SIZE_EXT 0x8073 -#endif - -#ifndef GL_SGIS_texture_filter4 -#define GL_FILTER4_SGIS 0x8146 -#define GL_TEXTURE_FILTER4_SIZE_SGIS 0x8147 -#endif - -#ifndef GL_EXT_subtexture -#endif - -#ifndef GL_EXT_copy_texture -#endif - -#ifndef GL_EXT_histogram -#define GL_HISTOGRAM_EXT 0x8024 -#define GL_PROXY_HISTOGRAM_EXT 0x8025 -#define GL_HISTOGRAM_WIDTH_EXT 0x8026 -#define GL_HISTOGRAM_FORMAT_EXT 0x8027 -#define GL_HISTOGRAM_RED_SIZE_EXT 0x8028 -#define GL_HISTOGRAM_GREEN_SIZE_EXT 0x8029 -#define GL_HISTOGRAM_BLUE_SIZE_EXT 0x802A -#define GL_HISTOGRAM_ALPHA_SIZE_EXT 0x802B -#define GL_HISTOGRAM_LUMINANCE_SIZE_EXT 0x802C -#define GL_HISTOGRAM_SINK_EXT 0x802D -#define GL_MINMAX_EXT 0x802E -#define GL_MINMAX_FORMAT_EXT 0x802F -#define GL_MINMAX_SINK_EXT 0x8030 -#define GL_TABLE_TOO_LARGE_EXT 0x8031 -#endif - -#ifndef GL_EXT_convolution -#define GL_CONVOLUTION_1D_EXT 0x8010 -#define GL_CONVOLUTION_2D_EXT 0x8011 -#define GL_SEPARABLE_2D_EXT 0x8012 -#define GL_CONVOLUTION_BORDER_MODE_EXT 0x8013 -#define GL_CONVOLUTION_FILTER_SCALE_EXT 0x8014 -#define GL_CONVOLUTION_FILTER_BIAS_EXT 0x8015 -#define GL_REDUCE_EXT 0x8016 -#define GL_CONVOLUTION_FORMAT_EXT 0x8017 -#define GL_CONVOLUTION_WIDTH_EXT 0x8018 -#define GL_CONVOLUTION_HEIGHT_EXT 0x8019 -#define GL_MAX_CONVOLUTION_WIDTH_EXT 0x801A -#define GL_MAX_CONVOLUTION_HEIGHT_EXT 0x801B -#define GL_POST_CONVOLUTION_RED_SCALE_EXT 0x801C -#define GL_POST_CONVOLUTION_GREEN_SCALE_EXT 0x801D -#define GL_POST_CONVOLUTION_BLUE_SCALE_EXT 0x801E -#define GL_POST_CONVOLUTION_ALPHA_SCALE_EXT 0x801F -#define GL_POST_CONVOLUTION_RED_BIAS_EXT 0x8020 -#define GL_POST_CONVOLUTION_GREEN_BIAS_EXT 0x8021 -#define GL_POST_CONVOLUTION_BLUE_BIAS_EXT 0x8022 -#define GL_POST_CONVOLUTION_ALPHA_BIAS_EXT 0x8023 -#endif - -#ifndef GL_SGI_color_matrix -#define GL_COLOR_MATRIX_SGI 0x80B1 -#define GL_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B2 -#define GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B3 -#define GL_POST_COLOR_MATRIX_RED_SCALE_SGI 0x80B4 -#define GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI 0x80B5 -#define GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI 0x80B6 -#define GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI 0x80B7 -#define GL_POST_COLOR_MATRIX_RED_BIAS_SGI 0x80B8 -#define GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI 0x80B9 -#define GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI 0x80BA -#define GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI 0x80BB -#endif - -#ifndef GL_SGI_color_table -#define GL_COLOR_TABLE_SGI 0x80D0 -#define GL_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D1 -#define GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D2 -#define GL_PROXY_COLOR_TABLE_SGI 0x80D3 -#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D4 -#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D5 -#define GL_COLOR_TABLE_SCALE_SGI 0x80D6 -#define GL_COLOR_TABLE_BIAS_SGI 0x80D7 -#define GL_COLOR_TABLE_FORMAT_SGI 0x80D8 -#define GL_COLOR_TABLE_WIDTH_SGI 0x80D9 -#define GL_COLOR_TABLE_RED_SIZE_SGI 0x80DA -#define GL_COLOR_TABLE_GREEN_SIZE_SGI 0x80DB -#define GL_COLOR_TABLE_BLUE_SIZE_SGI 0x80DC -#define GL_COLOR_TABLE_ALPHA_SIZE_SGI 0x80DD -#define GL_COLOR_TABLE_LUMINANCE_SIZE_SGI 0x80DE -#define GL_COLOR_TABLE_INTENSITY_SIZE_SGI 0x80DF -#endif - -#ifndef GL_SGIS_pixel_texture -#define GL_PIXEL_TEXTURE_SGIS 0x8353 -#define GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS 0x8354 -#define GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS 0x8355 -#define GL_PIXEL_GROUP_COLOR_SGIS 0x8356 -#endif - -#ifndef GL_SGIX_pixel_texture -#define GL_PIXEL_TEX_GEN_SGIX 0x8139 -#define GL_PIXEL_TEX_GEN_MODE_SGIX 0x832B -#endif - -#ifndef GL_SGIS_texture4D -#define GL_PACK_SKIP_VOLUMES_SGIS 0x8130 -#define GL_PACK_IMAGE_DEPTH_SGIS 0x8131 -#define GL_UNPACK_SKIP_VOLUMES_SGIS 0x8132 -#define GL_UNPACK_IMAGE_DEPTH_SGIS 0x8133 -#define GL_TEXTURE_4D_SGIS 0x8134 -#define GL_PROXY_TEXTURE_4D_SGIS 0x8135 -#define GL_TEXTURE_4DSIZE_SGIS 0x8136 -#define GL_TEXTURE_WRAP_Q_SGIS 0x8137 -#define GL_MAX_4D_TEXTURE_SIZE_SGIS 0x8138 -#define GL_TEXTURE_4D_BINDING_SGIS 0x814F -#endif - -#ifndef GL_SGI_texture_color_table -#define GL_TEXTURE_COLOR_TABLE_SGI 0x80BC -#define GL_PROXY_TEXTURE_COLOR_TABLE_SGI 0x80BD -#endif - -#ifndef GL_EXT_cmyka -#define GL_CMYK_EXT 0x800C -#define GL_CMYKA_EXT 0x800D -#define GL_PACK_CMYK_HINT_EXT 0x800E -#define GL_UNPACK_CMYK_HINT_EXT 0x800F -#endif - -#ifndef GL_EXT_texture_object -#define GL_TEXTURE_PRIORITY_EXT 0x8066 -#define GL_TEXTURE_RESIDENT_EXT 0x8067 -#define GL_TEXTURE_1D_BINDING_EXT 0x8068 -#define GL_TEXTURE_2D_BINDING_EXT 0x8069 -#define GL_TEXTURE_3D_BINDING_EXT 0x806A -#endif - -#ifndef GL_SGIS_detail_texture -#define GL_DETAIL_TEXTURE_2D_SGIS 0x8095 -#define GL_DETAIL_TEXTURE_2D_BINDING_SGIS 0x8096 -#define GL_LINEAR_DETAIL_SGIS 0x8097 -#define GL_LINEAR_DETAIL_ALPHA_SGIS 0x8098 -#define GL_LINEAR_DETAIL_COLOR_SGIS 0x8099 -#define GL_DETAIL_TEXTURE_LEVEL_SGIS 0x809A -#define GL_DETAIL_TEXTURE_MODE_SGIS 0x809B -#define GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS 0x809C -#endif - -#ifndef GL_SGIS_sharpen_texture -#define GL_LINEAR_SHARPEN_SGIS 0x80AD -#define GL_LINEAR_SHARPEN_ALPHA_SGIS 0x80AE -#define GL_LINEAR_SHARPEN_COLOR_SGIS 0x80AF -#define GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS 0x80B0 -#endif - -#ifndef GL_EXT_packed_pixels -#define GL_UNSIGNED_BYTE_3_3_2_EXT 0x8032 -#define GL_UNSIGNED_SHORT_4_4_4_4_EXT 0x8033 -#define GL_UNSIGNED_SHORT_5_5_5_1_EXT 0x8034 -#define GL_UNSIGNED_INT_8_8_8_8_EXT 0x8035 -#define GL_UNSIGNED_INT_10_10_10_2_EXT 0x8036 -#endif - -#ifndef GL_SGIS_texture_lod -#define GL_TEXTURE_MIN_LOD_SGIS 0x813A -#define GL_TEXTURE_MAX_LOD_SGIS 0x813B -#define GL_TEXTURE_BASE_LEVEL_SGIS 0x813C -#define GL_TEXTURE_MAX_LEVEL_SGIS 0x813D -#endif - -#ifndef GL_SGIS_multisample -#define GL_MULTISAMPLE_SGIS 0x809D -#define GL_SAMPLE_ALPHA_TO_MASK_SGIS 0x809E -#define GL_SAMPLE_ALPHA_TO_ONE_SGIS 0x809F -#define GL_SAMPLE_MASK_SGIS 0x80A0 -#define GL_1PASS_SGIS 0x80A1 -#define GL_2PASS_0_SGIS 0x80A2 -#define GL_2PASS_1_SGIS 0x80A3 -#define GL_4PASS_0_SGIS 0x80A4 -#define GL_4PASS_1_SGIS 0x80A5 -#define GL_4PASS_2_SGIS 0x80A6 -#define GL_4PASS_3_SGIS 0x80A7 -#define GL_SAMPLE_BUFFERS_SGIS 0x80A8 -#define GL_SAMPLES_SGIS 0x80A9 -#define GL_SAMPLE_MASK_VALUE_SGIS 0x80AA -#define GL_SAMPLE_MASK_INVERT_SGIS 0x80AB -#define GL_SAMPLE_PATTERN_SGIS 0x80AC -#endif - -#ifndef GL_EXT_rescale_normal -#define GL_RESCALE_NORMAL_EXT 0x803A -#endif - -#ifndef GL_EXT_vertex_array -#define GL_VERTEX_ARRAY_EXT 0x8074 -#define GL_NORMAL_ARRAY_EXT 0x8075 -#define GL_COLOR_ARRAY_EXT 0x8076 -#define GL_INDEX_ARRAY_EXT 0x8077 -#define GL_TEXTURE_COORD_ARRAY_EXT 0x8078 -#define GL_EDGE_FLAG_ARRAY_EXT 0x8079 -#define GL_VERTEX_ARRAY_SIZE_EXT 0x807A -#define GL_VERTEX_ARRAY_TYPE_EXT 0x807B -#define GL_VERTEX_ARRAY_STRIDE_EXT 0x807C -#define GL_VERTEX_ARRAY_COUNT_EXT 0x807D -#define GL_NORMAL_ARRAY_TYPE_EXT 0x807E -#define GL_NORMAL_ARRAY_STRIDE_EXT 0x807F -#define GL_NORMAL_ARRAY_COUNT_EXT 0x8080 -#define GL_COLOR_ARRAY_SIZE_EXT 0x8081 -#define GL_COLOR_ARRAY_TYPE_EXT 0x8082 -#define GL_COLOR_ARRAY_STRIDE_EXT 0x8083 -#define GL_COLOR_ARRAY_COUNT_EXT 0x8084 -#define GL_INDEX_ARRAY_TYPE_EXT 0x8085 -#define GL_INDEX_ARRAY_STRIDE_EXT 0x8086 -#define GL_INDEX_ARRAY_COUNT_EXT 0x8087 -#define GL_TEXTURE_COORD_ARRAY_SIZE_EXT 0x8088 -#define GL_TEXTURE_COORD_ARRAY_TYPE_EXT 0x8089 -#define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A -#define GL_TEXTURE_COORD_ARRAY_COUNT_EXT 0x808B -#define GL_EDGE_FLAG_ARRAY_STRIDE_EXT 0x808C -#define GL_EDGE_FLAG_ARRAY_COUNT_EXT 0x808D -#define GL_VERTEX_ARRAY_POINTER_EXT 0x808E -#define GL_NORMAL_ARRAY_POINTER_EXT 0x808F -#define GL_COLOR_ARRAY_POINTER_EXT 0x8090 -#define GL_INDEX_ARRAY_POINTER_EXT 0x8091 -#define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092 -#define GL_EDGE_FLAG_ARRAY_POINTER_EXT 0x8093 -#endif - -#ifndef GL_EXT_misc_attribute -#endif - -#ifndef GL_SGIS_generate_mipmap -#define GL_GENERATE_MIPMAP_SGIS 0x8191 -#define GL_GENERATE_MIPMAP_HINT_SGIS 0x8192 -#endif - -#ifndef GL_SGIX_clipmap -#define GL_LINEAR_CLIPMAP_LINEAR_SGIX 0x8170 -#define GL_TEXTURE_CLIPMAP_CENTER_SGIX 0x8171 -#define GL_TEXTURE_CLIPMAP_FRAME_SGIX 0x8172 -#define GL_TEXTURE_CLIPMAP_OFFSET_SGIX 0x8173 -#define GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8174 -#define GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX 0x8175 -#define GL_TEXTURE_CLIPMAP_DEPTH_SGIX 0x8176 -#define GL_MAX_CLIPMAP_DEPTH_SGIX 0x8177 -#define GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8178 -#define GL_NEAREST_CLIPMAP_NEAREST_SGIX 0x844D -#define GL_NEAREST_CLIPMAP_LINEAR_SGIX 0x844E -#define GL_LINEAR_CLIPMAP_NEAREST_SGIX 0x844F -#endif - -#ifndef GL_SGIX_shadow -#define GL_TEXTURE_COMPARE_SGIX 0x819A -#define GL_TEXTURE_COMPARE_OPERATOR_SGIX 0x819B -#define GL_TEXTURE_LEQUAL_R_SGIX 0x819C -#define GL_TEXTURE_GEQUAL_R_SGIX 0x819D -#endif - -#ifndef GL_SGIS_texture_edge_clamp -#define GL_CLAMP_TO_EDGE_SGIS 0x812F -#endif - -#ifndef GL_SGIS_texture_border_clamp -#define GL_CLAMP_TO_BORDER_SGIS 0x812D -#endif - -#ifndef GL_EXT_blend_minmax -#define GL_FUNC_ADD_EXT 0x8006 -#define GL_MIN_EXT 0x8007 -#define GL_MAX_EXT 0x8008 -#define GL_BLEND_EQUATION_EXT 0x8009 -#endif - -#ifndef GL_EXT_blend_subtract -#define GL_FUNC_SUBTRACT_EXT 0x800A -#define GL_FUNC_REVERSE_SUBTRACT_EXT 0x800B -#endif - -#ifndef GL_EXT_blend_logic_op -#endif - -#ifndef GL_SGIX_interlace -#define GL_INTERLACE_SGIX 0x8094 -#endif - -#ifndef GL_SGIX_pixel_tiles -#define GL_PIXEL_TILE_BEST_ALIGNMENT_SGIX 0x813E -#define GL_PIXEL_TILE_CACHE_INCREMENT_SGIX 0x813F -#define GL_PIXEL_TILE_WIDTH_SGIX 0x8140 -#define GL_PIXEL_TILE_HEIGHT_SGIX 0x8141 -#define GL_PIXEL_TILE_GRID_WIDTH_SGIX 0x8142 -#define GL_PIXEL_TILE_GRID_HEIGHT_SGIX 0x8143 -#define GL_PIXEL_TILE_GRID_DEPTH_SGIX 0x8144 -#define GL_PIXEL_TILE_CACHE_SIZE_SGIX 0x8145 -#endif - -#ifndef GL_SGIS_texture_select -#define GL_DUAL_ALPHA4_SGIS 0x8110 -#define GL_DUAL_ALPHA8_SGIS 0x8111 -#define GL_DUAL_ALPHA12_SGIS 0x8112 -#define GL_DUAL_ALPHA16_SGIS 0x8113 -#define GL_DUAL_LUMINANCE4_SGIS 0x8114 -#define GL_DUAL_LUMINANCE8_SGIS 0x8115 -#define GL_DUAL_LUMINANCE12_SGIS 0x8116 -#define GL_DUAL_LUMINANCE16_SGIS 0x8117 -#define GL_DUAL_INTENSITY4_SGIS 0x8118 -#define GL_DUAL_INTENSITY8_SGIS 0x8119 -#define GL_DUAL_INTENSITY12_SGIS 0x811A -#define GL_DUAL_INTENSITY16_SGIS 0x811B -#define GL_DUAL_LUMINANCE_ALPHA4_SGIS 0x811C -#define GL_DUAL_LUMINANCE_ALPHA8_SGIS 0x811D -#define GL_QUAD_ALPHA4_SGIS 0x811E -#define GL_QUAD_ALPHA8_SGIS 0x811F -#define GL_QUAD_LUMINANCE4_SGIS 0x8120 -#define GL_QUAD_LUMINANCE8_SGIS 0x8121 -#define GL_QUAD_INTENSITY4_SGIS 0x8122 -#define GL_QUAD_INTENSITY8_SGIS 0x8123 -#define GL_DUAL_TEXTURE_SELECT_SGIS 0x8124 -#define GL_QUAD_TEXTURE_SELECT_SGIS 0x8125 -#endif - -#ifndef GL_SGIX_sprite -#define GL_SPRITE_SGIX 0x8148 -#define GL_SPRITE_MODE_SGIX 0x8149 -#define GL_SPRITE_AXIS_SGIX 0x814A -#define GL_SPRITE_TRANSLATION_SGIX 0x814B -#define GL_SPRITE_AXIAL_SGIX 0x814C -#define GL_SPRITE_OBJECT_ALIGNED_SGIX 0x814D -#define GL_SPRITE_EYE_ALIGNED_SGIX 0x814E -#endif - -#ifndef GL_SGIX_texture_multi_buffer -#define GL_TEXTURE_MULTI_BUFFER_HINT_SGIX 0x812E -#endif - -#ifndef GL_EXT_point_parameters -#define GL_POINT_SIZE_MIN_EXT 0x8126 -#define GL_POINT_SIZE_MAX_EXT 0x8127 -#define GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128 -#define GL_DISTANCE_ATTENUATION_EXT 0x8129 -#endif - -#ifndef GL_SGIS_point_parameters -#define GL_POINT_SIZE_MIN_SGIS 0x8126 -#define GL_POINT_SIZE_MAX_SGIS 0x8127 -#define GL_POINT_FADE_THRESHOLD_SIZE_SGIS 0x8128 -#define GL_DISTANCE_ATTENUATION_SGIS 0x8129 -#endif - -#ifndef GL_SGIX_instruments -#define GL_INSTRUMENT_BUFFER_POINTER_SGIX 0x8180 -#define GL_INSTRUMENT_MEASUREMENTS_SGIX 0x8181 -#endif - -#ifndef GL_SGIX_texture_scale_bias -#define GL_POST_TEXTURE_FILTER_BIAS_SGIX 0x8179 -#define GL_POST_TEXTURE_FILTER_SCALE_SGIX 0x817A -#define GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX 0x817B -#define GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX 0x817C -#endif - -#ifndef GL_SGIX_framezoom -#define GL_FRAMEZOOM_SGIX 0x818B -#define GL_FRAMEZOOM_FACTOR_SGIX 0x818C -#define GL_MAX_FRAMEZOOM_FACTOR_SGIX 0x818D -#endif - -#ifndef GL_SGIX_tag_sample_buffer -#endif - -#ifndef GL_FfdMaskSGIX -#define GL_TEXTURE_DEFORMATION_BIT_SGIX 0x00000001 -#define GL_GEOMETRY_DEFORMATION_BIT_SGIX 0x00000002 -#endif - -#ifndef GL_SGIX_polynomial_ffd -#define GL_GEOMETRY_DEFORMATION_SGIX 0x8194 -#define GL_TEXTURE_DEFORMATION_SGIX 0x8195 -#define GL_DEFORMATIONS_MASK_SGIX 0x8196 -#define GL_MAX_DEFORMATION_ORDER_SGIX 0x8197 -#endif - -#ifndef GL_SGIX_reference_plane -#define GL_REFERENCE_PLANE_SGIX 0x817D -#define GL_REFERENCE_PLANE_EQUATION_SGIX 0x817E -#endif - -#ifndef GL_SGIX_flush_raster -#endif - -#ifndef GL_SGIX_depth_texture -#define GL_DEPTH_COMPONENT16_SGIX 0x81A5 -#define GL_DEPTH_COMPONENT24_SGIX 0x81A6 -#define GL_DEPTH_COMPONENT32_SGIX 0x81A7 -#endif - -#ifndef GL_SGIS_fog_function -#define GL_FOG_FUNC_SGIS 0x812A -#define GL_FOG_FUNC_POINTS_SGIS 0x812B -#define GL_MAX_FOG_FUNC_POINTS_SGIS 0x812C -#endif - -#ifndef GL_SGIX_fog_offset -#define GL_FOG_OFFSET_SGIX 0x8198 -#define GL_FOG_OFFSET_VALUE_SGIX 0x8199 -#endif - -#ifndef GL_HP_image_transform -#define GL_IMAGE_SCALE_X_HP 0x8155 -#define GL_IMAGE_SCALE_Y_HP 0x8156 -#define GL_IMAGE_TRANSLATE_X_HP 0x8157 -#define GL_IMAGE_TRANSLATE_Y_HP 0x8158 -#define GL_IMAGE_ROTATE_ANGLE_HP 0x8159 -#define GL_IMAGE_ROTATE_ORIGIN_X_HP 0x815A -#define GL_IMAGE_ROTATE_ORIGIN_Y_HP 0x815B -#define GL_IMAGE_MAG_FILTER_HP 0x815C -#define GL_IMAGE_MIN_FILTER_HP 0x815D -#define GL_IMAGE_CUBIC_WEIGHT_HP 0x815E -#define GL_CUBIC_HP 0x815F -#define GL_AVERAGE_HP 0x8160 -#define GL_IMAGE_TRANSFORM_2D_HP 0x8161 -#define GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8162 -#define GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8163 -#endif - -#ifndef GL_HP_convolution_border_modes -#define GL_IGNORE_BORDER_HP 0x8150 -#define GL_CONSTANT_BORDER_HP 0x8151 -#define GL_REPLICATE_BORDER_HP 0x8153 -#define GL_CONVOLUTION_BORDER_COLOR_HP 0x8154 -#endif - -#ifndef GL_INGR_palette_buffer -#endif - -#ifndef GL_SGIX_texture_add_env -#define GL_TEXTURE_ENV_BIAS_SGIX 0x80BE -#endif - -#ifndef GL_EXT_color_subtable -#endif - -#ifndef GL_PGI_vertex_hints -#define GL_VERTEX_DATA_HINT_PGI 0x1A22A -#define GL_VERTEX_CONSISTENT_HINT_PGI 0x1A22B -#define GL_MATERIAL_SIDE_HINT_PGI 0x1A22C -#define GL_MAX_VERTEX_HINT_PGI 0x1A22D -#define GL_COLOR3_BIT_PGI 0x00010000 -#define GL_COLOR4_BIT_PGI 0x00020000 -#define GL_EDGEFLAG_BIT_PGI 0x00040000 -#define GL_INDEX_BIT_PGI 0x00080000 -#define GL_MAT_AMBIENT_BIT_PGI 0x00100000 -#define GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI 0x00200000 -#define GL_MAT_DIFFUSE_BIT_PGI 0x00400000 -#define GL_MAT_EMISSION_BIT_PGI 0x00800000 -#define GL_MAT_COLOR_INDEXES_BIT_PGI 0x01000000 -#define GL_MAT_SHININESS_BIT_PGI 0x02000000 -#define GL_MAT_SPECULAR_BIT_PGI 0x04000000 -#define GL_NORMAL_BIT_PGI 0x08000000 -#define GL_TEXCOORD1_BIT_PGI 0x10000000 -#define GL_TEXCOORD2_BIT_PGI 0x20000000 -#define GL_TEXCOORD3_BIT_PGI 0x40000000 -#define GL_TEXCOORD4_BIT_PGI 0x80000000 -#define GL_VERTEX23_BIT_PGI 0x00000004 -#define GL_VERTEX4_BIT_PGI 0x00000008 -#endif - -#ifndef GL_PGI_misc_hints -#define GL_PREFER_DOUBLEBUFFER_HINT_PGI 0x1A1F8 -#define GL_CONSERVE_MEMORY_HINT_PGI 0x1A1FD -#define GL_RECLAIM_MEMORY_HINT_PGI 0x1A1FE -#define GL_NATIVE_GRAPHICS_HANDLE_PGI 0x1A202 -#define GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI 0x1A203 -#define GL_NATIVE_GRAPHICS_END_HINT_PGI 0x1A204 -#define GL_ALWAYS_FAST_HINT_PGI 0x1A20C -#define GL_ALWAYS_SOFT_HINT_PGI 0x1A20D -#define GL_ALLOW_DRAW_OBJ_HINT_PGI 0x1A20E -#define GL_ALLOW_DRAW_WIN_HINT_PGI 0x1A20F -#define GL_ALLOW_DRAW_FRG_HINT_PGI 0x1A210 -#define GL_ALLOW_DRAW_MEM_HINT_PGI 0x1A211 -#define GL_STRICT_DEPTHFUNC_HINT_PGI 0x1A216 -#define GL_STRICT_LIGHTING_HINT_PGI 0x1A217 -#define GL_STRICT_SCISSOR_HINT_PGI 0x1A218 -#define GL_FULL_STIPPLE_HINT_PGI 0x1A219 -#define GL_CLIP_NEAR_HINT_PGI 0x1A220 -#define GL_CLIP_FAR_HINT_PGI 0x1A221 -#define GL_WIDE_LINE_HINT_PGI 0x1A222 -#define GL_BACK_NORMALS_HINT_PGI 0x1A223 -#endif - -#ifndef GL_EXT_paletted_texture -#define GL_COLOR_INDEX1_EXT 0x80E2 -#define GL_COLOR_INDEX2_EXT 0x80E3 -#define GL_COLOR_INDEX4_EXT 0x80E4 -#define GL_COLOR_INDEX8_EXT 0x80E5 -#define GL_COLOR_INDEX12_EXT 0x80E6 -#define GL_COLOR_INDEX16_EXT 0x80E7 -#define GL_TEXTURE_INDEX_SIZE_EXT 0x80ED -#endif - -#ifndef GL_EXT_clip_volume_hint -#define GL_CLIP_VOLUME_CLIPPING_HINT_EXT 0x80F0 -#endif - -#ifndef GL_SGIX_list_priority -#define GL_LIST_PRIORITY_SGIX 0x8182 -#endif - -#ifndef GL_SGIX_ir_instrument1 -#define GL_IR_INSTRUMENT1_SGIX 0x817F -#endif - -#ifndef GL_SGIX_calligraphic_fragment -#define GL_CALLIGRAPHIC_FRAGMENT_SGIX 0x8183 -#endif - -#ifndef GL_SGIX_texture_lod_bias -#define GL_TEXTURE_LOD_BIAS_S_SGIX 0x818E -#define GL_TEXTURE_LOD_BIAS_T_SGIX 0x818F -#define GL_TEXTURE_LOD_BIAS_R_SGIX 0x8190 -#endif - -#ifndef GL_SGIX_shadow_ambient -#define GL_SHADOW_AMBIENT_SGIX 0x80BF -#endif - -#ifndef GL_EXT_index_texture -#endif - -#ifndef GL_EXT_index_material -#define GL_INDEX_MATERIAL_EXT 0x81B8 -#define GL_INDEX_MATERIAL_PARAMETER_EXT 0x81B9 -#define GL_INDEX_MATERIAL_FACE_EXT 0x81BA -#endif - -#ifndef GL_EXT_index_func -#define GL_INDEX_TEST_EXT 0x81B5 -#define GL_INDEX_TEST_FUNC_EXT 0x81B6 -#define GL_INDEX_TEST_REF_EXT 0x81B7 -#endif - -#ifndef GL_EXT_index_array_formats -#define GL_IUI_V2F_EXT 0x81AD -#define GL_IUI_V3F_EXT 0x81AE -#define GL_IUI_N3F_V2F_EXT 0x81AF -#define GL_IUI_N3F_V3F_EXT 0x81B0 -#define GL_T2F_IUI_V2F_EXT 0x81B1 -#define GL_T2F_IUI_V3F_EXT 0x81B2 -#define GL_T2F_IUI_N3F_V2F_EXT 0x81B3 -#define GL_T2F_IUI_N3F_V3F_EXT 0x81B4 -#endif - -#ifndef GL_EXT_compiled_vertex_array -#define GL_ARRAY_ELEMENT_LOCK_FIRST_EXT 0x81A8 -#define GL_ARRAY_ELEMENT_LOCK_COUNT_EXT 0x81A9 -#endif - -#ifndef GL_EXT_cull_vertex -#define GL_CULL_VERTEX_EXT 0x81AA -#define GL_CULL_VERTEX_EYE_POSITION_EXT 0x81AB -#define GL_CULL_VERTEX_OBJECT_POSITION_EXT 0x81AC -#endif - -#ifndef GL_SGIX_ycrcb -#define GL_YCRCB_422_SGIX 0x81BB -#define GL_YCRCB_444_SGIX 0x81BC -#endif - -#ifndef GL_SGIX_fragment_lighting -#define GL_FRAGMENT_LIGHTING_SGIX 0x8400 -#define GL_FRAGMENT_COLOR_MATERIAL_SGIX 0x8401 -#define GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX 0x8402 -#define GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX 0x8403 -#define GL_MAX_FRAGMENT_LIGHTS_SGIX 0x8404 -#define GL_MAX_ACTIVE_LIGHTS_SGIX 0x8405 -#define GL_CURRENT_RASTER_NORMAL_SGIX 0x8406 -#define GL_LIGHT_ENV_MODE_SGIX 0x8407 -#define GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX 0x8408 -#define GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX 0x8409 -#define GL_FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX 0x840A -#define GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX 0x840B -#define GL_FRAGMENT_LIGHT0_SGIX 0x840C -#define GL_FRAGMENT_LIGHT1_SGIX 0x840D -#define GL_FRAGMENT_LIGHT2_SGIX 0x840E -#define GL_FRAGMENT_LIGHT3_SGIX 0x840F -#define GL_FRAGMENT_LIGHT4_SGIX 0x8410 -#define GL_FRAGMENT_LIGHT5_SGIX 0x8411 -#define GL_FRAGMENT_LIGHT6_SGIX 0x8412 -#define GL_FRAGMENT_LIGHT7_SGIX 0x8413 -#endif - -#ifndef GL_IBM_rasterpos_clip -#define GL_RASTER_POSITION_UNCLIPPED_IBM 0x19262 -#endif - -#ifndef GL_HP_texture_lighting -#define GL_TEXTURE_LIGHTING_MODE_HP 0x8167 -#define GL_TEXTURE_POST_SPECULAR_HP 0x8168 -#define GL_TEXTURE_PRE_SPECULAR_HP 0x8169 -#endif - -#ifndef GL_EXT_draw_range_elements -#define GL_MAX_ELEMENTS_VERTICES_EXT 0x80E8 -#define GL_MAX_ELEMENTS_INDICES_EXT 0x80E9 -#endif - -#ifndef GL_WIN_phong_shading -#define GL_PHONG_WIN 0x80EA -#define GL_PHONG_HINT_WIN 0x80EB -#endif - -#ifndef GL_WIN_specular_fog -#define GL_FOG_SPECULAR_TEXTURE_WIN 0x80EC -#endif - -#ifndef GL_EXT_light_texture -#define GL_FRAGMENT_MATERIAL_EXT 0x8349 -#define GL_FRAGMENT_NORMAL_EXT 0x834A -#define GL_FRAGMENT_COLOR_EXT 0x834C -#define GL_ATTENUATION_EXT 0x834D -#define GL_SHADOW_ATTENUATION_EXT 0x834E -#define GL_TEXTURE_APPLICATION_MODE_EXT 0x834F -#define GL_TEXTURE_LIGHT_EXT 0x8350 -#define GL_TEXTURE_MATERIAL_FACE_EXT 0x8351 -#define GL_TEXTURE_MATERIAL_PARAMETER_EXT 0x8352 -/* reuse GL_FRAGMENT_DEPTH_EXT */ -#endif - -#ifndef GL_SGIX_blend_alpha_minmax -#define GL_ALPHA_MIN_SGIX 0x8320 -#define GL_ALPHA_MAX_SGIX 0x8321 -#endif - -#ifndef GL_SGIX_impact_pixel_texture -#define GL_PIXEL_TEX_GEN_Q_CEILING_SGIX 0x8184 -#define GL_PIXEL_TEX_GEN_Q_ROUND_SGIX 0x8185 -#define GL_PIXEL_TEX_GEN_Q_FLOOR_SGIX 0x8186 -#define GL_PIXEL_TEX_GEN_ALPHA_REPLACE_SGIX 0x8187 -#define GL_PIXEL_TEX_GEN_ALPHA_NO_REPLACE_SGIX 0x8188 -#define GL_PIXEL_TEX_GEN_ALPHA_LS_SGIX 0x8189 -#define GL_PIXEL_TEX_GEN_ALPHA_MS_SGIX 0x818A -#endif - -#ifndef GL_EXT_bgra -#define GL_BGR_EXT 0x80E0 -#define GL_BGRA_EXT 0x80E1 -#endif - -#ifndef GL_SGIX_async -#define GL_ASYNC_MARKER_SGIX 0x8329 -#endif - -#ifndef GL_SGIX_async_pixel -#define GL_ASYNC_TEX_IMAGE_SGIX 0x835C -#define GL_ASYNC_DRAW_PIXELS_SGIX 0x835D -#define GL_ASYNC_READ_PIXELS_SGIX 0x835E -#define GL_MAX_ASYNC_TEX_IMAGE_SGIX 0x835F -#define GL_MAX_ASYNC_DRAW_PIXELS_SGIX 0x8360 -#define GL_MAX_ASYNC_READ_PIXELS_SGIX 0x8361 -#endif - -#ifndef GL_SGIX_async_histogram -#define GL_ASYNC_HISTOGRAM_SGIX 0x832C -#define GL_MAX_ASYNC_HISTOGRAM_SGIX 0x832D -#endif - -#ifndef GL_INTEL_texture_scissor -#endif - -#ifndef GL_INTEL_parallel_arrays -#define GL_PARALLEL_ARRAYS_INTEL 0x83F4 -#define GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL 0x83F5 -#define GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL 0x83F6 -#define GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL 0x83F7 -#define GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL 0x83F8 -#endif - -#ifndef GL_HP_occlusion_test -#define GL_OCCLUSION_TEST_HP 0x8165 -#define GL_OCCLUSION_TEST_RESULT_HP 0x8166 -#endif - -#ifndef GL_EXT_pixel_transform -#define GL_PIXEL_TRANSFORM_2D_EXT 0x8330 -#define GL_PIXEL_MAG_FILTER_EXT 0x8331 -#define GL_PIXEL_MIN_FILTER_EXT 0x8332 -#define GL_PIXEL_CUBIC_WEIGHT_EXT 0x8333 -#define GL_CUBIC_EXT 0x8334 -#define GL_AVERAGE_EXT 0x8335 -#define GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8336 -#define GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8337 -#define GL_PIXEL_TRANSFORM_2D_MATRIX_EXT 0x8338 -#endif - -#ifndef GL_EXT_pixel_transform_color_table -#endif - -#ifndef GL_EXT_shared_texture_palette -#define GL_SHARED_TEXTURE_PALETTE_EXT 0x81FB -#endif - -#ifndef GL_EXT_separate_specular_color -#define GL_LIGHT_MODEL_COLOR_CONTROL_EXT 0x81F8 -#define GL_SINGLE_COLOR_EXT 0x81F9 -#define GL_SEPARATE_SPECULAR_COLOR_EXT 0x81FA -#endif - -#ifndef GL_EXT_secondary_color -#define GL_COLOR_SUM_EXT 0x8458 -#define GL_CURRENT_SECONDARY_COLOR_EXT 0x8459 -#define GL_SECONDARY_COLOR_ARRAY_SIZE_EXT 0x845A -#define GL_SECONDARY_COLOR_ARRAY_TYPE_EXT 0x845B -#define GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT 0x845C -#define GL_SECONDARY_COLOR_ARRAY_POINTER_EXT 0x845D -#define GL_SECONDARY_COLOR_ARRAY_EXT 0x845E -#endif - -#ifndef GL_EXT_texture_perturb_normal -#define GL_PERTURB_EXT 0x85AE -#define GL_TEXTURE_NORMAL_EXT 0x85AF -#endif - -#ifndef GL_EXT_multi_draw_arrays -#endif - -#ifndef GL_EXT_fog_coord -#define GL_FOG_COORDINATE_SOURCE_EXT 0x8450 -#define GL_FOG_COORDINATE_EXT 0x8451 -#define GL_FRAGMENT_DEPTH_EXT 0x8452 -#define GL_CURRENT_FOG_COORDINATE_EXT 0x8453 -#define GL_FOG_COORDINATE_ARRAY_TYPE_EXT 0x8454 -#define GL_FOG_COORDINATE_ARRAY_STRIDE_EXT 0x8455 -#define GL_FOG_COORDINATE_ARRAY_POINTER_EXT 0x8456 -#define GL_FOG_COORDINATE_ARRAY_EXT 0x8457 -#endif - -#ifndef GL_REND_screen_coordinates -#define GL_SCREEN_COORDINATES_REND 0x8490 -#define GL_INVERTED_SCREEN_W_REND 0x8491 -#endif - -#ifndef GL_EXT_coordinate_frame -#define GL_TANGENT_ARRAY_EXT 0x8439 -#define GL_BINORMAL_ARRAY_EXT 0x843A -#define GL_CURRENT_TANGENT_EXT 0x843B -#define GL_CURRENT_BINORMAL_EXT 0x843C -#define GL_TANGENT_ARRAY_TYPE_EXT 0x843E -#define GL_TANGENT_ARRAY_STRIDE_EXT 0x843F -#define GL_BINORMAL_ARRAY_TYPE_EXT 0x8440 -#define GL_BINORMAL_ARRAY_STRIDE_EXT 0x8441 -#define GL_TANGENT_ARRAY_POINTER_EXT 0x8442 -#define GL_BINORMAL_ARRAY_POINTER_EXT 0x8443 -#define GL_MAP1_TANGENT_EXT 0x8444 -#define GL_MAP2_TANGENT_EXT 0x8445 -#define GL_MAP1_BINORMAL_EXT 0x8446 -#define GL_MAP2_BINORMAL_EXT 0x8447 -#endif - -#ifndef GL_EXT_texture_env_combine -#define GL_COMBINE_EXT 0x8570 -#define GL_COMBINE_RGB_EXT 0x8571 -#define GL_COMBINE_ALPHA_EXT 0x8572 -#define GL_RGB_SCALE_EXT 0x8573 -#define GL_ADD_SIGNED_EXT 0x8574 -#define GL_INTERPOLATE_EXT 0x8575 -#define GL_CONSTANT_EXT 0x8576 -#define GL_PRIMARY_COLOR_EXT 0x8577 -#define GL_PREVIOUS_EXT 0x8578 -#define GL_SOURCE0_RGB_EXT 0x8580 -#define GL_SOURCE1_RGB_EXT 0x8581 -#define GL_SOURCE2_RGB_EXT 0x8582 -#define GL_SOURCE0_ALPHA_EXT 0x8588 -#define GL_SOURCE1_ALPHA_EXT 0x8589 -#define GL_SOURCE2_ALPHA_EXT 0x858A -#define GL_OPERAND0_RGB_EXT 0x8590 -#define GL_OPERAND1_RGB_EXT 0x8591 -#define GL_OPERAND2_RGB_EXT 0x8592 -#define GL_OPERAND0_ALPHA_EXT 0x8598 -#define GL_OPERAND1_ALPHA_EXT 0x8599 -#define GL_OPERAND2_ALPHA_EXT 0x859A -#endif - -#ifndef GL_APPLE_specular_vector -#define GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE 0x85B0 -#endif - -#ifndef GL_APPLE_transform_hint -#define GL_TRANSFORM_HINT_APPLE 0x85B1 -#endif - -#ifndef GL_SGIX_fog_scale -#define GL_FOG_SCALE_SGIX 0x81FC -#define GL_FOG_SCALE_VALUE_SGIX 0x81FD -#endif - -#ifndef GL_SUNX_constant_data -#define GL_UNPACK_CONSTANT_DATA_SUNX 0x81D5 -#define GL_TEXTURE_CONSTANT_DATA_SUNX 0x81D6 -#endif - -#ifndef GL_SUN_global_alpha -#define GL_GLOBAL_ALPHA_SUN 0x81D9 -#define GL_GLOBAL_ALPHA_FACTOR_SUN 0x81DA -#endif - -#ifndef GL_SUN_triangle_list -#define GL_RESTART_SUN 0x0001 -#define GL_REPLACE_MIDDLE_SUN 0x0002 -#define GL_REPLACE_OLDEST_SUN 0x0003 -#define GL_TRIANGLE_LIST_SUN 0x81D7 -#define GL_REPLACEMENT_CODE_SUN 0x81D8 -#define GL_REPLACEMENT_CODE_ARRAY_SUN 0x85C0 -#define GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN 0x85C1 -#define GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN 0x85C2 -#define GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN 0x85C3 -#define GL_R1UI_V3F_SUN 0x85C4 -#define GL_R1UI_C4UB_V3F_SUN 0x85C5 -#define GL_R1UI_C3F_V3F_SUN 0x85C6 -#define GL_R1UI_N3F_V3F_SUN 0x85C7 -#define GL_R1UI_C4F_N3F_V3F_SUN 0x85C8 -#define GL_R1UI_T2F_V3F_SUN 0x85C9 -#define GL_R1UI_T2F_N3F_V3F_SUN 0x85CA -#define GL_R1UI_T2F_C4F_N3F_V3F_SUN 0x85CB -#endif - -#ifndef GL_SUN_vertex -#endif - -#ifndef GL_EXT_blend_func_separate -#define GL_BLEND_DST_RGB_EXT 0x80C8 -#define GL_BLEND_SRC_RGB_EXT 0x80C9 -#define GL_BLEND_DST_ALPHA_EXT 0x80CA -#define GL_BLEND_SRC_ALPHA_EXT 0x80CB -#endif - -#ifndef GL_INGR_color_clamp -#define GL_RED_MIN_CLAMP_INGR 0x8560 -#define GL_GREEN_MIN_CLAMP_INGR 0x8561 -#define GL_BLUE_MIN_CLAMP_INGR 0x8562 -#define GL_ALPHA_MIN_CLAMP_INGR 0x8563 -#define GL_RED_MAX_CLAMP_INGR 0x8564 -#define GL_GREEN_MAX_CLAMP_INGR 0x8565 -#define GL_BLUE_MAX_CLAMP_INGR 0x8566 -#define GL_ALPHA_MAX_CLAMP_INGR 0x8567 -#endif - -#ifndef GL_INGR_interlace_read -#define GL_INTERLACE_READ_INGR 0x8568 -#endif - -#ifndef GL_EXT_stencil_wrap -#define GL_INCR_WRAP_EXT 0x8507 -#define GL_DECR_WRAP_EXT 0x8508 -#endif - -#ifndef GL_EXT_422_pixels -#define GL_422_EXT 0x80CC -#define GL_422_REV_EXT 0x80CD -#define GL_422_AVERAGE_EXT 0x80CE -#define GL_422_REV_AVERAGE_EXT 0x80CF -#endif - -#ifndef GL_NV_texgen_reflection -#define GL_NORMAL_MAP_NV 0x8511 -#define GL_REFLECTION_MAP_NV 0x8512 -#endif - -#ifndef GL_EXT_texture_cube_map -#define GL_NORMAL_MAP_EXT 0x8511 -#define GL_REFLECTION_MAP_EXT 0x8512 -#define GL_TEXTURE_CUBE_MAP_EXT 0x8513 -#define GL_TEXTURE_BINDING_CUBE_MAP_EXT 0x8514 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT 0x8515 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT 0x8516 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT 0x8517 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT 0x8518 -#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT 0x8519 -#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT 0x851A -#define GL_PROXY_TEXTURE_CUBE_MAP_EXT 0x851B -#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT 0x851C -#endif - -#ifndef GL_SUN_convolution_border_modes -#define GL_WRAP_BORDER_SUN 0x81D4 -#endif - -#ifndef GL_EXT_texture_env_add -#endif - -#ifndef GL_EXT_texture_lod_bias -#define GL_MAX_TEXTURE_LOD_BIAS_EXT 0x84FD -#define GL_TEXTURE_FILTER_CONTROL_EXT 0x8500 -#define GL_TEXTURE_LOD_BIAS_EXT 0x8501 -#endif - -#ifndef GL_EXT_texture_filter_anisotropic -#define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE -#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF -#endif - -#ifndef GL_EXT_vertex_weighting -#define GL_MODELVIEW0_STACK_DEPTH_EXT GL_MODELVIEW_STACK_DEPTH -#define GL_MODELVIEW1_STACK_DEPTH_EXT 0x8502 -#define GL_MODELVIEW0_MATRIX_EXT GL_MODELVIEW_MATRIX -#define GL_MODELVIEW1_MATRIX_EXT 0x8506 -#define GL_VERTEX_WEIGHTING_EXT 0x8509 -#define GL_MODELVIEW0_EXT GL_MODELVIEW -#define GL_MODELVIEW1_EXT 0x850A -#define GL_CURRENT_VERTEX_WEIGHT_EXT 0x850B -#define GL_VERTEX_WEIGHT_ARRAY_EXT 0x850C -#define GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT 0x850D -#define GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT 0x850E -#define GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT 0x850F -#define GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT 0x8510 -#endif - -#ifndef GL_NV_light_max_exponent -#define GL_MAX_SHININESS_NV 0x8504 -#define GL_MAX_SPOT_EXPONENT_NV 0x8505 -#endif - -#ifndef GL_NV_vertex_array_range -#define GL_VERTEX_ARRAY_RANGE_NV 0x851D -#define GL_VERTEX_ARRAY_RANGE_LENGTH_NV 0x851E -#define GL_VERTEX_ARRAY_RANGE_VALID_NV 0x851F -#define GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV 0x8520 -#define GL_VERTEX_ARRAY_RANGE_POINTER_NV 0x8521 -#endif - -#ifndef GL_NV_register_combiners -#define GL_REGISTER_COMBINERS_NV 0x8522 -#define GL_VARIABLE_A_NV 0x8523 -#define GL_VARIABLE_B_NV 0x8524 -#define GL_VARIABLE_C_NV 0x8525 -#define GL_VARIABLE_D_NV 0x8526 -#define GL_VARIABLE_E_NV 0x8527 -#define GL_VARIABLE_F_NV 0x8528 -#define GL_VARIABLE_G_NV 0x8529 -#define GL_CONSTANT_COLOR0_NV 0x852A -#define GL_CONSTANT_COLOR1_NV 0x852B -#define GL_PRIMARY_COLOR_NV 0x852C -#define GL_SECONDARY_COLOR_NV 0x852D -#define GL_SPARE0_NV 0x852E -#define GL_SPARE1_NV 0x852F -#define GL_DISCARD_NV 0x8530 -#define GL_E_TIMES_F_NV 0x8531 -#define GL_SPARE0_PLUS_SECONDARY_COLOR_NV 0x8532 -#define GL_UNSIGNED_IDENTITY_NV 0x8536 -#define GL_UNSIGNED_INVERT_NV 0x8537 -#define GL_EXPAND_NORMAL_NV 0x8538 -#define GL_EXPAND_NEGATE_NV 0x8539 -#define GL_HALF_BIAS_NORMAL_NV 0x853A -#define GL_HALF_BIAS_NEGATE_NV 0x853B -#define GL_SIGNED_IDENTITY_NV 0x853C -#define GL_SIGNED_NEGATE_NV 0x853D -#define GL_SCALE_BY_TWO_NV 0x853E -#define GL_SCALE_BY_FOUR_NV 0x853F -#define GL_SCALE_BY_ONE_HALF_NV 0x8540 -#define GL_BIAS_BY_NEGATIVE_ONE_HALF_NV 0x8541 -#define GL_COMBINER_INPUT_NV 0x8542 -#define GL_COMBINER_MAPPING_NV 0x8543 -#define GL_COMBINER_COMPONENT_USAGE_NV 0x8544 -#define GL_COMBINER_AB_DOT_PRODUCT_NV 0x8545 -#define GL_COMBINER_CD_DOT_PRODUCT_NV 0x8546 -#define GL_COMBINER_MUX_SUM_NV 0x8547 -#define GL_COMBINER_SCALE_NV 0x8548 -#define GL_COMBINER_BIAS_NV 0x8549 -#define GL_COMBINER_AB_OUTPUT_NV 0x854A -#define GL_COMBINER_CD_OUTPUT_NV 0x854B -#define GL_COMBINER_SUM_OUTPUT_NV 0x854C -#define GL_MAX_GENERAL_COMBINERS_NV 0x854D -#define GL_NUM_GENERAL_COMBINERS_NV 0x854E -#define GL_COLOR_SUM_CLAMP_NV 0x854F -#define GL_COMBINER0_NV 0x8550 -#define GL_COMBINER1_NV 0x8551 -#define GL_COMBINER2_NV 0x8552 -#define GL_COMBINER3_NV 0x8553 -#define GL_COMBINER4_NV 0x8554 -#define GL_COMBINER5_NV 0x8555 -#define GL_COMBINER6_NV 0x8556 -#define GL_COMBINER7_NV 0x8557 -/* reuse GL_TEXTURE0_ARB */ -/* reuse GL_TEXTURE1_ARB */ -/* reuse GL_ZERO */ -/* reuse GL_NONE */ -/* reuse GL_FOG */ -#endif - -#ifndef GL_NV_fog_distance -#define GL_FOG_DISTANCE_MODE_NV 0x855A -#define GL_EYE_RADIAL_NV 0x855B -#define GL_EYE_PLANE_ABSOLUTE_NV 0x855C -/* reuse GL_EYE_PLANE */ -#endif - -#ifndef GL_NV_texgen_emboss -#define GL_EMBOSS_LIGHT_NV 0x855D -#define GL_EMBOSS_CONSTANT_NV 0x855E -#define GL_EMBOSS_MAP_NV 0x855F -#endif - -#ifndef GL_NV_blend_square -#endif - -#ifndef GL_NV_texture_env_combine4 -#define GL_COMBINE4_NV 0x8503 -#define GL_SOURCE3_RGB_NV 0x8583 -#define GL_SOURCE3_ALPHA_NV 0x858B -#define GL_OPERAND3_RGB_NV 0x8593 -#define GL_OPERAND3_ALPHA_NV 0x859B -#endif - -#ifndef GL_MESA_resize_buffers -#endif - -#ifndef GL_MESA_window_pos -#endif - -#ifndef GL_EXT_texture_compression_s3tc -#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0 -#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1 -#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2 -#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3 -#endif - -#ifndef GL_IBM_cull_vertex -#define GL_CULL_VERTEX_IBM 103050 -#endif - -#ifndef GL_IBM_multimode_draw_arrays -#endif - -#ifndef GL_IBM_vertex_array_lists -#define GL_VERTEX_ARRAY_LIST_IBM 103070 -#define GL_NORMAL_ARRAY_LIST_IBM 103071 -#define GL_COLOR_ARRAY_LIST_IBM 103072 -#define GL_INDEX_ARRAY_LIST_IBM 103073 -#define GL_TEXTURE_COORD_ARRAY_LIST_IBM 103074 -#define GL_EDGE_FLAG_ARRAY_LIST_IBM 103075 -#define GL_FOG_COORDINATE_ARRAY_LIST_IBM 103076 -#define GL_SECONDARY_COLOR_ARRAY_LIST_IBM 103077 -#define GL_VERTEX_ARRAY_LIST_STRIDE_IBM 103080 -#define GL_NORMAL_ARRAY_LIST_STRIDE_IBM 103081 -#define GL_COLOR_ARRAY_LIST_STRIDE_IBM 103082 -#define GL_INDEX_ARRAY_LIST_STRIDE_IBM 103083 -#define GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM 103084 -#define GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM 103085 -#define GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM 103086 -#define GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM 103087 -#endif - -#ifndef GL_SGIX_subsample -#define GL_PACK_SUBSAMPLE_RATE_SGIX 0x85A0 -#define GL_UNPACK_SUBSAMPLE_RATE_SGIX 0x85A1 -#define GL_PIXEL_SUBSAMPLE_4444_SGIX 0x85A2 -#define GL_PIXEL_SUBSAMPLE_2424_SGIX 0x85A3 -#define GL_PIXEL_SUBSAMPLE_4242_SGIX 0x85A4 -#endif - -#ifndef GL_SGIX_ycrcb_subsample -#endif - -#ifndef GL_SGIX_ycrcba -#define GL_YCRCB_SGIX 0x8318 -#define GL_YCRCBA_SGIX 0x8319 -#endif - -#ifndef GL_SGI_depth_pass_instrument -#define GL_DEPTH_PASS_INSTRUMENT_SGIX 0x8310 -#define GL_DEPTH_PASS_INSTRUMENT_COUNTERS_SGIX 0x8311 -#define GL_DEPTH_PASS_INSTRUMENT_MAX_SGIX 0x8312 -#endif - -#ifndef GL_3DFX_texture_compression_FXT1 -#define GL_COMPRESSED_RGB_FXT1_3DFX 0x86B0 -#define GL_COMPRESSED_RGBA_FXT1_3DFX 0x86B1 -#endif - -#ifndef GL_3DFX_multisample -#define GL_MULTISAMPLE_3DFX 0x86B2 -#define GL_SAMPLE_BUFFERS_3DFX 0x86B3 -#define GL_SAMPLES_3DFX 0x86B4 -#define GL_MULTISAMPLE_BIT_3DFX 0x20000000 -#endif - -#ifndef GL_3DFX_tbuffer -#endif - -#ifndef GL_EXT_multisample -#define GL_MULTISAMPLE_EXT 0x809D -#define GL_SAMPLE_ALPHA_TO_MASK_EXT 0x809E -#define GL_SAMPLE_ALPHA_TO_ONE_EXT 0x809F -#define GL_SAMPLE_MASK_EXT 0x80A0 -#define GL_1PASS_EXT 0x80A1 -#define GL_2PASS_0_EXT 0x80A2 -#define GL_2PASS_1_EXT 0x80A3 -#define GL_4PASS_0_EXT 0x80A4 -#define GL_4PASS_1_EXT 0x80A5 -#define GL_4PASS_2_EXT 0x80A6 -#define GL_4PASS_3_EXT 0x80A7 -#define GL_SAMPLE_BUFFERS_EXT 0x80A8 -#define GL_SAMPLES_EXT 0x80A9 -#define GL_SAMPLE_MASK_VALUE_EXT 0x80AA -#define GL_SAMPLE_MASK_INVERT_EXT 0x80AB -#define GL_SAMPLE_PATTERN_EXT 0x80AC -#define GL_MULTISAMPLE_BIT_EXT 0x20000000 -#endif - -#ifndef GL_SGIX_vertex_preclip -#define GL_VERTEX_PRECLIP_SGIX 0x83EE -#define GL_VERTEX_PRECLIP_HINT_SGIX 0x83EF -#endif - -#ifndef GL_SGIX_convolution_accuracy -#define GL_CONVOLUTION_HINT_SGIX 0x8316 -#endif - -#ifndef GL_SGIX_resample -#define GL_PACK_RESAMPLE_SGIX 0x842C -#define GL_UNPACK_RESAMPLE_SGIX 0x842D -#define GL_RESAMPLE_REPLICATE_SGIX 0x842E -#define GL_RESAMPLE_ZERO_FILL_SGIX 0x842F -#define GL_RESAMPLE_DECIMATE_SGIX 0x8430 -#endif - -#ifndef GL_SGIS_point_line_texgen -#define GL_EYE_DISTANCE_TO_POINT_SGIS 0x81F0 -#define GL_OBJECT_DISTANCE_TO_POINT_SGIS 0x81F1 -#define GL_EYE_DISTANCE_TO_LINE_SGIS 0x81F2 -#define GL_OBJECT_DISTANCE_TO_LINE_SGIS 0x81F3 -#define GL_EYE_POINT_SGIS 0x81F4 -#define GL_OBJECT_POINT_SGIS 0x81F5 -#define GL_EYE_LINE_SGIS 0x81F6 -#define GL_OBJECT_LINE_SGIS 0x81F7 -#endif - -#ifndef GL_SGIS_texture_color_mask -#define GL_TEXTURE_COLOR_WRITEMASK_SGIS 0x81EF -#endif - -#ifndef GL_EXT_texture_env_dot3 -#define GL_DOT3_RGB_EXT 0x8740 -#define GL_DOT3_RGBA_EXT 0x8741 -#endif - -#ifndef GL_ATI_texture_mirror_once -#define GL_MIRROR_CLAMP_ATI 0x8742 -#define GL_MIRROR_CLAMP_TO_EDGE_ATI 0x8743 -#endif - -#ifndef GL_NV_fence -#define GL_ALL_COMPLETED_NV 0x84F2 -#define GL_FENCE_STATUS_NV 0x84F3 -#define GL_FENCE_CONDITION_NV 0x84F4 -#endif - -#ifndef GL_IBM_texture_mirrored_repeat -#define GL_MIRRORED_REPEAT_IBM 0x8370 -#endif - -#ifndef GL_NV_evaluators -#define GL_EVAL_2D_NV 0x86C0 -#define GL_EVAL_TRIANGULAR_2D_NV 0x86C1 -#define GL_MAP_TESSELLATION_NV 0x86C2 -#define GL_MAP_ATTRIB_U_ORDER_NV 0x86C3 -#define GL_MAP_ATTRIB_V_ORDER_NV 0x86C4 -#define GL_EVAL_FRACTIONAL_TESSELLATION_NV 0x86C5 -#define GL_EVAL_VERTEX_ATTRIB0_NV 0x86C6 -#define GL_EVAL_VERTEX_ATTRIB1_NV 0x86C7 -#define GL_EVAL_VERTEX_ATTRIB2_NV 0x86C8 -#define GL_EVAL_VERTEX_ATTRIB3_NV 0x86C9 -#define GL_EVAL_VERTEX_ATTRIB4_NV 0x86CA -#define GL_EVAL_VERTEX_ATTRIB5_NV 0x86CB -#define GL_EVAL_VERTEX_ATTRIB6_NV 0x86CC -#define GL_EVAL_VERTEX_ATTRIB7_NV 0x86CD -#define GL_EVAL_VERTEX_ATTRIB8_NV 0x86CE -#define GL_EVAL_VERTEX_ATTRIB9_NV 0x86CF -#define GL_EVAL_VERTEX_ATTRIB10_NV 0x86D0 -#define GL_EVAL_VERTEX_ATTRIB11_NV 0x86D1 -#define GL_EVAL_VERTEX_ATTRIB12_NV 0x86D2 -#define GL_EVAL_VERTEX_ATTRIB13_NV 0x86D3 -#define GL_EVAL_VERTEX_ATTRIB14_NV 0x86D4 -#define GL_EVAL_VERTEX_ATTRIB15_NV 0x86D5 -#define GL_MAX_MAP_TESSELLATION_NV 0x86D6 -#define GL_MAX_RATIONAL_EVAL_ORDER_NV 0x86D7 -#endif - -#ifndef GL_NV_packed_depth_stencil -#define GL_DEPTH_STENCIL_NV 0x84F9 -#define GL_UNSIGNED_INT_24_8_NV 0x84FA -#endif - -#ifndef GL_NV_register_combiners2 -#define GL_PER_STAGE_CONSTANTS_NV 0x8535 -#endif - -#ifndef GL_NV_texture_compression_vtc -#endif - -#ifndef GL_NV_texture_rectangle -#define GL_TEXTURE_RECTANGLE_NV 0x84F5 -#define GL_TEXTURE_BINDING_RECTANGLE_NV 0x84F6 -#define GL_PROXY_TEXTURE_RECTANGLE_NV 0x84F7 -#define GL_MAX_RECTANGLE_TEXTURE_SIZE_NV 0x84F8 -#endif - -#ifndef GL_NV_texture_shader -#define GL_OFFSET_TEXTURE_RECTANGLE_NV 0x864C -#define GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV 0x864D -#define GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV 0x864E -#define GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV 0x86D9 -#define GL_UNSIGNED_INT_S8_S8_8_8_NV 0x86DA -#define GL_UNSIGNED_INT_8_8_S8_S8_REV_NV 0x86DB -#define GL_DSDT_MAG_INTENSITY_NV 0x86DC -#define GL_SHADER_CONSISTENT_NV 0x86DD -#define GL_TEXTURE_SHADER_NV 0x86DE -#define GL_SHADER_OPERATION_NV 0x86DF -#define GL_CULL_MODES_NV 0x86E0 -#define GL_OFFSET_TEXTURE_MATRIX_NV 0x86E1 -#define GL_OFFSET_TEXTURE_SCALE_NV 0x86E2 -#define GL_OFFSET_TEXTURE_BIAS_NV 0x86E3 -#define GL_OFFSET_TEXTURE_2D_MATRIX_NV GL_OFFSET_TEXTURE_MATRIX_NV -#define GL_OFFSET_TEXTURE_2D_SCALE_NV GL_OFFSET_TEXTURE_SCALE_NV -#define GL_OFFSET_TEXTURE_2D_BIAS_NV GL_OFFSET_TEXTURE_BIAS_NV -#define GL_PREVIOUS_TEXTURE_INPUT_NV 0x86E4 -#define GL_CONST_EYE_NV 0x86E5 -#define GL_PASS_THROUGH_NV 0x86E6 -#define GL_CULL_FRAGMENT_NV 0x86E7 -#define GL_OFFSET_TEXTURE_2D_NV 0x86E8 -#define GL_DEPENDENT_AR_TEXTURE_2D_NV 0x86E9 -#define GL_DEPENDENT_GB_TEXTURE_2D_NV 0x86EA -#define GL_DOT_PRODUCT_NV 0x86EC -#define GL_DOT_PRODUCT_DEPTH_REPLACE_NV 0x86ED -#define GL_DOT_PRODUCT_TEXTURE_2D_NV 0x86EE -#define GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV 0x86F0 -#define GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV 0x86F1 -#define GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV 0x86F2 -#define GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV 0x86F3 -#define GL_HILO_NV 0x86F4 -#define GL_DSDT_NV 0x86F5 -#define GL_DSDT_MAG_NV 0x86F6 -#define GL_DSDT_MAG_VIB_NV 0x86F7 -#define GL_HILO16_NV 0x86F8 -#define GL_SIGNED_HILO_NV 0x86F9 -#define GL_SIGNED_HILO16_NV 0x86FA -#define GL_SIGNED_RGBA_NV 0x86FB -#define GL_SIGNED_RGBA8_NV 0x86FC -#define GL_SIGNED_RGB_NV 0x86FE -#define GL_SIGNED_RGB8_NV 0x86FF -#define GL_SIGNED_LUMINANCE_NV 0x8701 -#define GL_SIGNED_LUMINANCE8_NV 0x8702 -#define GL_SIGNED_LUMINANCE_ALPHA_NV 0x8703 -#define GL_SIGNED_LUMINANCE8_ALPHA8_NV 0x8704 -#define GL_SIGNED_ALPHA_NV 0x8705 -#define GL_SIGNED_ALPHA8_NV 0x8706 -#define GL_SIGNED_INTENSITY_NV 0x8707 -#define GL_SIGNED_INTENSITY8_NV 0x8708 -#define GL_DSDT8_NV 0x8709 -#define GL_DSDT8_MAG8_NV 0x870A -#define GL_DSDT8_MAG8_INTENSITY8_NV 0x870B -#define GL_SIGNED_RGB_UNSIGNED_ALPHA_NV 0x870C -#define GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV 0x870D -#define GL_HI_SCALE_NV 0x870E -#define GL_LO_SCALE_NV 0x870F -#define GL_DS_SCALE_NV 0x8710 -#define GL_DT_SCALE_NV 0x8711 -#define GL_MAGNITUDE_SCALE_NV 0x8712 -#define GL_VIBRANCE_SCALE_NV 0x8713 -#define GL_HI_BIAS_NV 0x8714 -#define GL_LO_BIAS_NV 0x8715 -#define GL_DS_BIAS_NV 0x8716 -#define GL_DT_BIAS_NV 0x8717 -#define GL_MAGNITUDE_BIAS_NV 0x8718 -#define GL_VIBRANCE_BIAS_NV 0x8719 -#define GL_TEXTURE_BORDER_VALUES_NV 0x871A -#define GL_TEXTURE_HI_SIZE_NV 0x871B -#define GL_TEXTURE_LO_SIZE_NV 0x871C -#define GL_TEXTURE_DS_SIZE_NV 0x871D -#define GL_TEXTURE_DT_SIZE_NV 0x871E -#define GL_TEXTURE_MAG_SIZE_NV 0x871F -#endif - -#ifndef GL_NV_texture_shader2 -#define GL_DOT_PRODUCT_TEXTURE_3D_NV 0x86EF -#endif - -#ifndef GL_NV_vertex_array_range2 -#define GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV 0x8533 -#endif - -#ifndef GL_NV_vertex_program -#define GL_VERTEX_PROGRAM_NV 0x8620 -#define GL_VERTEX_STATE_PROGRAM_NV 0x8621 -#define GL_ATTRIB_ARRAY_SIZE_NV 0x8623 -#define GL_ATTRIB_ARRAY_STRIDE_NV 0x8624 -#define GL_ATTRIB_ARRAY_TYPE_NV 0x8625 -#define GL_CURRENT_ATTRIB_NV 0x8626 -#define GL_PROGRAM_LENGTH_NV 0x8627 -#define GL_PROGRAM_STRING_NV 0x8628 -#define GL_MODELVIEW_PROJECTION_NV 0x8629 -#define GL_IDENTITY_NV 0x862A -#define GL_INVERSE_NV 0x862B -#define GL_TRANSPOSE_NV 0x862C -#define GL_INVERSE_TRANSPOSE_NV 0x862D -#define GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV 0x862E -#define GL_MAX_TRACK_MATRICES_NV 0x862F -#define GL_MATRIX0_NV 0x8630 -#define GL_MATRIX1_NV 0x8631 -#define GL_MATRIX2_NV 0x8632 -#define GL_MATRIX3_NV 0x8633 -#define GL_MATRIX4_NV 0x8634 -#define GL_MATRIX5_NV 0x8635 -#define GL_MATRIX6_NV 0x8636 -#define GL_MATRIX7_NV 0x8637 -#define GL_CURRENT_MATRIX_STACK_DEPTH_NV 0x8640 -#define GL_CURRENT_MATRIX_NV 0x8641 -#define GL_VERTEX_PROGRAM_POINT_SIZE_NV 0x8642 -#define GL_VERTEX_PROGRAM_TWO_SIDE_NV 0x8643 -#define GL_PROGRAM_PARAMETER_NV 0x8644 -#define GL_ATTRIB_ARRAY_POINTER_NV 0x8645 -#define GL_PROGRAM_TARGET_NV 0x8646 -#define GL_PROGRAM_RESIDENT_NV 0x8647 -#define GL_TRACK_MATRIX_NV 0x8648 -#define GL_TRACK_MATRIX_TRANSFORM_NV 0x8649 -#define GL_VERTEX_PROGRAM_BINDING_NV 0x864A -#define GL_PROGRAM_ERROR_POSITION_NV 0x864B -#define GL_VERTEX_ATTRIB_ARRAY0_NV 0x8650 -#define GL_VERTEX_ATTRIB_ARRAY1_NV 0x8651 -#define GL_VERTEX_ATTRIB_ARRAY2_NV 0x8652 -#define GL_VERTEX_ATTRIB_ARRAY3_NV 0x8653 -#define GL_VERTEX_ATTRIB_ARRAY4_NV 0x8654 -#define GL_VERTEX_ATTRIB_ARRAY5_NV 0x8655 -#define GL_VERTEX_ATTRIB_ARRAY6_NV 0x8656 -#define GL_VERTEX_ATTRIB_ARRAY7_NV 0x8657 -#define GL_VERTEX_ATTRIB_ARRAY8_NV 0x8658 -#define GL_VERTEX_ATTRIB_ARRAY9_NV 0x8659 -#define GL_VERTEX_ATTRIB_ARRAY10_NV 0x865A -#define GL_VERTEX_ATTRIB_ARRAY11_NV 0x865B -#define GL_VERTEX_ATTRIB_ARRAY12_NV 0x865C -#define GL_VERTEX_ATTRIB_ARRAY13_NV 0x865D -#define GL_VERTEX_ATTRIB_ARRAY14_NV 0x865E -#define GL_VERTEX_ATTRIB_ARRAY15_NV 0x865F -#define GL_MAP1_VERTEX_ATTRIB0_4_NV 0x8660 -#define GL_MAP1_VERTEX_ATTRIB1_4_NV 0x8661 -#define GL_MAP1_VERTEX_ATTRIB2_4_NV 0x8662 -#define GL_MAP1_VERTEX_ATTRIB3_4_NV 0x8663 -#define GL_MAP1_VERTEX_ATTRIB4_4_NV 0x8664 -#define GL_MAP1_VERTEX_ATTRIB5_4_NV 0x8665 -#define GL_MAP1_VERTEX_ATTRIB6_4_NV 0x8666 -#define GL_MAP1_VERTEX_ATTRIB7_4_NV 0x8667 -#define GL_MAP1_VERTEX_ATTRIB8_4_NV 0x8668 -#define GL_MAP1_VERTEX_ATTRIB9_4_NV 0x8669 -#define GL_MAP1_VERTEX_ATTRIB10_4_NV 0x866A -#define GL_MAP1_VERTEX_ATTRIB11_4_NV 0x866B -#define GL_MAP1_VERTEX_ATTRIB12_4_NV 0x866C -#define GL_MAP1_VERTEX_ATTRIB13_4_NV 0x866D -#define GL_MAP1_VERTEX_ATTRIB14_4_NV 0x866E -#define GL_MAP1_VERTEX_ATTRIB15_4_NV 0x866F -#define GL_MAP2_VERTEX_ATTRIB0_4_NV 0x8670 -#define GL_MAP2_VERTEX_ATTRIB1_4_NV 0x8671 -#define GL_MAP2_VERTEX_ATTRIB2_4_NV 0x8672 -#define GL_MAP2_VERTEX_ATTRIB3_4_NV 0x8673 -#define GL_MAP2_VERTEX_ATTRIB4_4_NV 0x8674 -#define GL_MAP2_VERTEX_ATTRIB5_4_NV 0x8675 -#define GL_MAP2_VERTEX_ATTRIB6_4_NV 0x8676 -#define GL_MAP2_VERTEX_ATTRIB7_4_NV 0x8677 -#define GL_MAP2_VERTEX_ATTRIB8_4_NV 0x8678 -#define GL_MAP2_VERTEX_ATTRIB9_4_NV 0x8679 -#define GL_MAP2_VERTEX_ATTRIB10_4_NV 0x867A -#define GL_MAP2_VERTEX_ATTRIB11_4_NV 0x867B -#define GL_MAP2_VERTEX_ATTRIB12_4_NV 0x867C -#define GL_MAP2_VERTEX_ATTRIB13_4_NV 0x867D -#define GL_MAP2_VERTEX_ATTRIB14_4_NV 0x867E -#define GL_MAP2_VERTEX_ATTRIB15_4_NV 0x867F -#endif - -#ifndef GL_SGIX_texture_coordinate_clamp -#define GL_TEXTURE_MAX_CLAMP_S_SGIX 0x8369 -#define GL_TEXTURE_MAX_CLAMP_T_SGIX 0x836A -#define GL_TEXTURE_MAX_CLAMP_R_SGIX 0x836B -#endif - -#ifndef GL_SGIX_scalebias_hint -#define GL_SCALEBIAS_HINT_SGIX 0x8322 -#endif - -#ifndef GL_OML_interlace -#define GL_INTERLACE_OML 0x8980 -#define GL_INTERLACE_READ_OML 0x8981 -#endif - -#ifndef GL_OML_subsample -#define GL_FORMAT_SUBSAMPLE_24_24_OML 0x8982 -#define GL_FORMAT_SUBSAMPLE_244_244_OML 0x8983 -#endif - -#ifndef GL_OML_resample -#define GL_PACK_RESAMPLE_OML 0x8984 -#define GL_UNPACK_RESAMPLE_OML 0x8985 -#define GL_RESAMPLE_REPLICATE_OML 0x8986 -#define GL_RESAMPLE_ZERO_FILL_OML 0x8987 -#define GL_RESAMPLE_AVERAGE_OML 0x8988 -#define GL_RESAMPLE_DECIMATE_OML 0x8989 -#endif - -#ifndef GL_NV_copy_depth_to_color -#define GL_DEPTH_STENCIL_TO_RGBA_NV 0x886E -#define GL_DEPTH_STENCIL_TO_BGRA_NV 0x886F -#endif - -#ifndef GL_ATI_envmap_bumpmap -#define GL_BUMP_ROT_MATRIX_ATI 0x8775 -#define GL_BUMP_ROT_MATRIX_SIZE_ATI 0x8776 -#define GL_BUMP_NUM_TEX_UNITS_ATI 0x8777 -#define GL_BUMP_TEX_UNITS_ATI 0x8778 -#define GL_DUDV_ATI 0x8779 -#define GL_DU8DV8_ATI 0x877A -#define GL_BUMP_ENVMAP_ATI 0x877B -#define GL_BUMP_TARGET_ATI 0x877C -#endif - -#ifndef GL_ATI_fragment_shader -#define GL_FRAGMENT_SHADER_ATI 0x8920 -#define GL_REG_0_ATI 0x8921 -#define GL_REG_1_ATI 0x8922 -#define GL_REG_2_ATI 0x8923 -#define GL_REG_3_ATI 0x8924 -#define GL_REG_4_ATI 0x8925 -#define GL_REG_5_ATI 0x8926 -#define GL_REG_6_ATI 0x8927 -#define GL_REG_7_ATI 0x8928 -#define GL_REG_8_ATI 0x8929 -#define GL_REG_9_ATI 0x892A -#define GL_REG_10_ATI 0x892B -#define GL_REG_11_ATI 0x892C -#define GL_REG_12_ATI 0x892D -#define GL_REG_13_ATI 0x892E -#define GL_REG_14_ATI 0x892F -#define GL_REG_15_ATI 0x8930 -#define GL_REG_16_ATI 0x8931 -#define GL_REG_17_ATI 0x8932 -#define GL_REG_18_ATI 0x8933 -#define GL_REG_19_ATI 0x8934 -#define GL_REG_20_ATI 0x8935 -#define GL_REG_21_ATI 0x8936 -#define GL_REG_22_ATI 0x8937 -#define GL_REG_23_ATI 0x8938 -#define GL_REG_24_ATI 0x8939 -#define GL_REG_25_ATI 0x893A -#define GL_REG_26_ATI 0x893B -#define GL_REG_27_ATI 0x893C -#define GL_REG_28_ATI 0x893D -#define GL_REG_29_ATI 0x893E -#define GL_REG_30_ATI 0x893F -#define GL_REG_31_ATI 0x8940 -#define GL_CON_0_ATI 0x8941 -#define GL_CON_1_ATI 0x8942 -#define GL_CON_2_ATI 0x8943 -#define GL_CON_3_ATI 0x8944 -#define GL_CON_4_ATI 0x8945 -#define GL_CON_5_ATI 0x8946 -#define GL_CON_6_ATI 0x8947 -#define GL_CON_7_ATI 0x8948 -#define GL_CON_8_ATI 0x8949 -#define GL_CON_9_ATI 0x894A -#define GL_CON_10_ATI 0x894B -#define GL_CON_11_ATI 0x894C -#define GL_CON_12_ATI 0x894D -#define GL_CON_13_ATI 0x894E -#define GL_CON_14_ATI 0x894F -#define GL_CON_15_ATI 0x8950 -#define GL_CON_16_ATI 0x8951 -#define GL_CON_17_ATI 0x8952 -#define GL_CON_18_ATI 0x8953 -#define GL_CON_19_ATI 0x8954 -#define GL_CON_20_ATI 0x8955 -#define GL_CON_21_ATI 0x8956 -#define GL_CON_22_ATI 0x8957 -#define GL_CON_23_ATI 0x8958 -#define GL_CON_24_ATI 0x8959 -#define GL_CON_25_ATI 0x895A -#define GL_CON_26_ATI 0x895B -#define GL_CON_27_ATI 0x895C -#define GL_CON_28_ATI 0x895D -#define GL_CON_29_ATI 0x895E -#define GL_CON_30_ATI 0x895F -#define GL_CON_31_ATI 0x8960 -#define GL_MOV_ATI 0x8961 -#define GL_ADD_ATI 0x8963 -#define GL_MUL_ATI 0x8964 -#define GL_SUB_ATI 0x8965 -#define GL_DOT3_ATI 0x8966 -#define GL_DOT4_ATI 0x8967 -#define GL_MAD_ATI 0x8968 -#define GL_LERP_ATI 0x8969 -#define GL_CND_ATI 0x896A -#define GL_CND0_ATI 0x896B -#define GL_DOT2_ADD_ATI 0x896C -#define GL_SECONDARY_INTERPOLATOR_ATI 0x896D -#define GL_NUM_FRAGMENT_REGISTERS_ATI 0x896E -#define GL_NUM_FRAGMENT_CONSTANTS_ATI 0x896F -#define GL_NUM_PASSES_ATI 0x8970 -#define GL_NUM_INSTRUCTIONS_PER_PASS_ATI 0x8971 -#define GL_NUM_INSTRUCTIONS_TOTAL_ATI 0x8972 -#define GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI 0x8973 -#define GL_NUM_LOOPBACK_COMPONENTS_ATI 0x8974 -#define GL_COLOR_ALPHA_PAIRING_ATI 0x8975 -#define GL_SWIZZLE_STR_ATI 0x8976 -#define GL_SWIZZLE_STQ_ATI 0x8977 -#define GL_SWIZZLE_STR_DR_ATI 0x8978 -#define GL_SWIZZLE_STQ_DQ_ATI 0x8979 -#define GL_SWIZZLE_STRQ_ATI 0x897A -#define GL_SWIZZLE_STRQ_DQ_ATI 0x897B -#define GL_RED_BIT_ATI 0x00000001 -#define GL_GREEN_BIT_ATI 0x00000002 -#define GL_BLUE_BIT_ATI 0x00000004 -#define GL_2X_BIT_ATI 0x00000001 -#define GL_4X_BIT_ATI 0x00000002 -#define GL_8X_BIT_ATI 0x00000004 -#define GL_HALF_BIT_ATI 0x00000008 -#define GL_QUARTER_BIT_ATI 0x00000010 -#define GL_EIGHTH_BIT_ATI 0x00000020 -#define GL_SATURATE_BIT_ATI 0x00000040 -#define GL_COMP_BIT_ATI 0x00000002 -#define GL_NEGATE_BIT_ATI 0x00000004 -#define GL_BIAS_BIT_ATI 0x00000008 -#endif - -#ifndef GL_ATI_pn_triangles -#define GL_PN_TRIANGLES_ATI 0x87F0 -#define GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F1 -#define GL_PN_TRIANGLES_POINT_MODE_ATI 0x87F2 -#define GL_PN_TRIANGLES_NORMAL_MODE_ATI 0x87F3 -#define GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F4 -#define GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI 0x87F5 -#define GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI 0x87F6 -#define GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI 0x87F7 -#define GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI 0x87F8 -#endif - -#ifndef GL_ATI_vertex_array_object -#define GL_STATIC_ATI 0x8760 -#define GL_DYNAMIC_ATI 0x8761 -#define GL_PRESERVE_ATI 0x8762 -#define GL_DISCARD_ATI 0x8763 -#define GL_OBJECT_BUFFER_SIZE_ATI 0x8764 -#define GL_OBJECT_BUFFER_USAGE_ATI 0x8765 -#define GL_ARRAY_OBJECT_BUFFER_ATI 0x8766 -#define GL_ARRAY_OBJECT_OFFSET_ATI 0x8767 -#endif - -#ifndef GL_EXT_vertex_shader -#define GL_VERTEX_SHADER_EXT 0x8780 -#define GL_VERTEX_SHADER_BINDING_EXT 0x8781 -#define GL_OP_INDEX_EXT 0x8782 -#define GL_OP_NEGATE_EXT 0x8783 -#define GL_OP_DOT3_EXT 0x8784 -#define GL_OP_DOT4_EXT 0x8785 -#define GL_OP_MUL_EXT 0x8786 -#define GL_OP_ADD_EXT 0x8787 -#define GL_OP_MADD_EXT 0x8788 -#define GL_OP_FRAC_EXT 0x8789 -#define GL_OP_MAX_EXT 0x878A -#define GL_OP_MIN_EXT 0x878B -#define GL_OP_SET_GE_EXT 0x878C -#define GL_OP_SET_LT_EXT 0x878D -#define GL_OP_CLAMP_EXT 0x878E -#define GL_OP_FLOOR_EXT 0x878F -#define GL_OP_ROUND_EXT 0x8790 -#define GL_OP_EXP_BASE_2_EXT 0x8791 -#define GL_OP_LOG_BASE_2_EXT 0x8792 -#define GL_OP_POWER_EXT 0x8793 -#define GL_OP_RECIP_EXT 0x8794 -#define GL_OP_RECIP_SQRT_EXT 0x8795 -#define GL_OP_SUB_EXT 0x8796 -#define GL_OP_CROSS_PRODUCT_EXT 0x8797 -#define GL_OP_MULTIPLY_MATRIX_EXT 0x8798 -#define GL_OP_MOV_EXT 0x8799 -#define GL_OUTPUT_VERTEX_EXT 0x879A -#define GL_OUTPUT_COLOR0_EXT 0x879B -#define GL_OUTPUT_COLOR1_EXT 0x879C -#define GL_OUTPUT_TEXTURE_COORD0_EXT 0x879D -#define GL_OUTPUT_TEXTURE_COORD1_EXT 0x879E -#define GL_OUTPUT_TEXTURE_COORD2_EXT 0x879F -#define GL_OUTPUT_TEXTURE_COORD3_EXT 0x87A0 -#define GL_OUTPUT_TEXTURE_COORD4_EXT 0x87A1 -#define GL_OUTPUT_TEXTURE_COORD5_EXT 0x87A2 -#define GL_OUTPUT_TEXTURE_COORD6_EXT 0x87A3 -#define GL_OUTPUT_TEXTURE_COORD7_EXT 0x87A4 -#define GL_OUTPUT_TEXTURE_COORD8_EXT 0x87A5 -#define GL_OUTPUT_TEXTURE_COORD9_EXT 0x87A6 -#define GL_OUTPUT_TEXTURE_COORD10_EXT 0x87A7 -#define GL_OUTPUT_TEXTURE_COORD11_EXT 0x87A8 -#define GL_OUTPUT_TEXTURE_COORD12_EXT 0x87A9 -#define GL_OUTPUT_TEXTURE_COORD13_EXT 0x87AA -#define GL_OUTPUT_TEXTURE_COORD14_EXT 0x87AB -#define GL_OUTPUT_TEXTURE_COORD15_EXT 0x87AC -#define GL_OUTPUT_TEXTURE_COORD16_EXT 0x87AD -#define GL_OUTPUT_TEXTURE_COORD17_EXT 0x87AE -#define GL_OUTPUT_TEXTURE_COORD18_EXT 0x87AF -#define GL_OUTPUT_TEXTURE_COORD19_EXT 0x87B0 -#define GL_OUTPUT_TEXTURE_COORD20_EXT 0x87B1 -#define GL_OUTPUT_TEXTURE_COORD21_EXT 0x87B2 -#define GL_OUTPUT_TEXTURE_COORD22_EXT 0x87B3 -#define GL_OUTPUT_TEXTURE_COORD23_EXT 0x87B4 -#define GL_OUTPUT_TEXTURE_COORD24_EXT 0x87B5 -#define GL_OUTPUT_TEXTURE_COORD25_EXT 0x87B6 -#define GL_OUTPUT_TEXTURE_COORD26_EXT 0x87B7 -#define GL_OUTPUT_TEXTURE_COORD27_EXT 0x87B8 -#define GL_OUTPUT_TEXTURE_COORD28_EXT 0x87B9 -#define GL_OUTPUT_TEXTURE_COORD29_EXT 0x87BA -#define GL_OUTPUT_TEXTURE_COORD30_EXT 0x87BB -#define GL_OUTPUT_TEXTURE_COORD31_EXT 0x87BC -#define GL_OUTPUT_FOG_EXT 0x87BD -#define GL_SCALAR_EXT 0x87BE -#define GL_VECTOR_EXT 0x87BF -#define GL_MATRIX_EXT 0x87C0 -#define GL_VARIANT_EXT 0x87C1 -#define GL_INVARIANT_EXT 0x87C2 -#define GL_LOCAL_CONSTANT_EXT 0x87C3 -#define GL_LOCAL_EXT 0x87C4 -#define GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87C5 -#define GL_MAX_VERTEX_SHADER_VARIANTS_EXT 0x87C6 -#define GL_MAX_VERTEX_SHADER_INVARIANTS_EXT 0x87C7 -#define GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87C8 -#define GL_MAX_VERTEX_SHADER_LOCALS_EXT 0x87C9 -#define GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87CA -#define GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT 0x87CB -#define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87CC -#define GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT 0x87CD -#define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT 0x87CE -#define GL_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87CF -#define GL_VERTEX_SHADER_VARIANTS_EXT 0x87D0 -#define GL_VERTEX_SHADER_INVARIANTS_EXT 0x87D1 -#define GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87D2 -#define GL_VERTEX_SHADER_LOCALS_EXT 0x87D3 -#define GL_VERTEX_SHADER_OPTIMIZED_EXT 0x87D4 -#define GL_X_EXT 0x87D5 -#define GL_Y_EXT 0x87D6 -#define GL_Z_EXT 0x87D7 -#define GL_W_EXT 0x87D8 -#define GL_NEGATIVE_X_EXT 0x87D9 -#define GL_NEGATIVE_Y_EXT 0x87DA -#define GL_NEGATIVE_Z_EXT 0x87DB -#define GL_NEGATIVE_W_EXT 0x87DC -#define GL_ZERO_EXT 0x87DD -#define GL_ONE_EXT 0x87DE -#define GL_NEGATIVE_ONE_EXT 0x87DF -#define GL_NORMALIZED_RANGE_EXT 0x87E0 -#define GL_FULL_RANGE_EXT 0x87E1 -#define GL_CURRENT_VERTEX_EXT 0x87E2 -#define GL_MVP_MATRIX_EXT 0x87E3 -#define GL_VARIANT_VALUE_EXT 0x87E4 -#define GL_VARIANT_DATATYPE_EXT 0x87E5 -#define GL_VARIANT_ARRAY_STRIDE_EXT 0x87E6 -#define GL_VARIANT_ARRAY_TYPE_EXT 0x87E7 -#define GL_VARIANT_ARRAY_EXT 0x87E8 -#define GL_VARIANT_ARRAY_POINTER_EXT 0x87E9 -#define GL_INVARIANT_VALUE_EXT 0x87EA -#define GL_INVARIANT_DATATYPE_EXT 0x87EB -#define GL_LOCAL_CONSTANT_VALUE_EXT 0x87EC -#define GL_LOCAL_CONSTANT_DATATYPE_EXT 0x87ED -#endif - -#ifndef GL_ATI_vertex_streams -#define GL_MAX_VERTEX_STREAMS_ATI 0x876B -#define GL_VERTEX_STREAM0_ATI 0x876C -#define GL_VERTEX_STREAM1_ATI 0x876D -#define GL_VERTEX_STREAM2_ATI 0x876E -#define GL_VERTEX_STREAM3_ATI 0x876F -#define GL_VERTEX_STREAM4_ATI 0x8770 -#define GL_VERTEX_STREAM5_ATI 0x8771 -#define GL_VERTEX_STREAM6_ATI 0x8772 -#define GL_VERTEX_STREAM7_ATI 0x8773 -#define GL_VERTEX_SOURCE_ATI 0x8774 -#endif - -#ifndef GL_ATI_element_array -#define GL_ELEMENT_ARRAY_ATI 0x8768 -#define GL_ELEMENT_ARRAY_TYPE_ATI 0x8769 -#define GL_ELEMENT_ARRAY_POINTER_ATI 0x876A -#endif - -#ifndef GL_SUN_mesh_array -#define GL_QUAD_MESH_SUN 0x8614 -#define GL_TRIANGLE_MESH_SUN 0x8615 -#endif - -#ifndef GL_SUN_slice_accum -#define GL_SLICE_ACCUM_SUN 0x85CC -#endif - -#ifndef GL_NV_multisample_filter_hint -#define GL_MULTISAMPLE_FILTER_HINT_NV 0x8534 -#endif - -#ifndef GL_NV_depth_clamp -#define GL_DEPTH_CLAMP_NV 0x864F -#endif - -#ifndef GL_NV_occlusion_query -#define GL_PIXEL_COUNTER_BITS_NV 0x8864 -#define GL_CURRENT_OCCLUSION_QUERY_ID_NV 0x8865 -#define GL_PIXEL_COUNT_NV 0x8866 -#define GL_PIXEL_COUNT_AVAILABLE_NV 0x8867 -#endif - -#ifndef GL_NV_point_sprite -#define GL_POINT_SPRITE_NV 0x8861 -#define GL_COORD_REPLACE_NV 0x8862 -#define GL_POINT_SPRITE_R_MODE_NV 0x8863 -#endif - -#ifndef GL_NV_texture_shader3 -#define GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV 0x8850 -#define GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV 0x8851 -#define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8852 -#define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV 0x8853 -#define GL_OFFSET_HILO_TEXTURE_2D_NV 0x8854 -#define GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV 0x8855 -#define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV 0x8856 -#define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8857 -#define GL_DEPENDENT_HILO_TEXTURE_2D_NV 0x8858 -#define GL_DEPENDENT_RGB_TEXTURE_3D_NV 0x8859 -#define GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV 0x885A -#define GL_DOT_PRODUCT_PASS_THROUGH_NV 0x885B -#define GL_DOT_PRODUCT_TEXTURE_1D_NV 0x885C -#define GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV 0x885D -#define GL_HILO8_NV 0x885E -#define GL_SIGNED_HILO8_NV 0x885F -#define GL_FORCE_BLUE_TO_ONE_NV 0x8860 -#endif - -#ifndef GL_NV_vertex_program1_1 -#endif - -#ifndef GL_EXT_shadow_funcs -#endif - -#ifndef GL_EXT_stencil_two_side -#define GL_STENCIL_TEST_TWO_SIDE_EXT 0x8910 -#define GL_ACTIVE_STENCIL_FACE_EXT 0x8911 -#endif - -#ifndef GL_ATI_text_fragment_shader -#define GL_TEXT_FRAGMENT_SHADER_ATI 0x8200 -#endif - -#ifndef GL_APPLE_client_storage -#define GL_UNPACK_CLIENT_STORAGE_APPLE 0x85B2 -#endif - -#ifndef GL_APPLE_element_array -#define GL_ELEMENT_ARRAY_APPLE 0x8768 -#define GL_ELEMENT_ARRAY_TYPE_APPLE 0x8769 -#define GL_ELEMENT_ARRAY_POINTER_APPLE 0x876A -#endif - -#ifndef GL_APPLE_fence -#define GL_DRAW_PIXELS_APPLE 0x8A0A -#define GL_FENCE_APPLE 0x8A0B -#endif - -#ifndef GL_APPLE_vertex_array_object -#define GL_VERTEX_ARRAY_BINDING_APPLE 0x85B5 -#endif - -#ifndef GL_APPLE_vertex_array_range -#define GL_VERTEX_ARRAY_RANGE_APPLE 0x851D -#define GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE 0x851E -#define GL_VERTEX_ARRAY_STORAGE_HINT_APPLE 0x851F -#define GL_VERTEX_ARRAY_RANGE_POINTER_APPLE 0x8521 -#define GL_STORAGE_CACHED_APPLE 0x85BE -#define GL_STORAGE_SHARED_APPLE 0x85BF -#endif - -#ifndef GL_APPLE_ycbcr_422 -#define GL_YCBCR_422_APPLE 0x85B9 -#define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA -#define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB -#endif - -#ifndef GL_S3_s3tc -#define GL_RGB_S3TC 0x83A0 -#define GL_RGB4_S3TC 0x83A1 -#define GL_RGBA_S3TC 0x83A2 -#define GL_RGBA4_S3TC 0x83A3 -#endif - -#ifndef GL_ATI_draw_buffers -#define GL_MAX_DRAW_BUFFERS_ATI 0x8824 -#define GL_DRAW_BUFFER0_ATI 0x8825 -#define GL_DRAW_BUFFER1_ATI 0x8826 -#define GL_DRAW_BUFFER2_ATI 0x8827 -#define GL_DRAW_BUFFER3_ATI 0x8828 -#define GL_DRAW_BUFFER4_ATI 0x8829 -#define GL_DRAW_BUFFER5_ATI 0x882A -#define GL_DRAW_BUFFER6_ATI 0x882B -#define GL_DRAW_BUFFER7_ATI 0x882C -#define GL_DRAW_BUFFER8_ATI 0x882D -#define GL_DRAW_BUFFER9_ATI 0x882E -#define GL_DRAW_BUFFER10_ATI 0x882F -#define GL_DRAW_BUFFER11_ATI 0x8830 -#define GL_DRAW_BUFFER12_ATI 0x8831 -#define GL_DRAW_BUFFER13_ATI 0x8832 -#define GL_DRAW_BUFFER14_ATI 0x8833 -#define GL_DRAW_BUFFER15_ATI 0x8834 -#endif - -#ifndef GL_ATI_pixel_format_float -#define GL_TYPE_RGBA_FLOAT_ATI 0x8820 -#define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835 -#endif - -#ifndef GL_ATI_texture_env_combine3 -#define GL_MODULATE_ADD_ATI 0x8744 -#define GL_MODULATE_SIGNED_ADD_ATI 0x8745 -#define GL_MODULATE_SUBTRACT_ATI 0x8746 -#endif - -#ifndef GL_ATI_texture_float -#define GL_RGBA_FLOAT32_ATI 0x8814 -#define GL_RGB_FLOAT32_ATI 0x8815 -#define GL_ALPHA_FLOAT32_ATI 0x8816 -#define GL_INTENSITY_FLOAT32_ATI 0x8817 -#define GL_LUMINANCE_FLOAT32_ATI 0x8818 -#define GL_LUMINANCE_ALPHA_FLOAT32_ATI 0x8819 -#define GL_RGBA_FLOAT16_ATI 0x881A -#define GL_RGB_FLOAT16_ATI 0x881B -#define GL_ALPHA_FLOAT16_ATI 0x881C -#define GL_INTENSITY_FLOAT16_ATI 0x881D -#define GL_LUMINANCE_FLOAT16_ATI 0x881E -#define GL_LUMINANCE_ALPHA_FLOAT16_ATI 0x881F -#endif - -#ifndef GL_NV_float_buffer -#define GL_FLOAT_R_NV 0x8880 -#define GL_FLOAT_RG_NV 0x8881 -#define GL_FLOAT_RGB_NV 0x8882 -#define GL_FLOAT_RGBA_NV 0x8883 -#define GL_FLOAT_R16_NV 0x8884 -#define GL_FLOAT_R32_NV 0x8885 -#define GL_FLOAT_RG16_NV 0x8886 -#define GL_FLOAT_RG32_NV 0x8887 -#define GL_FLOAT_RGB16_NV 0x8888 -#define GL_FLOAT_RGB32_NV 0x8889 -#define GL_FLOAT_RGBA16_NV 0x888A -#define GL_FLOAT_RGBA32_NV 0x888B -#define GL_TEXTURE_FLOAT_COMPONENTS_NV 0x888C -#define GL_FLOAT_CLEAR_COLOR_VALUE_NV 0x888D -#define GL_FLOAT_RGBA_MODE_NV 0x888E -#endif - -#ifndef GL_NV_fragment_program -#define GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV 0x8868 -#define GL_FRAGMENT_PROGRAM_NV 0x8870 -#define GL_MAX_TEXTURE_COORDS_NV 0x8871 -#define GL_MAX_TEXTURE_IMAGE_UNITS_NV 0x8872 -#define GL_FRAGMENT_PROGRAM_BINDING_NV 0x8873 -#define GL_PROGRAM_ERROR_STRING_NV 0x8874 -#endif - -#ifndef GL_NV_half_float -#define GL_HALF_FLOAT_NV 0x140B -#endif - -#ifndef GL_NV_pixel_data_range -#define GL_WRITE_PIXEL_DATA_RANGE_NV 0x8878 -#define GL_READ_PIXEL_DATA_RANGE_NV 0x8879 -#define GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV 0x887A -#define GL_READ_PIXEL_DATA_RANGE_LENGTH_NV 0x887B -#define GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV 0x887C -#define GL_READ_PIXEL_DATA_RANGE_POINTER_NV 0x887D -#endif - -#ifndef GL_NV_primitive_restart -#define GL_PRIMITIVE_RESTART_NV 0x8558 -#define GL_PRIMITIVE_RESTART_INDEX_NV 0x8559 -#endif - -#ifndef GL_NV_texture_expand_normal -#define GL_TEXTURE_UNSIGNED_REMAP_MODE_NV 0x888F -#endif - -#ifndef GL_NV_vertex_program2 -#endif - -#ifndef GL_ATI_map_object_buffer -#endif - -#ifndef GL_ATI_separate_stencil -#define GL_STENCIL_BACK_FUNC_ATI 0x8800 -#define GL_STENCIL_BACK_FAIL_ATI 0x8801 -#define GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI 0x8802 -#define GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI 0x8803 -#endif - -#ifndef GL_ATI_vertex_attrib_array_object -#endif - -#ifndef GL_OES_read_format -#define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A -#define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B -#endif - -#ifndef GL_EXT_depth_bounds_test -#define GL_DEPTH_BOUNDS_TEST_EXT 0x8890 -#define GL_DEPTH_BOUNDS_EXT 0x8891 -#endif - -#ifndef GL_EXT_texture_mirror_clamp -#define GL_MIRROR_CLAMP_EXT 0x8742 -#define GL_MIRROR_CLAMP_TO_EDGE_EXT 0x8743 -#define GL_MIRROR_CLAMP_TO_BORDER_EXT 0x8912 -#endif - -#ifndef GL_EXT_blend_equation_separate -#define GL_BLEND_EQUATION_RGB_EXT GL_BLEND_EQUATION -#define GL_BLEND_EQUATION_ALPHA_EXT 0x883D -#endif - -#ifndef GL_MESA_pack_invert -#define GL_PACK_INVERT_MESA 0x8758 -#endif - -#ifndef GL_MESA_ycbcr_texture -#define GL_UNSIGNED_SHORT_8_8_MESA 0x85BA -#define GL_UNSIGNED_SHORT_8_8_REV_MESA 0x85BB -#define GL_YCBCR_MESA 0x8757 -#endif - -#ifndef GL_EXT_pixel_buffer_object -#define GL_PIXEL_PACK_BUFFER_EXT 0x88EB -#define GL_PIXEL_UNPACK_BUFFER_EXT 0x88EC -#define GL_PIXEL_PACK_BUFFER_BINDING_EXT 0x88ED -#define GL_PIXEL_UNPACK_BUFFER_BINDING_EXT 0x88EF -#endif - -#ifndef GL_NV_fragment_program_option -#endif - -#ifndef GL_NV_fragment_program2 -#define GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV 0x88F4 -#define GL_MAX_PROGRAM_CALL_DEPTH_NV 0x88F5 -#define GL_MAX_PROGRAM_IF_DEPTH_NV 0x88F6 -#define GL_MAX_PROGRAM_LOOP_DEPTH_NV 0x88F7 -#define GL_MAX_PROGRAM_LOOP_COUNT_NV 0x88F8 -#endif - -#ifndef GL_NV_vertex_program2_option -/* reuse GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV */ -/* reuse GL_MAX_PROGRAM_CALL_DEPTH_NV */ -#endif - -#ifndef GL_NV_vertex_program3 -/* reuse GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB */ -#endif - -#ifndef GL_EXT_framebuffer_object -#define GL_INVALID_FRAMEBUFFER_OPERATION_EXT 0x0506 -#define GL_MAX_RENDERBUFFER_SIZE_EXT 0x84E8 -#define GL_FRAMEBUFFER_BINDING_EXT 0x8CA6 -#define GL_RENDERBUFFER_BINDING_EXT 0x8CA7 -#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT 0x8CD0 -#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT 0x8CD1 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT 0x8CD2 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT 0x8CD3 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT 0x8CD4 -#define GL_FRAMEBUFFER_COMPLETE_EXT 0x8CD5 -#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT 0x8CD6 -#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT 0x8CD7 -#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT 0x8CD9 -#define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT 0x8CDA -#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT 0x8CDB -#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT 0x8CDC -#define GL_FRAMEBUFFER_UNSUPPORTED_EXT 0x8CDD -#define GL_MAX_COLOR_ATTACHMENTS_EXT 0x8CDF -#define GL_COLOR_ATTACHMENT0_EXT 0x8CE0 -#define GL_COLOR_ATTACHMENT1_EXT 0x8CE1 -#define GL_COLOR_ATTACHMENT2_EXT 0x8CE2 -#define GL_COLOR_ATTACHMENT3_EXT 0x8CE3 -#define GL_COLOR_ATTACHMENT4_EXT 0x8CE4 -#define GL_COLOR_ATTACHMENT5_EXT 0x8CE5 -#define GL_COLOR_ATTACHMENT6_EXT 0x8CE6 -#define GL_COLOR_ATTACHMENT7_EXT 0x8CE7 -#define GL_COLOR_ATTACHMENT8_EXT 0x8CE8 -#define GL_COLOR_ATTACHMENT9_EXT 0x8CE9 -#define GL_COLOR_ATTACHMENT10_EXT 0x8CEA -#define GL_COLOR_ATTACHMENT11_EXT 0x8CEB -#define GL_COLOR_ATTACHMENT12_EXT 0x8CEC -#define GL_COLOR_ATTACHMENT13_EXT 0x8CED -#define GL_COLOR_ATTACHMENT14_EXT 0x8CEE -#define GL_COLOR_ATTACHMENT15_EXT 0x8CEF -#define GL_DEPTH_ATTACHMENT_EXT 0x8D00 -#define GL_STENCIL_ATTACHMENT_EXT 0x8D20 -#define GL_FRAMEBUFFER_EXT 0x8D40 -#define GL_RENDERBUFFER_EXT 0x8D41 -#define GL_RENDERBUFFER_WIDTH_EXT 0x8D42 -#define GL_RENDERBUFFER_HEIGHT_EXT 0x8D43 -#define GL_RENDERBUFFER_INTERNAL_FORMAT_EXT 0x8D44 -#define GL_STENCIL_INDEX1_EXT 0x8D46 -#define GL_STENCIL_INDEX4_EXT 0x8D47 -#define GL_STENCIL_INDEX8_EXT 0x8D48 -#define GL_STENCIL_INDEX16_EXT 0x8D49 -#define GL_RENDERBUFFER_RED_SIZE_EXT 0x8D50 -#define GL_RENDERBUFFER_GREEN_SIZE_EXT 0x8D51 -#define GL_RENDERBUFFER_BLUE_SIZE_EXT 0x8D52 -#define GL_RENDERBUFFER_ALPHA_SIZE_EXT 0x8D53 -#define GL_RENDERBUFFER_DEPTH_SIZE_EXT 0x8D54 -#define GL_RENDERBUFFER_STENCIL_SIZE_EXT 0x8D55 -#endif - -#ifndef GL_GREMEDY_string_marker -#endif - -#ifndef GL_EXT_packed_depth_stencil -#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 -#endif - -#ifndef GL_EXT_stencil_clear_tag -#define GL_STENCIL_TAG_BITS_EXT 0x88F2 -#define GL_STENCIL_CLEAR_TAG_VALUE_EXT 0x88F3 -#endif - -#ifndef GL_EXT_texture_sRGB -#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 -#endif - -#ifndef GL_EXT_framebuffer_blit -#define GL_READ_FRAMEBUFFER_EXT 0x8CA8 -#define GL_DRAW_FRAMEBUFFER_EXT 0x8CA9 -#define GL_DRAW_FRAMEBUFFER_BINDING_EXT GL_FRAMEBUFFER_BINDING_EXT -#define GL_READ_FRAMEBUFFER_BINDING_EXT 0x8CAA -#endif - -#ifndef GL_EXT_framebuffer_multisample -#define GL_RENDERBUFFER_SAMPLES_EXT 0x8CAB -#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 0x8D56 -#define GL_MAX_SAMPLES_EXT 0x8D57 -#endif - -#ifndef GL_MESAX_texture_stack -#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 -#endif - -#ifndef GL_EXT_timer_query -#define GL_TIME_ELAPSED_EXT 0x88BF -#endif - -#ifndef GL_EXT_gpu_program_parameters -#endif - -#ifndef GL_APPLE_flush_buffer_range -#define GL_BUFFER_SERIALIZED_MODIFY_APPLE 0x8A12 -#define GL_BUFFER_FLUSHING_UNMAP_APPLE 0x8A13 -#endif - -#ifndef GL_NV_gpu_program4 -#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 -#endif - -#ifndef GL_NV_geometry_program4 -#define GL_LINES_ADJACENCY_EXT 0x000A -#define GL_LINE_STRIP_ADJACENCY_EXT 0x000B -#define GL_TRIANGLES_ADJACENCY_EXT 0x000C -#define GL_TRIANGLE_STRIP_ADJACENCY_EXT 0x000D -#define GL_GEOMETRY_PROGRAM_NV 0x8C26 -#define GL_MAX_PROGRAM_OUTPUT_VERTICES_NV 0x8C27 -#define GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV 0x8C28 -#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_TEXTURE_IMAGE_UNITS_EXT 0x8C29 -#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_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT 0x8CD4 -#define GL_PROGRAM_POINT_SIZE_EXT 0x8642 -#endif - -#ifndef GL_EXT_geometry_shader4 -#define GL_GEOMETRY_SHADER_EXT 0x8DD9 -/* reuse GL_GEOMETRY_VERTICES_OUT_EXT */ -/* reuse GL_GEOMETRY_INPUT_TYPE_EXT */ -/* reuse GL_GEOMETRY_OUTPUT_TYPE_EXT */ -/* reuse GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT */ -#define GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT 0x8DDD -#define GL_MAX_VERTEX_VARYING_COMPONENTS_EXT 0x8DDE -#define GL_MAX_VARYING_COMPONENTS_EXT 0x8B4B -#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 -/* reuse GL_LINES_ADJACENCY_EXT */ -/* reuse GL_LINE_STRIP_ADJACENCY_EXT */ -/* reuse GL_TRIANGLES_ADJACENCY_EXT */ -/* reuse GL_TRIANGLE_STRIP_ADJACENCY_EXT */ -/* reuse GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT */ -/* reuse GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT */ -/* reuse GL_PROGRAM_POINT_SIZE_EXT */ -#endif - -#ifndef GL_NV_vertex_program4 -#define GL_VERTEX_ATTRIB_ARRAY_INTEGER_NV 0x88FD -#endif - -#ifndef GL_EXT_gpu_shader4 -#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 -#endif - -#ifndef GL_EXT_draw_instanced -#endif - -#ifndef GL_EXT_packed_float -#define GL_R11F_G11F_B10F_EXT 0x8C3A -#define GL_UNSIGNED_INT_10F_11F_11F_REV_EXT 0x8C3B -#define GL_RGBA_SIGNED_COMPONENTS_EXT 0x8C3C -#endif - -#ifndef GL_EXT_texture_array -#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 -#define GL_MAX_ARRAY_TEXTURE_LAYERS_EXT 0x88FF -#define GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT 0x884E -/* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT */ -#endif - -#ifndef GL_EXT_texture_buffer_object -#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 -#endif - -#ifndef GL_EXT_texture_compression_latc -#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 -#endif - -#ifndef GL_EXT_texture_compression_rgtc -#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 -#endif - -#ifndef GL_EXT_texture_shared_exponent -#define GL_RGB9_E5_EXT 0x8C3D -#define GL_UNSIGNED_INT_5_9_9_9_REV_EXT 0x8C3E -#define GL_TEXTURE_SHARED_SIZE_EXT 0x8C3F -#endif - -#ifndef GL_NV_depth_buffer_float -#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 -#endif - -#ifndef GL_NV_fragment_program4 -#endif - -#ifndef GL_NV_framebuffer_multisample_coverage -#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 -#endif - -#ifndef GL_EXT_framebuffer_sRGB -#define GL_FRAMEBUFFER_SRGB_EXT 0x8DB9 -#define GL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x8DBA -#endif - -#ifndef GL_NV_geometry_shader4 -#endif - -#ifndef GL_NV_parameter_buffer_object -#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 -#endif - -#ifndef GL_EXT_draw_buffers2 -#endif - -#ifndef GL_NV_transform_feedback -#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_ATTRIBS_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 -#endif - -#ifndef GL_EXT_bindable_uniform -#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 -#endif - -#ifndef GL_EXT_texture_integer -#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 -#endif - -#ifndef GL_GREMEDY_frame_terminator -#endif - -#ifndef GL_NV_conditional_render -#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 -#endif - -#ifndef GL_NV_present_video -#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 -#endif - -#ifndef GL_EXT_transform_feedback -#define GL_TRANSFORM_FEEDBACK_BUFFER_EXT 0x8C8E -#define GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT 0x8C84 -#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT 0x8C85 -#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT 0x8C8F -#define GL_INTERLEAVED_ATTRIBS_EXT 0x8C8C -#define GL_SEPARATE_ATTRIBS_EXT 0x8C8D -#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_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT 0x8C80 -#define GL_TRANSFORM_FEEDBACK_VARYINGS_EXT 0x8C83 -#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT 0x8C7F -#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT 0x8C76 -#endif - -#ifndef GL_EXT_direct_state_access -#define GL_PROGRAM_MATRIX_EXT 0x8E2D -#define GL_TRANSPOSE_PROGRAM_MATRIX_EXT 0x8E2E -#define GL_PROGRAM_MATRIX_STACK_DEPTH_EXT 0x8E2F -#endif - -#ifndef GL_EXT_vertex_array_bgra -/* reuse GL_BGRA */ -#endif - - -/*************************************************************/ - -#include -#ifndef GL_VERSION_2_0 -/* GL type for program/shader text */ -typedef char GLchar; /* native character */ -#endif - -#ifndef GL_VERSION_1_5 -/* GL types for handling large vertex buffer objects */ -typedef ptrdiff_t GLintptr; -typedef ptrdiff_t GLsizeiptr; -#endif - -#ifndef GL_ARB_vertex_buffer_object -/* GL types for handling large vertex buffer objects */ -typedef ptrdiff_t GLintptrARB; -typedef ptrdiff_t GLsizeiptrARB; -#endif - -#ifndef GL_ARB_shader_objects -/* GL types for handling shader object handles and program/shader text */ -typedef char GLcharARB; /* native character */ -typedef unsigned int GLhandleARB; /* shader object handle */ -#endif - -/* GL types for "half" precision (s10e5) float data in host memory */ -#ifndef GL_ARB_half_float_pixel -typedef unsigned short GLhalfARB; -#endif - -#ifndef GL_NV_half_float -typedef unsigned short GLhalfNV; -#endif - -#ifndef GLEXT_64_TYPES_DEFINED -/* This code block is duplicated in glxext.h, so must be protected */ -#define GLEXT_64_TYPES_DEFINED -/* Define int32_t, int64_t, and uint64_t types for UST/MSC */ -/* (as used in the GL_EXT_timer_query extension). */ -#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L -#include -#elif defined(__sun__) || defined(__digital__) -#include -#if defined(__STDC__) -#if defined(__arch64__) || defined(_LP64) -typedef long int int64_t; -typedef unsigned long int uint64_t; -#else -typedef long long int int64_t; -typedef unsigned long long int uint64_t; -#endif /* __arch64__ */ -#endif /* __STDC__ */ -#elif defined( __VMS ) || defined(__sgi) -#include -#elif defined(__SCO__) || defined(__USLC__) -#include -#elif defined(__UNIXOS2__) || defined(__SOL64__) -typedef long int int32_t; -typedef long long int int64_t; -typedef unsigned long long int uint64_t; -#elif defined(_WIN32) && defined(__GNUC__) -#include -#elif defined(_WIN32) -typedef __int32 int32_t; -typedef __int64 int64_t; -typedef unsigned __int64 uint64_t; -#else -#include /* Fallback option */ -#endif -#endif - -#ifndef GL_EXT_timer_query -typedef int64_t GLint64EXT; -typedef uint64_t GLuint64EXT; -#endif - -#ifndef GL_VERSION_1_2 -#define GL_VERSION_1_2 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBlendColor (GLclampf, GLclampf, GLclampf, GLclampf); -GLAPI void APIENTRY glBlendEquation (GLenum); -GLAPI void APIENTRY glDrawRangeElements (GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *); -GLAPI void APIENTRY glColorTable (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glColorTableParameterfv (GLenum, GLenum, const GLfloat *); -GLAPI void APIENTRY glColorTableParameteriv (GLenum, GLenum, const GLint *); -GLAPI void APIENTRY glCopyColorTable (GLenum, GLenum, GLint, GLint, GLsizei); -GLAPI void APIENTRY glGetColorTable (GLenum, GLenum, GLenum, GLvoid *); -GLAPI void APIENTRY glGetColorTableParameterfv (GLenum, GLenum, GLfloat *); -GLAPI void APIENTRY glGetColorTableParameteriv (GLenum, GLenum, GLint *); -GLAPI void APIENTRY glColorSubTable (GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glCopyColorSubTable (GLenum, GLsizei, GLint, GLint, GLsizei); -GLAPI void APIENTRY glConvolutionFilter1D (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glConvolutionFilter2D (GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glConvolutionParameterf (GLenum, GLenum, GLfloat); -GLAPI void APIENTRY glConvolutionParameterfv (GLenum, GLenum, const GLfloat *); -GLAPI void APIENTRY glConvolutionParameteri (GLenum, GLenum, GLint); -GLAPI void APIENTRY glConvolutionParameteriv (GLenum, GLenum, const GLint *); -GLAPI void APIENTRY glCopyConvolutionFilter1D (GLenum, GLenum, GLint, GLint, GLsizei); -GLAPI void APIENTRY glCopyConvolutionFilter2D (GLenum, GLenum, GLint, GLint, GLsizei, GLsizei); -GLAPI void APIENTRY glGetConvolutionFilter (GLenum, GLenum, GLenum, GLvoid *); -GLAPI void APIENTRY glGetConvolutionParameterfv (GLenum, GLenum, GLfloat *); -GLAPI void APIENTRY glGetConvolutionParameteriv (GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetSeparableFilter (GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *); -GLAPI void APIENTRY glSeparableFilter2D (GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *); -GLAPI void APIENTRY glGetHistogram (GLenum, GLboolean, GLenum, GLenum, GLvoid *); -GLAPI void APIENTRY glGetHistogramParameterfv (GLenum, GLenum, GLfloat *); -GLAPI void APIENTRY glGetHistogramParameteriv (GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetMinmax (GLenum, GLboolean, GLenum, GLenum, GLvoid *); -GLAPI void APIENTRY glGetMinmaxParameterfv (GLenum, GLenum, GLfloat *); -GLAPI void APIENTRY glGetMinmaxParameteriv (GLenum, GLenum, GLint *); -GLAPI void APIENTRY glHistogram (GLenum, GLsizei, GLenum, GLboolean); -GLAPI void APIENTRY glMinmax (GLenum, GLenum, GLboolean); -GLAPI void APIENTRY glResetHistogram (GLenum); -GLAPI void APIENTRY glResetMinmax (GLenum); -GLAPI void APIENTRY glTexImage3D (GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glTexSubImage3D (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glCopyTexSubImage3D (GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); -typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode); -typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); -typedef void (APIENTRYP PFNGLCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); -typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLCOPYCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -typedef void (APIENTRYP PFNGLGETCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table); -typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data); -typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); -typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image); -typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image); -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat params); -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIPROC) (GLenum target, GLenum pname, GLint params); -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image); -typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span); -typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column); -typedef void (APIENTRYP PFNGLGETHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); -typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); -typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLHISTOGRAMPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); -typedef void (APIENTRYP PFNGLMINMAXPROC) (GLenum target, GLenum internalformat, GLboolean sink); -typedef void (APIENTRYP PFNGLRESETHISTOGRAMPROC) (GLenum target); -typedef void (APIENTRYP PFNGLRESETMINMAXPROC) (GLenum target); -typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -#endif - -#ifndef GL_VERSION_1_3 -#define GL_VERSION_1_3 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glActiveTexture (GLenum); -GLAPI void APIENTRY glClientActiveTexture (GLenum); -GLAPI void APIENTRY glMultiTexCoord1d (GLenum, GLdouble); -GLAPI void APIENTRY glMultiTexCoord1dv (GLenum, const GLdouble *); -GLAPI void APIENTRY glMultiTexCoord1f (GLenum, GLfloat); -GLAPI void APIENTRY glMultiTexCoord1fv (GLenum, const GLfloat *); -GLAPI void APIENTRY glMultiTexCoord1i (GLenum, GLint); -GLAPI void APIENTRY glMultiTexCoord1iv (GLenum, const GLint *); -GLAPI void APIENTRY glMultiTexCoord1s (GLenum, GLshort); -GLAPI void APIENTRY glMultiTexCoord1sv (GLenum, const GLshort *); -GLAPI void APIENTRY glMultiTexCoord2d (GLenum, GLdouble, GLdouble); -GLAPI void APIENTRY glMultiTexCoord2dv (GLenum, const GLdouble *); -GLAPI void APIENTRY glMultiTexCoord2f (GLenum, GLfloat, GLfloat); -GLAPI void APIENTRY glMultiTexCoord2fv (GLenum, const GLfloat *); -GLAPI void APIENTRY glMultiTexCoord2i (GLenum, GLint, GLint); -GLAPI void APIENTRY glMultiTexCoord2iv (GLenum, const GLint *); -GLAPI void APIENTRY glMultiTexCoord2s (GLenum, GLshort, GLshort); -GLAPI void APIENTRY glMultiTexCoord2sv (GLenum, const GLshort *); -GLAPI void APIENTRY glMultiTexCoord3d (GLenum, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glMultiTexCoord3dv (GLenum, const GLdouble *); -GLAPI void APIENTRY glMultiTexCoord3f (GLenum, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glMultiTexCoord3fv (GLenum, const GLfloat *); -GLAPI void APIENTRY glMultiTexCoord3i (GLenum, GLint, GLint, GLint); -GLAPI void APIENTRY glMultiTexCoord3iv (GLenum, const GLint *); -GLAPI void APIENTRY glMultiTexCoord3s (GLenum, GLshort, GLshort, GLshort); -GLAPI void APIENTRY glMultiTexCoord3sv (GLenum, const GLshort *); -GLAPI void APIENTRY glMultiTexCoord4d (GLenum, GLdouble, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glMultiTexCoord4dv (GLenum, const GLdouble *); -GLAPI void APIENTRY glMultiTexCoord4f (GLenum, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glMultiTexCoord4fv (GLenum, const GLfloat *); -GLAPI void APIENTRY glMultiTexCoord4i (GLenum, GLint, GLint, GLint, GLint); -GLAPI void APIENTRY glMultiTexCoord4iv (GLenum, const GLint *); -GLAPI void APIENTRY glMultiTexCoord4s (GLenum, GLshort, GLshort, GLshort, GLshort); -GLAPI void APIENTRY glMultiTexCoord4sv (GLenum, const GLshort *); -GLAPI void APIENTRY glLoadTransposeMatrixf (const GLfloat *); -GLAPI void APIENTRY glLoadTransposeMatrixd (const GLdouble *); -GLAPI void APIENTRY glMultTransposeMatrixf (const GLfloat *); -GLAPI void APIENTRY glMultTransposeMatrixd (const GLdouble *); -GLAPI void APIENTRY glSampleCoverage (GLclampf, GLboolean); -GLAPI void APIENTRY glCompressedTexImage3D (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); -GLAPI void APIENTRY glCompressedTexImage2D (GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); -GLAPI void APIENTRY glCompressedTexImage1D (GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const GLvoid *); -GLAPI void APIENTRY glCompressedTexSubImage3D (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *); -GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *); -GLAPI void APIENTRY glCompressedTexSubImage1D (GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid *); -GLAPI void APIENTRY glGetCompressedTexImage (GLenum, GLint, GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture); -typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1FPROC) (GLenum target, GLfloat s); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVPROC) (GLenum target, const GLfloat *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1IPROC) (GLenum target, GLint s); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVPROC) (GLenum target, const GLint *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1SPROC) (GLenum target, GLshort s); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVPROC) (GLenum target, const GLshort *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2DPROC) (GLenum target, GLdouble s, GLdouble t); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVPROC) (GLenum target, const GLdouble *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s, GLint t); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVPROC) (GLenum target, const GLint *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2SPROC) (GLenum target, GLshort s, GLshort t); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVPROC) (GLenum target, const GLshort *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVPROC) (GLenum target, const GLdouble *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVPROC) (GLenum target, const GLfloat *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s, GLint t, GLint r); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVPROC) (GLenum target, const GLint *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3SPROC) (GLenum target, GLshort s, GLshort t, GLshort r); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVPROC) (GLenum target, const GLshort *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVPROC) (GLenum target, const GLdouble *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVPROC) (GLenum target, const GLfloat *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVPROC) (GLenum target, const GLint *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4SPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVPROC) (GLenum target, const GLshort *v); -typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat *m); -typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble *m); -typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat *m); -typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble *m); -typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLclampf value, GLboolean invert); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data); -typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, GLvoid *img); -#endif - -#ifndef GL_VERSION_1_4 -#define GL_VERSION_1_4 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBlendFuncSeparate (GLenum, GLenum, GLenum, GLenum); -GLAPI void APIENTRY glFogCoordf (GLfloat); -GLAPI void APIENTRY glFogCoordfv (const GLfloat *); -GLAPI void APIENTRY glFogCoordd (GLdouble); -GLAPI void APIENTRY glFogCoorddv (const GLdouble *); -GLAPI void APIENTRY glFogCoordPointer (GLenum, GLsizei, const GLvoid *); -GLAPI void APIENTRY glMultiDrawArrays (GLenum, GLint *, GLsizei *, GLsizei); -GLAPI void APIENTRY glMultiDrawElements (GLenum, const GLsizei *, GLenum, const GLvoid* *, GLsizei); -GLAPI void APIENTRY glPointParameterf (GLenum, GLfloat); -GLAPI void APIENTRY glPointParameterfv (GLenum, const GLfloat *); -GLAPI void APIENTRY glPointParameteri (GLenum, GLint); -GLAPI void APIENTRY glPointParameteriv (GLenum, const GLint *); -GLAPI void APIENTRY glSecondaryColor3b (GLbyte, GLbyte, GLbyte); -GLAPI void APIENTRY glSecondaryColor3bv (const GLbyte *); -GLAPI void APIENTRY glSecondaryColor3d (GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glSecondaryColor3dv (const GLdouble *); -GLAPI void APIENTRY glSecondaryColor3f (GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glSecondaryColor3fv (const GLfloat *); -GLAPI void APIENTRY glSecondaryColor3i (GLint, GLint, GLint); -GLAPI void APIENTRY glSecondaryColor3iv (const GLint *); -GLAPI void APIENTRY glSecondaryColor3s (GLshort, GLshort, GLshort); -GLAPI void APIENTRY glSecondaryColor3sv (const GLshort *); -GLAPI void APIENTRY glSecondaryColor3ub (GLubyte, GLubyte, GLubyte); -GLAPI void APIENTRY glSecondaryColor3ubv (const GLubyte *); -GLAPI void APIENTRY glSecondaryColor3ui (GLuint, GLuint, GLuint); -GLAPI void APIENTRY glSecondaryColor3uiv (const GLuint *); -GLAPI void APIENTRY glSecondaryColor3us (GLushort, GLushort, GLushort); -GLAPI void APIENTRY glSecondaryColor3usv (const GLushort *); -GLAPI void APIENTRY glSecondaryColorPointer (GLint, GLenum, GLsizei, const GLvoid *); -GLAPI void APIENTRY glWindowPos2d (GLdouble, GLdouble); -GLAPI void APIENTRY glWindowPos2dv (const GLdouble *); -GLAPI void APIENTRY glWindowPos2f (GLfloat, GLfloat); -GLAPI void APIENTRY glWindowPos2fv (const GLfloat *); -GLAPI void APIENTRY glWindowPos2i (GLint, GLint); -GLAPI void APIENTRY glWindowPos2iv (const GLint *); -GLAPI void APIENTRY glWindowPos2s (GLshort, GLshort); -GLAPI void APIENTRY glWindowPos2sv (const GLshort *); -GLAPI void APIENTRY glWindowPos3d (GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glWindowPos3dv (const GLdouble *); -GLAPI void APIENTRY glWindowPos3f (GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glWindowPos3fv (const GLfloat *); -GLAPI void APIENTRY glWindowPos3i (GLint, GLint, GLint); -GLAPI void APIENTRY glWindowPos3iv (const GLint *); -GLAPI void APIENTRY glWindowPos3s (GLshort, GLshort, GLshort); -GLAPI void APIENTRY glWindowPos3sv (const GLshort *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); -typedef void (APIENTRYP PFNGLFOGCOORDFPROC) (GLfloat coord); -typedef void (APIENTRYP PFNGLFOGCOORDFVPROC) (const GLfloat *coord); -typedef void (APIENTRYP PFNGLFOGCOORDDPROC) (GLdouble coord); -typedef void (APIENTRYP PFNGLFOGCOORDDVPROC) (const GLdouble *coord); -typedef void (APIENTRYP PFNGLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount); -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount); -typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IPROC) (GLint red, GLint green, GLint blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVPROC) (const GLint *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVPROC) (const GLshort *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVPROC) (const GLushort *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); -typedef void (APIENTRYP PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y); -typedef void (APIENTRYP PFNGLWINDOWPOS2DVPROC) (const GLdouble *v); -typedef void (APIENTRYP PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y); -typedef void (APIENTRYP PFNGLWINDOWPOS2FVPROC) (const GLfloat *v); -typedef void (APIENTRYP PFNGLWINDOWPOS2IPROC) (GLint x, GLint y); -typedef void (APIENTRYP PFNGLWINDOWPOS2IVPROC) (const GLint *v); -typedef void (APIENTRYP PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y); -typedef void (APIENTRYP PFNGLWINDOWPOS2SVPROC) (const GLshort *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLWINDOWPOS3DVPROC) (const GLdouble *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLWINDOWPOS3FVPROC) (const GLfloat *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z); -typedef void (APIENTRYP PFNGLWINDOWPOS3IVPROC) (const GLint *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y, GLshort z); -typedef void (APIENTRYP PFNGLWINDOWPOS3SVPROC) (const GLshort *v); -#endif - -#ifndef GL_VERSION_1_5 -#define GL_VERSION_1_5 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glGenQueries (GLsizei, GLuint *); -GLAPI void APIENTRY glDeleteQueries (GLsizei, const GLuint *); -GLAPI GLboolean APIENTRY glIsQuery (GLuint); -GLAPI void APIENTRY glBeginQuery (GLenum, GLuint); -GLAPI void APIENTRY glEndQuery (GLenum); -GLAPI void APIENTRY glGetQueryiv (GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetQueryObjectiv (GLuint, GLenum, GLint *); -GLAPI void APIENTRY glGetQueryObjectuiv (GLuint, GLenum, GLuint *); -GLAPI void APIENTRY glBindBuffer (GLenum, GLuint); -GLAPI void APIENTRY glDeleteBuffers (GLsizei, const GLuint *); -GLAPI void APIENTRY glGenBuffers (GLsizei, GLuint *); -GLAPI GLboolean APIENTRY glIsBuffer (GLuint); -GLAPI void APIENTRY glBufferData (GLenum, GLsizeiptr, const GLvoid *, GLenum); -GLAPI void APIENTRY glBufferSubData (GLenum, GLintptr, GLsizeiptr, const GLvoid *); -GLAPI void APIENTRY glGetBufferSubData (GLenum, GLintptr, GLsizeiptr, GLvoid *); -GLAPI GLvoid* APIENTRY glMapBuffer (GLenum, GLenum); -GLAPI GLboolean APIENTRY glUnmapBuffer (GLenum); -GLAPI void APIENTRY glGetBufferParameteriv (GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetBufferPointerv (GLenum, GLenum, GLvoid* *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLGENQUERIESPROC) (GLsizei n, GLuint *ids); -typedef void (APIENTRYP PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids); -typedef GLboolean (APIENTRYP PFNGLISQUERYPROC) (GLuint id); -typedef void (APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id); -typedef void (APIENTRYP PFNGLENDQUERYPROC) (GLenum target); -typedef void (APIENTRYP PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params); -typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer); -typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers); -typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers); -typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer); -typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage); -typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data); -typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data); -typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access); -typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target); -typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, GLvoid* *params); -#endif - -#ifndef GL_VERSION_2_0 -#define GL_VERSION_2_0 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBlendEquationSeparate (GLenum, GLenum); -GLAPI void APIENTRY glDrawBuffers (GLsizei, const GLenum *); -GLAPI void APIENTRY glStencilOpSeparate (GLenum, GLenum, GLenum, GLenum); -GLAPI void APIENTRY glStencilFuncSeparate (GLenum, GLenum, GLint, GLuint); -GLAPI void APIENTRY glStencilMaskSeparate (GLenum, GLuint); -GLAPI void APIENTRY glAttachShader (GLuint, GLuint); -GLAPI void APIENTRY glBindAttribLocation (GLuint, GLuint, const GLchar *); -GLAPI void APIENTRY glCompileShader (GLuint); -GLAPI GLuint APIENTRY glCreateProgram (void); -GLAPI GLuint APIENTRY glCreateShader (GLenum); -GLAPI void APIENTRY glDeleteProgram (GLuint); -GLAPI void APIENTRY glDeleteShader (GLuint); -GLAPI void APIENTRY glDetachShader (GLuint, GLuint); -GLAPI void APIENTRY glDisableVertexAttribArray (GLuint); -GLAPI void APIENTRY glEnableVertexAttribArray (GLuint); -GLAPI void APIENTRY glGetActiveAttrib (GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *); -GLAPI void APIENTRY glGetActiveUniform (GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *); -GLAPI void APIENTRY glGetAttachedShaders (GLuint, GLsizei, GLsizei *, GLuint *); -GLAPI GLint APIENTRY glGetAttribLocation (GLuint, const GLchar *); -GLAPI void APIENTRY glGetProgramiv (GLuint, GLenum, GLint *); -GLAPI void APIENTRY glGetProgramInfoLog (GLuint, GLsizei, GLsizei *, GLchar *); -GLAPI void APIENTRY glGetShaderiv (GLuint, GLenum, GLint *); -GLAPI void APIENTRY glGetShaderInfoLog (GLuint, GLsizei, GLsizei *, GLchar *); -GLAPI void APIENTRY glGetShaderSource (GLuint, GLsizei, GLsizei *, GLchar *); -GLAPI GLint APIENTRY glGetUniformLocation (GLuint, const GLchar *); -GLAPI void APIENTRY glGetUniformfv (GLuint, GLint, GLfloat *); -GLAPI void APIENTRY glGetUniformiv (GLuint, GLint, GLint *); -GLAPI void APIENTRY glGetVertexAttribdv (GLuint, GLenum, GLdouble *); -GLAPI void APIENTRY glGetVertexAttribfv (GLuint, GLenum, GLfloat *); -GLAPI void APIENTRY glGetVertexAttribiv (GLuint, GLenum, GLint *); -GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint, GLenum, GLvoid* *); -GLAPI GLboolean APIENTRY glIsProgram (GLuint); -GLAPI GLboolean APIENTRY glIsShader (GLuint); -GLAPI void APIENTRY glLinkProgram (GLuint); -GLAPI void APIENTRY glShaderSource (GLuint, GLsizei, const GLchar* *, const GLint *); -GLAPI void APIENTRY glUseProgram (GLuint); -GLAPI void APIENTRY glUniform1f (GLint, GLfloat); -GLAPI void APIENTRY glUniform2f (GLint, GLfloat, GLfloat); -GLAPI void APIENTRY glUniform3f (GLint, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glUniform4f (GLint, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glUniform1i (GLint, GLint); -GLAPI void APIENTRY glUniform2i (GLint, GLint, GLint); -GLAPI void APIENTRY glUniform3i (GLint, GLint, GLint, GLint); -GLAPI void APIENTRY glUniform4i (GLint, GLint, GLint, GLint, GLint); -GLAPI void APIENTRY glUniform1fv (GLint, GLsizei, const GLfloat *); -GLAPI void APIENTRY glUniform2fv (GLint, GLsizei, const GLfloat *); -GLAPI void APIENTRY glUniform3fv (GLint, GLsizei, const GLfloat *); -GLAPI void APIENTRY glUniform4fv (GLint, GLsizei, const GLfloat *); -GLAPI void APIENTRY glUniform1iv (GLint, GLsizei, const GLint *); -GLAPI void APIENTRY glUniform2iv (GLint, GLsizei, const GLint *); -GLAPI void APIENTRY glUniform3iv (GLint, GLsizei, const GLint *); -GLAPI void APIENTRY glUniform4iv (GLint, GLsizei, const GLint *); -GLAPI void APIENTRY glUniformMatrix2fv (GLint, GLsizei, GLboolean, const GLfloat *); -GLAPI void APIENTRY glUniformMatrix3fv (GLint, GLsizei, GLboolean, const GLfloat *); -GLAPI void APIENTRY glUniformMatrix4fv (GLint, GLsizei, GLboolean, const GLfloat *); -GLAPI void APIENTRY glValidateProgram (GLuint); -GLAPI void APIENTRY glVertexAttrib1d (GLuint, GLdouble); -GLAPI void APIENTRY glVertexAttrib1dv (GLuint, const GLdouble *); -GLAPI void APIENTRY glVertexAttrib1f (GLuint, GLfloat); -GLAPI void APIENTRY glVertexAttrib1fv (GLuint, const GLfloat *); -GLAPI void APIENTRY glVertexAttrib1s (GLuint, GLshort); -GLAPI void APIENTRY glVertexAttrib1sv (GLuint, const GLshort *); -GLAPI void APIENTRY glVertexAttrib2d (GLuint, GLdouble, GLdouble); -GLAPI void APIENTRY glVertexAttrib2dv (GLuint, const GLdouble *); -GLAPI void APIENTRY glVertexAttrib2f (GLuint, GLfloat, GLfloat); -GLAPI void APIENTRY glVertexAttrib2fv (GLuint, const GLfloat *); -GLAPI void APIENTRY glVertexAttrib2s (GLuint, GLshort, GLshort); -GLAPI void APIENTRY glVertexAttrib2sv (GLuint, const GLshort *); -GLAPI void APIENTRY glVertexAttrib3d (GLuint, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glVertexAttrib3dv (GLuint, const GLdouble *); -GLAPI void APIENTRY glVertexAttrib3f (GLuint, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glVertexAttrib3fv (GLuint, const GLfloat *); -GLAPI void APIENTRY glVertexAttrib3s (GLuint, GLshort, GLshort, GLshort); -GLAPI void APIENTRY glVertexAttrib3sv (GLuint, const GLshort *); -GLAPI void APIENTRY glVertexAttrib4Nbv (GLuint, const GLbyte *); -GLAPI void APIENTRY glVertexAttrib4Niv (GLuint, const GLint *); -GLAPI void APIENTRY glVertexAttrib4Nsv (GLuint, const GLshort *); -GLAPI void APIENTRY glVertexAttrib4Nub (GLuint, GLubyte, GLubyte, GLubyte, GLubyte); -GLAPI void APIENTRY glVertexAttrib4Nubv (GLuint, const GLubyte *); -GLAPI void APIENTRY glVertexAttrib4Nuiv (GLuint, const GLuint *); -GLAPI void APIENTRY glVertexAttrib4Nusv (GLuint, const GLushort *); -GLAPI void APIENTRY glVertexAttrib4bv (GLuint, const GLbyte *); -GLAPI void APIENTRY glVertexAttrib4d (GLuint, GLdouble, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glVertexAttrib4dv (GLuint, const GLdouble *); -GLAPI void APIENTRY glVertexAttrib4f (GLuint, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glVertexAttrib4fv (GLuint, const GLfloat *); -GLAPI void APIENTRY glVertexAttrib4iv (GLuint, const GLint *); -GLAPI void APIENTRY glVertexAttrib4s (GLuint, GLshort, GLshort, GLshort, GLshort); -GLAPI void APIENTRY glVertexAttrib4sv (GLuint, const GLshort *); -GLAPI void APIENTRY glVertexAttrib4ubv (GLuint, const GLubyte *); -GLAPI void APIENTRY glVertexAttrib4uiv (GLuint, const GLuint *); -GLAPI void APIENTRY glVertexAttrib4usv (GLuint, const GLushort *); -GLAPI void APIENTRY glVertexAttribPointer (GLuint, GLint, GLenum, GLboolean, GLsizei, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha); -typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs); -typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); -typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); -typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask); -typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader); -typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name); -typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader); -typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void); -typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type); -typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program); -typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader); -typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader); -typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index); -typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index); -typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); -typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj); -typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name); -typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog); -typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog); -typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source); -typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name); -typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params); -typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, GLvoid* *pointer); -typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program); -typedef GLboolean (APIENTRYP PFNGLISSHADERPROC) (GLuint shader); -typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program); -typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar* *string, const GLint *length); -typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program); -typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0); -typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1); -typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0); -typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1); -typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2); -typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer); -#endif - -#ifndef GL_VERSION_2_1 -#define GL_VERSION_2_1 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glUniformMatrix2x3fv (GLint, GLsizei, GLboolean, const GLfloat *); -GLAPI void APIENTRY glUniformMatrix3x2fv (GLint, GLsizei, GLboolean, const GLfloat *); -GLAPI void APIENTRY glUniformMatrix2x4fv (GLint, GLsizei, GLboolean, const GLfloat *); -GLAPI void APIENTRY glUniformMatrix4x2fv (GLint, GLsizei, GLboolean, const GLfloat *); -GLAPI void APIENTRY glUniformMatrix3x4fv (GLint, GLsizei, GLboolean, const GLfloat *); -GLAPI void APIENTRY glUniformMatrix4x3fv (GLint, GLsizei, GLboolean, const GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -#endif - -#ifndef GL_VERSION_3_0 -#define GL_VERSION_3_0 1 -/* OpenGL 3.0 also reuses entry points from these extensions: */ -/* ARB_framebuffer_object */ -/* ARB_map_buffer_range */ -/* ARB_vertex_array_object */ -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glColorMaski (GLuint, GLboolean, GLboolean, GLboolean, GLboolean); -GLAPI void APIENTRY glGetBooleani_v (GLenum, GLuint, GLboolean *); -GLAPI void APIENTRY glGetIntegeri_v (GLenum, GLuint, GLint *); -GLAPI void APIENTRY glEnablei (GLenum, GLuint); -GLAPI void APIENTRY glDisablei (GLenum, GLuint); -GLAPI GLboolean APIENTRY glIsEnabledi (GLenum, GLuint); -GLAPI void APIENTRY glBeginTransformFeedback (GLenum); -GLAPI void APIENTRY glEndTransformFeedback (void); -GLAPI void APIENTRY glBindBufferRange (GLenum, GLuint, GLuint, GLintptr, GLsizeiptr); -GLAPI void APIENTRY glBindBufferBase (GLenum, GLuint, GLuint); -GLAPI void APIENTRY glTransformFeedbackVaryings (GLuint, GLsizei, const GLint *, GLenum); -GLAPI void APIENTRY glGetTransformFeedbackVarying (GLuint, GLuint, GLint *); -GLAPI void APIENTRY glClampColor (GLenum, GLenum); -GLAPI void APIENTRY glBeginConditionalRender (GLuint, GLenum); -GLAPI void APIENTRY glEndConditionalRender (void); -GLAPI void APIENTRY glVertexAttribI1i (GLuint, GLint); -GLAPI void APIENTRY glVertexAttribI2i (GLuint, GLint, GLint); -GLAPI void APIENTRY glVertexAttribI3i (GLuint, GLint, GLint, GLint); -GLAPI void APIENTRY glVertexAttribI4i (GLuint, GLint, GLint, GLint, GLint); -GLAPI void APIENTRY glVertexAttribI1ui (GLuint, GLuint); -GLAPI void APIENTRY glVertexAttribI2ui (GLuint, GLuint, GLuint); -GLAPI void APIENTRY glVertexAttribI3ui (GLuint, GLuint, GLuint, GLuint); -GLAPI void APIENTRY glVertexAttribI4ui (GLuint, GLuint, GLuint, GLuint, GLuint); -GLAPI void APIENTRY glVertexAttribI1iv (GLuint, const GLint *); -GLAPI void APIENTRY glVertexAttribI2iv (GLuint, const GLint *); -GLAPI void APIENTRY glVertexAttribI3iv (GLuint, const GLint *); -GLAPI void APIENTRY glVertexAttribI4iv (GLuint, const GLint *); -GLAPI void APIENTRY glVertexAttribI1uiv (GLuint, const GLuint *); -GLAPI void APIENTRY glVertexAttribI2uiv (GLuint, const GLuint *); -GLAPI void APIENTRY glVertexAttribI3uiv (GLuint, const GLuint *); -GLAPI void APIENTRY glVertexAttribI4uiv (GLuint, const GLuint *); -GLAPI void APIENTRY glVertexAttribI4bv (GLuint, const GLbyte *); -GLAPI void APIENTRY glVertexAttribI4sv (GLuint, const GLshort *); -GLAPI void APIENTRY glVertexAttribI4ubv (GLuint, const GLubyte *); -GLAPI void APIENTRY glVertexAttribI4usv (GLuint, const GLushort *); -GLAPI void APIENTRY glVertexAttribIPointer (GLuint, GLint, GLenum, GLsizei, const GLvoid *); -GLAPI void APIENTRY glGetVertexAttribIiv (GLuint, GLenum, GLint *); -GLAPI void APIENTRY glGetVertexAttribIuiv (GLuint, GLenum, GLuint *); -GLAPI void APIENTRY glGetUniformuiv (GLuint, GLint, GLuint *); -GLAPI void APIENTRY glBindFragDataLocation (GLuint, GLuint, const GLchar *); -GLAPI GLint APIENTRY glGetFragDataLocation (GLuint, const GLchar *); -GLAPI void APIENTRY glUniform1ui (GLint, GLuint); -GLAPI void APIENTRY glUniform2ui (GLint, GLuint, GLuint); -GLAPI void APIENTRY glUniform3ui (GLint, GLuint, GLuint, GLuint); -GLAPI void APIENTRY glUniform4ui (GLint, GLuint, GLuint, GLuint, GLuint); -GLAPI void APIENTRY glUniform1uiv (GLint, GLsizei, const GLuint *); -GLAPI void APIENTRY glUniform2uiv (GLint, GLsizei, const GLuint *); -GLAPI void APIENTRY glUniform3uiv (GLint, GLsizei, const GLuint *); -GLAPI void APIENTRY glUniform4uiv (GLint, GLsizei, const GLuint *); -GLAPI void APIENTRY glTexParameterIiv (GLenum, GLenum, const GLint *); -GLAPI void APIENTRY glTexParameterIuiv (GLenum, GLenum, const GLuint *); -GLAPI void APIENTRY glGetTexParameterIiv (GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetTexParameterIuiv (GLenum, GLenum, GLuint *); -GLAPI void APIENTRY glClearBufferiv (GLenum, const GLint *); -GLAPI void APIENTRY glClearBufferuiv (GLenum, const GLuint *); -GLAPI void APIENTRY glClearBufferfv (GLenum, const GLfloat *); -GLAPI void APIENTRY glClearBufferfi (GLenum, GLfloat, GLint); -GLAPI const GLubyte * APIENTRY glGetStringi (GLenum, GLuint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLCOLORMASKIPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); -typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC) (GLenum target, GLuint index, GLboolean *data); -typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint *data); -typedef void (APIENTRYP PFNGLENABLEIPROC) (GLenum target, GLuint index); -typedef void (APIENTRYP PFNGLDISABLEIPROC) (GLenum target, GLuint index); -typedef GLboolean (APIENTRYP PFNGLISENABLEDIPROC) (GLenum target, GLuint index); -typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKPROC) (GLenum primitiveMode); -typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKPROC) (void); -typedef void (APIENTRYP PFNGLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); -typedef void (APIENTRYP PFNGLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer); -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint program, GLsizei count, const GLint *locations, GLenum bufferMode); -typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint program, GLuint index, GLint *location); -typedef void (APIENTRYP PFNGLCLAMPCOLORPROC) (GLenum target, GLenum clamp); -typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERPROC) (GLuint id, GLenum mode); -typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERPROC) (void); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IPROC) (GLuint index, GLint x); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IPROC) (GLuint index, GLint x, GLint y); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IPROC) (GLuint index, GLint x, GLint y, GLint z); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIPROC) (GLuint index, GLuint x); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIPROC) (GLuint index, GLuint x, GLuint y); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVPROC) (GLuint index, const GLbyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVPROC) (GLuint index, const GLubyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVPROC) (GLuint index, const GLushort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC) (GLuint index, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint index, GLenum pname, GLuint *params); -typedef void (APIENTRYP PFNGLGETUNIFORMUIVPROC) (GLuint program, GLint location, GLuint *params); -typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC) (GLuint program, GLuint color, const GLchar *name); -typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONPROC) (GLuint program, const GLchar *name); -typedef void (APIENTRYP PFNGLUNIFORM1UIPROC) (GLint location, GLuint v0); -typedef void (APIENTRYP PFNGLUNIFORM2UIPROC) (GLint location, GLuint v0, GLuint v1); -typedef void (APIENTRYP PFNGLUNIFORM3UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2); -typedef void (APIENTRYP PFNGLUNIFORM4UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -typedef void (APIENTRYP PFNGLUNIFORM1UIVPROC) (GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLUNIFORM2UIVPROC) (GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLUNIFORM3UIVPROC) (GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLUNIFORM4UIVPROC) (GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, const GLuint *params); -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, GLuint *params); -typedef void (APIENTRYP PFNGLCLEARBUFFERIVPROC) (GLenum buffer, const GLint *value); -typedef void (APIENTRYP PFNGLCLEARBUFFERUIVPROC) (GLenum buffer, const GLuint *value); -typedef void (APIENTRYP PFNGLCLEARBUFFERFVPROC) (GLenum buffer, const GLfloat *value); -typedef void (APIENTRYP PFNGLCLEARBUFFERFIPROC) (GLenum buffer, GLfloat depth, GLint stencil); -typedef const GLubyte * (APIENTRYP PFNGLGETSTRINGIPROC) (GLenum name, GLuint index); -#endif - -#ifndef GL_ARB_multitexture -#define GL_ARB_multitexture 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glActiveTextureARB (GLenum); -GLAPI void APIENTRY glClientActiveTextureARB (GLenum); -GLAPI void APIENTRY glMultiTexCoord1dARB (GLenum, GLdouble); -GLAPI void APIENTRY glMultiTexCoord1dvARB (GLenum, const GLdouble *); -GLAPI void APIENTRY glMultiTexCoord1fARB (GLenum, GLfloat); -GLAPI void APIENTRY glMultiTexCoord1fvARB (GLenum, const GLfloat *); -GLAPI void APIENTRY glMultiTexCoord1iARB (GLenum, GLint); -GLAPI void APIENTRY glMultiTexCoord1ivARB (GLenum, const GLint *); -GLAPI void APIENTRY glMultiTexCoord1sARB (GLenum, GLshort); -GLAPI void APIENTRY glMultiTexCoord1svARB (GLenum, const GLshort *); -GLAPI void APIENTRY glMultiTexCoord2dARB (GLenum, GLdouble, GLdouble); -GLAPI void APIENTRY glMultiTexCoord2dvARB (GLenum, const GLdouble *); -GLAPI void APIENTRY glMultiTexCoord2fARB (GLenum, GLfloat, GLfloat); -GLAPI void APIENTRY glMultiTexCoord2fvARB (GLenum, const GLfloat *); -GLAPI void APIENTRY glMultiTexCoord2iARB (GLenum, GLint, GLint); -GLAPI void APIENTRY glMultiTexCoord2ivARB (GLenum, const GLint *); -GLAPI void APIENTRY glMultiTexCoord2sARB (GLenum, GLshort, GLshort); -GLAPI void APIENTRY glMultiTexCoord2svARB (GLenum, const GLshort *); -GLAPI void APIENTRY glMultiTexCoord3dARB (GLenum, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glMultiTexCoord3dvARB (GLenum, const GLdouble *); -GLAPI void APIENTRY glMultiTexCoord3fARB (GLenum, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glMultiTexCoord3fvARB (GLenum, const GLfloat *); -GLAPI void APIENTRY glMultiTexCoord3iARB (GLenum, GLint, GLint, GLint); -GLAPI void APIENTRY glMultiTexCoord3ivARB (GLenum, const GLint *); -GLAPI void APIENTRY glMultiTexCoord3sARB (GLenum, GLshort, GLshort, GLshort); -GLAPI void APIENTRY glMultiTexCoord3svARB (GLenum, const GLshort *); -GLAPI void APIENTRY glMultiTexCoord4dARB (GLenum, GLdouble, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glMultiTexCoord4dvARB (GLenum, const GLdouble *); -GLAPI void APIENTRY glMultiTexCoord4fARB (GLenum, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glMultiTexCoord4fvARB (GLenum, const GLfloat *); -GLAPI void APIENTRY glMultiTexCoord4iARB (GLenum, GLint, GLint, GLint, GLint); -GLAPI void APIENTRY glMultiTexCoord4ivARB (GLenum, const GLint *); -GLAPI void APIENTRY glMultiTexCoord4sARB (GLenum, GLshort, GLshort, GLshort, GLshort); -GLAPI void APIENTRY glMultiTexCoord4svARB (GLenum, const GLshort *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLACTIVETEXTUREARBPROC) (GLenum texture); -typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v); -#endif - -#ifndef GL_ARB_transpose_matrix -#define GL_ARB_transpose_matrix 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glLoadTransposeMatrixfARB (const GLfloat *); -GLAPI void APIENTRY glLoadTransposeMatrixdARB (const GLdouble *); -GLAPI void APIENTRY glMultTransposeMatrixfARB (const GLfloat *); -GLAPI void APIENTRY glMultTransposeMatrixdARB (const GLdouble *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFARBPROC) (const GLfloat *m); -typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDARBPROC) (const GLdouble *m); -typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFARBPROC) (const GLfloat *m); -typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDARBPROC) (const GLdouble *m); -#endif - -#ifndef GL_ARB_multisample -#define GL_ARB_multisample 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glSampleCoverageARB (GLclampf, GLboolean); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLSAMPLECOVERAGEARBPROC) (GLclampf value, GLboolean invert); -#endif - -#ifndef GL_ARB_texture_env_add -#define GL_ARB_texture_env_add 1 -#endif - -#ifndef GL_ARB_texture_cube_map -#define GL_ARB_texture_cube_map 1 -#endif - -#ifndef GL_ARB_texture_compression -#define GL_ARB_texture_compression 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glCompressedTexImage3DARB (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); -GLAPI void APIENTRY glCompressedTexImage2DARB (GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); -GLAPI void APIENTRY glCompressedTexImage1DARB (GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const GLvoid *); -GLAPI void APIENTRY glCompressedTexSubImage3DARB (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *); -GLAPI void APIENTRY glCompressedTexSubImage2DARB (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *); -GLAPI void APIENTRY glCompressedTexSubImage1DARB (GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid *); -GLAPI void APIENTRY glGetCompressedTexImageARB (GLenum, GLint, GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data); -typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint level, GLvoid *img); -#endif - -#ifndef GL_ARB_texture_border_clamp -#define GL_ARB_texture_border_clamp 1 -#endif - -#ifndef GL_ARB_point_parameters -#define GL_ARB_point_parameters 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glPointParameterfARB (GLenum, GLfloat); -GLAPI void APIENTRY glPointParameterfvARB (GLenum, const GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLPOINTPARAMETERFARBPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLPOINTPARAMETERFVARBPROC) (GLenum pname, const GLfloat *params); -#endif - -#ifndef GL_ARB_vertex_blend -#define GL_ARB_vertex_blend 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glWeightbvARB (GLint, const GLbyte *); -GLAPI void APIENTRY glWeightsvARB (GLint, const GLshort *); -GLAPI void APIENTRY glWeightivARB (GLint, const GLint *); -GLAPI void APIENTRY glWeightfvARB (GLint, const GLfloat *); -GLAPI void APIENTRY glWeightdvARB (GLint, const GLdouble *); -GLAPI void APIENTRY glWeightubvARB (GLint, const GLubyte *); -GLAPI void APIENTRY glWeightusvARB (GLint, const GLushort *); -GLAPI void APIENTRY glWeightuivARB (GLint, const GLuint *); -GLAPI void APIENTRY glWeightPointerARB (GLint, GLenum, GLsizei, const GLvoid *); -GLAPI void APIENTRY glVertexBlendARB (GLint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLWEIGHTBVARBPROC) (GLint size, const GLbyte *weights); -typedef void (APIENTRYP PFNGLWEIGHTSVARBPROC) (GLint size, const GLshort *weights); -typedef void (APIENTRYP PFNGLWEIGHTIVARBPROC) (GLint size, const GLint *weights); -typedef void (APIENTRYP PFNGLWEIGHTFVARBPROC) (GLint size, const GLfloat *weights); -typedef void (APIENTRYP PFNGLWEIGHTDVARBPROC) (GLint size, const GLdouble *weights); -typedef void (APIENTRYP PFNGLWEIGHTUBVARBPROC) (GLint size, const GLubyte *weights); -typedef void (APIENTRYP PFNGLWEIGHTUSVARBPROC) (GLint size, const GLushort *weights); -typedef void (APIENTRYP PFNGLWEIGHTUIVARBPROC) (GLint size, const GLuint *weights); -typedef void (APIENTRYP PFNGLWEIGHTPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); -typedef void (APIENTRYP PFNGLVERTEXBLENDARBPROC) (GLint count); -#endif - -#ifndef GL_ARB_matrix_palette -#define GL_ARB_matrix_palette 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glCurrentPaletteMatrixARB (GLint); -GLAPI void APIENTRY glMatrixIndexubvARB (GLint, const GLubyte *); -GLAPI void APIENTRY glMatrixIndexusvARB (GLint, const GLushort *); -GLAPI void APIENTRY glMatrixIndexuivARB (GLint, const GLuint *); -GLAPI void APIENTRY glMatrixIndexPointerARB (GLint, GLenum, GLsizei, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLCURRENTPALETTEMATRIXARBPROC) (GLint index); -typedef void (APIENTRYP PFNGLMATRIXINDEXUBVARBPROC) (GLint size, const GLubyte *indices); -typedef void (APIENTRYP PFNGLMATRIXINDEXUSVARBPROC) (GLint size, const GLushort *indices); -typedef void (APIENTRYP PFNGLMATRIXINDEXUIVARBPROC) (GLint size, const GLuint *indices); -typedef void (APIENTRYP PFNGLMATRIXINDEXPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); -#endif - -#ifndef GL_ARB_texture_env_combine -#define GL_ARB_texture_env_combine 1 -#endif - -#ifndef GL_ARB_texture_env_crossbar -#define GL_ARB_texture_env_crossbar 1 -#endif - -#ifndef GL_ARB_texture_env_dot3 -#define GL_ARB_texture_env_dot3 1 -#endif - -#ifndef GL_ARB_texture_mirrored_repeat -#define GL_ARB_texture_mirrored_repeat 1 -#endif - -#ifndef GL_ARB_depth_texture -#define GL_ARB_depth_texture 1 -#endif - -#ifndef GL_ARB_shadow -#define GL_ARB_shadow 1 -#endif - -#ifndef GL_ARB_shadow_ambient -#define GL_ARB_shadow_ambient 1 -#endif - -#ifndef GL_ARB_window_pos -#define GL_ARB_window_pos 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glWindowPos2dARB (GLdouble, GLdouble); -GLAPI void APIENTRY glWindowPos2dvARB (const GLdouble *); -GLAPI void APIENTRY glWindowPos2fARB (GLfloat, GLfloat); -GLAPI void APIENTRY glWindowPos2fvARB (const GLfloat *); -GLAPI void APIENTRY glWindowPos2iARB (GLint, GLint); -GLAPI void APIENTRY glWindowPos2ivARB (const GLint *); -GLAPI void APIENTRY glWindowPos2sARB (GLshort, GLshort); -GLAPI void APIENTRY glWindowPos2svARB (const GLshort *); -GLAPI void APIENTRY glWindowPos3dARB (GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glWindowPos3dvARB (const GLdouble *); -GLAPI void APIENTRY glWindowPos3fARB (GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glWindowPos3fvARB (const GLfloat *); -GLAPI void APIENTRY glWindowPos3iARB (GLint, GLint, GLint); -GLAPI void APIENTRY glWindowPos3ivARB (const GLint *); -GLAPI void APIENTRY glWindowPos3sARB (GLshort, GLshort, GLshort); -GLAPI void APIENTRY glWindowPos3svARB (const GLshort *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLWINDOWPOS2DARBPROC) (GLdouble x, GLdouble y); -typedef void (APIENTRYP PFNGLWINDOWPOS2DVARBPROC) (const GLdouble *v); -typedef void (APIENTRYP PFNGLWINDOWPOS2FARBPROC) (GLfloat x, GLfloat y); -typedef void (APIENTRYP PFNGLWINDOWPOS2FVARBPROC) (const GLfloat *v); -typedef void (APIENTRYP PFNGLWINDOWPOS2IARBPROC) (GLint x, GLint y); -typedef void (APIENTRYP PFNGLWINDOWPOS2IVARBPROC) (const GLint *v); -typedef void (APIENTRYP PFNGLWINDOWPOS2SARBPROC) (GLshort x, GLshort y); -typedef void (APIENTRYP PFNGLWINDOWPOS2SVARBPROC) (const GLshort *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3DARBPROC) (GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLWINDOWPOS3DVARBPROC) (const GLdouble *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3FARBPROC) (GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLWINDOWPOS3FVARBPROC) (const GLfloat *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3IARBPROC) (GLint x, GLint y, GLint z); -typedef void (APIENTRYP PFNGLWINDOWPOS3IVARBPROC) (const GLint *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3SARBPROC) (GLshort x, GLshort y, GLshort z); -typedef void (APIENTRYP PFNGLWINDOWPOS3SVARBPROC) (const GLshort *v); -#endif - -#ifndef GL_ARB_vertex_program -#define GL_ARB_vertex_program 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glVertexAttrib1dARB (GLuint, GLdouble); -GLAPI void APIENTRY glVertexAttrib1dvARB (GLuint, const GLdouble *); -GLAPI void APIENTRY glVertexAttrib1fARB (GLuint, GLfloat); -GLAPI void APIENTRY glVertexAttrib1fvARB (GLuint, const GLfloat *); -GLAPI void APIENTRY glVertexAttrib1sARB (GLuint, GLshort); -GLAPI void APIENTRY glVertexAttrib1svARB (GLuint, const GLshort *); -GLAPI void APIENTRY glVertexAttrib2dARB (GLuint, GLdouble, GLdouble); -GLAPI void APIENTRY glVertexAttrib2dvARB (GLuint, const GLdouble *); -GLAPI void APIENTRY glVertexAttrib2fARB (GLuint, GLfloat, GLfloat); -GLAPI void APIENTRY glVertexAttrib2fvARB (GLuint, const GLfloat *); -GLAPI void APIENTRY glVertexAttrib2sARB (GLuint, GLshort, GLshort); -GLAPI void APIENTRY glVertexAttrib2svARB (GLuint, const GLshort *); -GLAPI void APIENTRY glVertexAttrib3dARB (GLuint, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glVertexAttrib3dvARB (GLuint, const GLdouble *); -GLAPI void APIENTRY glVertexAttrib3fARB (GLuint, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glVertexAttrib3fvARB (GLuint, const GLfloat *); -GLAPI void APIENTRY glVertexAttrib3sARB (GLuint, GLshort, GLshort, GLshort); -GLAPI void APIENTRY glVertexAttrib3svARB (GLuint, const GLshort *); -GLAPI void APIENTRY glVertexAttrib4NbvARB (GLuint, const GLbyte *); -GLAPI void APIENTRY glVertexAttrib4NivARB (GLuint, const GLint *); -GLAPI void APIENTRY glVertexAttrib4NsvARB (GLuint, const GLshort *); -GLAPI void APIENTRY glVertexAttrib4NubARB (GLuint, GLubyte, GLubyte, GLubyte, GLubyte); -GLAPI void APIENTRY glVertexAttrib4NubvARB (GLuint, const GLubyte *); -GLAPI void APIENTRY glVertexAttrib4NuivARB (GLuint, const GLuint *); -GLAPI void APIENTRY glVertexAttrib4NusvARB (GLuint, const GLushort *); -GLAPI void APIENTRY glVertexAttrib4bvARB (GLuint, const GLbyte *); -GLAPI void APIENTRY glVertexAttrib4dARB (GLuint, GLdouble, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glVertexAttrib4dvARB (GLuint, const GLdouble *); -GLAPI void APIENTRY glVertexAttrib4fARB (GLuint, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glVertexAttrib4fvARB (GLuint, const GLfloat *); -GLAPI void APIENTRY glVertexAttrib4ivARB (GLuint, const GLint *); -GLAPI void APIENTRY glVertexAttrib4sARB (GLuint, GLshort, GLshort, GLshort, GLshort); -GLAPI void APIENTRY glVertexAttrib4svARB (GLuint, const GLshort *); -GLAPI void APIENTRY glVertexAttrib4ubvARB (GLuint, const GLubyte *); -GLAPI void APIENTRY glVertexAttrib4uivARB (GLuint, const GLuint *); -GLAPI void APIENTRY glVertexAttrib4usvARB (GLuint, const GLushort *); -GLAPI void APIENTRY glVertexAttribPointerARB (GLuint, GLint, GLenum, GLboolean, GLsizei, const GLvoid *); -GLAPI void APIENTRY glEnableVertexAttribArrayARB (GLuint); -GLAPI void APIENTRY glDisableVertexAttribArrayARB (GLuint); -GLAPI void APIENTRY glProgramStringARB (GLenum, GLenum, GLsizei, const GLvoid *); -GLAPI void APIENTRY glBindProgramARB (GLenum, GLuint); -GLAPI void APIENTRY glDeleteProgramsARB (GLsizei, const GLuint *); -GLAPI void APIENTRY glGenProgramsARB (GLsizei, GLuint *); -GLAPI void APIENTRY glProgramEnvParameter4dARB (GLenum, GLuint, GLdouble, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glProgramEnvParameter4dvARB (GLenum, GLuint, const GLdouble *); -GLAPI void APIENTRY glProgramEnvParameter4fARB (GLenum, GLuint, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glProgramEnvParameter4fvARB (GLenum, GLuint, const GLfloat *); -GLAPI void APIENTRY glProgramLocalParameter4dARB (GLenum, GLuint, GLdouble, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glProgramLocalParameter4dvARB (GLenum, GLuint, const GLdouble *); -GLAPI void APIENTRY glProgramLocalParameter4fARB (GLenum, GLuint, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glProgramLocalParameter4fvARB (GLenum, GLuint, const GLfloat *); -GLAPI void APIENTRY glGetProgramEnvParameterdvARB (GLenum, GLuint, GLdouble *); -GLAPI void APIENTRY glGetProgramEnvParameterfvARB (GLenum, GLuint, GLfloat *); -GLAPI void APIENTRY glGetProgramLocalParameterdvARB (GLenum, GLuint, GLdouble *); -GLAPI void APIENTRY glGetProgramLocalParameterfvARB (GLenum, GLuint, GLfloat *); -GLAPI void APIENTRY glGetProgramivARB (GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetProgramStringARB (GLenum, GLenum, GLvoid *); -GLAPI void APIENTRY glGetVertexAttribdvARB (GLuint, GLenum, GLdouble *); -GLAPI void APIENTRY glGetVertexAttribfvARB (GLuint, GLenum, GLfloat *); -GLAPI void APIENTRY glGetVertexAttribivARB (GLuint, GLenum, GLint *); -GLAPI void APIENTRY glGetVertexAttribPointervARB (GLuint, GLenum, GLvoid* *); -GLAPI GLboolean APIENTRY glIsProgramARB (GLuint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DARBPROC) (GLuint index, GLdouble x); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVARBPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FARBPROC) (GLuint index, GLfloat x); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVARBPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SARBPROC) (GLuint index, GLshort x); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVARBPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DARBPROC) (GLuint index, GLdouble x, GLdouble y); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVARBPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FARBPROC) (GLuint index, GLfloat x, GLfloat y); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVARBPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SARBPROC) (GLuint index, GLshort x, GLshort y); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVARBPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVARBPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVARBPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVARBPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVARBPROC) (GLuint index, const GLbyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVARBPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVARBPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBARBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVARBPROC) (GLuint index, const GLubyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVARBPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVARBPROC) (GLuint index, const GLushort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVARBPROC) (GLuint index, const GLbyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVARBPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVARBPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVARBPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVARBPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVARBPROC) (GLuint index, const GLubyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVARBPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVARBPROC) (GLuint index, const GLushort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERARBPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer); -typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYARBPROC) (GLuint index); -typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYARBPROC) (GLuint index); -typedef void (APIENTRYP PFNGLPROGRAMSTRINGARBPROC) (GLenum target, GLenum format, GLsizei len, const GLvoid *string); -typedef void (APIENTRYP PFNGLBINDPROGRAMARBPROC) (GLenum target, GLuint program); -typedef void (APIENTRYP PFNGLDELETEPROGRAMSARBPROC) (GLsizei n, const GLuint *programs); -typedef void (APIENTRYP PFNGLGENPROGRAMSARBPROC) (GLsizei n, GLuint *programs); -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params); -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params); -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params); -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params); -typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params); -typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params); -typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params); -typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params); -typedef void (APIENTRYP PFNGLGETPROGRAMIVARBPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETPROGRAMSTRINGARBPROC) (GLenum target, GLenum pname, GLvoid *string); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVARBPROC) (GLuint index, GLenum pname, GLdouble *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVARBPROC) (GLuint index, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVARBPROC) (GLuint index, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVARBPROC) (GLuint index, GLenum pname, GLvoid* *pointer); -typedef GLboolean (APIENTRYP PFNGLISPROGRAMARBPROC) (GLuint program); -#endif - -#ifndef GL_ARB_fragment_program -#define GL_ARB_fragment_program 1 -/* All ARB_fragment_program entry points are shared with ARB_vertex_program. */ -#endif - -#ifndef GL_ARB_vertex_buffer_object -#define GL_ARB_vertex_buffer_object 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBindBufferARB (GLenum, GLuint); -GLAPI void APIENTRY glDeleteBuffersARB (GLsizei, const GLuint *); -GLAPI void APIENTRY glGenBuffersARB (GLsizei, GLuint *); -GLAPI GLboolean APIENTRY glIsBufferARB (GLuint); -GLAPI void APIENTRY glBufferDataARB (GLenum, GLsizeiptrARB, const GLvoid *, GLenum); -GLAPI void APIENTRY glBufferSubDataARB (GLenum, GLintptrARB, GLsizeiptrARB, const GLvoid *); -GLAPI void APIENTRY glGetBufferSubDataARB (GLenum, GLintptrARB, GLsizeiptrARB, GLvoid *); -GLAPI GLvoid* APIENTRY glMapBufferARB (GLenum, GLenum); -GLAPI GLboolean APIENTRY glUnmapBufferARB (GLenum); -GLAPI void APIENTRY glGetBufferParameterivARB (GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetBufferPointervARB (GLenum, GLenum, GLvoid* *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBINDBUFFERARBPROC) (GLenum target, GLuint buffer); -typedef void (APIENTRYP PFNGLDELETEBUFFERSARBPROC) (GLsizei n, const GLuint *buffers); -typedef void (APIENTRYP PFNGLGENBUFFERSARBPROC) (GLsizei n, GLuint *buffers); -typedef GLboolean (APIENTRYP PFNGLISBUFFERARBPROC) (GLuint buffer); -typedef void (APIENTRYP PFNGLBUFFERDATAARBPROC) (GLenum target, GLsizeiptrARB size, const GLvoid *data, GLenum usage); -typedef void (APIENTRYP PFNGLBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data); -typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid *data); -typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access); -typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERARBPROC) (GLenum target); -typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVARBPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVARBPROC) (GLenum target, GLenum pname, GLvoid* *params); -#endif - -#ifndef GL_ARB_occlusion_query -#define GL_ARB_occlusion_query 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glGenQueriesARB (GLsizei, GLuint *); -GLAPI void APIENTRY glDeleteQueriesARB (GLsizei, const GLuint *); -GLAPI GLboolean APIENTRY glIsQueryARB (GLuint); -GLAPI void APIENTRY glBeginQueryARB (GLenum, GLuint); -GLAPI void APIENTRY glEndQueryARB (GLenum); -GLAPI void APIENTRY glGetQueryivARB (GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetQueryObjectivARB (GLuint, GLenum, GLint *); -GLAPI void APIENTRY glGetQueryObjectuivARB (GLuint, GLenum, GLuint *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLGENQUERIESARBPROC) (GLsizei n, GLuint *ids); -typedef void (APIENTRYP PFNGLDELETEQUERIESARBPROC) (GLsizei n, const GLuint *ids); -typedef GLboolean (APIENTRYP PFNGLISQUERYARBPROC) (GLuint id); -typedef void (APIENTRYP PFNGLBEGINQUERYARBPROC) (GLenum target, GLuint id); -typedef void (APIENTRYP PFNGLENDQUERYARBPROC) (GLenum target); -typedef void (APIENTRYP PFNGLGETQUERYIVARBPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVARBPROC) (GLuint id, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVARBPROC) (GLuint id, GLenum pname, GLuint *params); -#endif - -#ifndef GL_ARB_shader_objects -#define GL_ARB_shader_objects 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDeleteObjectARB (GLhandleARB); -GLAPI GLhandleARB APIENTRY glGetHandleARB (GLenum); -GLAPI void APIENTRY glDetachObjectARB (GLhandleARB, GLhandleARB); -GLAPI GLhandleARB APIENTRY glCreateShaderObjectARB (GLenum); -GLAPI void APIENTRY glShaderSourceARB (GLhandleARB, GLsizei, const GLcharARB* *, const GLint *); -GLAPI void APIENTRY glCompileShaderARB (GLhandleARB); -GLAPI GLhandleARB APIENTRY glCreateProgramObjectARB (void); -GLAPI void APIENTRY glAttachObjectARB (GLhandleARB, GLhandleARB); -GLAPI void APIENTRY glLinkProgramARB (GLhandleARB); -GLAPI void APIENTRY glUseProgramObjectARB (GLhandleARB); -GLAPI void APIENTRY glValidateProgramARB (GLhandleARB); -GLAPI void APIENTRY glUniform1fARB (GLint, GLfloat); -GLAPI void APIENTRY glUniform2fARB (GLint, GLfloat, GLfloat); -GLAPI void APIENTRY glUniform3fARB (GLint, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glUniform4fARB (GLint, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glUniform1iARB (GLint, GLint); -GLAPI void APIENTRY glUniform2iARB (GLint, GLint, GLint); -GLAPI void APIENTRY glUniform3iARB (GLint, GLint, GLint, GLint); -GLAPI void APIENTRY glUniform4iARB (GLint, GLint, GLint, GLint, GLint); -GLAPI void APIENTRY glUniform1fvARB (GLint, GLsizei, const GLfloat *); -GLAPI void APIENTRY glUniform2fvARB (GLint, GLsizei, const GLfloat *); -GLAPI void APIENTRY glUniform3fvARB (GLint, GLsizei, const GLfloat *); -GLAPI void APIENTRY glUniform4fvARB (GLint, GLsizei, const GLfloat *); -GLAPI void APIENTRY glUniform1ivARB (GLint, GLsizei, const GLint *); -GLAPI void APIENTRY glUniform2ivARB (GLint, GLsizei, const GLint *); -GLAPI void APIENTRY glUniform3ivARB (GLint, GLsizei, const GLint *); -GLAPI void APIENTRY glUniform4ivARB (GLint, GLsizei, const GLint *); -GLAPI void APIENTRY glUniformMatrix2fvARB (GLint, GLsizei, GLboolean, const GLfloat *); -GLAPI void APIENTRY glUniformMatrix3fvARB (GLint, GLsizei, GLboolean, const GLfloat *); -GLAPI void APIENTRY glUniformMatrix4fvARB (GLint, GLsizei, GLboolean, const GLfloat *); -GLAPI void APIENTRY glGetObjectParameterfvARB (GLhandleARB, GLenum, GLfloat *); -GLAPI void APIENTRY glGetObjectParameterivARB (GLhandleARB, GLenum, GLint *); -GLAPI void APIENTRY glGetInfoLogARB (GLhandleARB, GLsizei, GLsizei *, GLcharARB *); -GLAPI void APIENTRY glGetAttachedObjectsARB (GLhandleARB, GLsizei, GLsizei *, GLhandleARB *); -GLAPI GLint APIENTRY glGetUniformLocationARB (GLhandleARB, const GLcharARB *); -GLAPI void APIENTRY glGetActiveUniformARB (GLhandleARB, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLcharARB *); -GLAPI void APIENTRY glGetUniformfvARB (GLhandleARB, GLint, GLfloat *); -GLAPI void APIENTRY glGetUniformivARB (GLhandleARB, GLint, GLint *); -GLAPI void APIENTRY glGetShaderSourceARB (GLhandleARB, GLsizei, GLsizei *, GLcharARB *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLDELETEOBJECTARBPROC) (GLhandleARB obj); -typedef GLhandleARB (APIENTRYP PFNGLGETHANDLEARBPROC) (GLenum pname); -typedef void (APIENTRYP PFNGLDETACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB attachedObj); -typedef GLhandleARB (APIENTRYP PFNGLCREATESHADEROBJECTARBPROC) (GLenum shaderType); -typedef void (APIENTRYP PFNGLSHADERSOURCEARBPROC) (GLhandleARB shaderObj, GLsizei count, const GLcharARB* *string, const GLint *length); -typedef void (APIENTRYP PFNGLCOMPILESHADERARBPROC) (GLhandleARB shaderObj); -typedef GLhandleARB (APIENTRYP PFNGLCREATEPROGRAMOBJECTARBPROC) (void); -typedef void (APIENTRYP PFNGLATTACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB obj); -typedef void (APIENTRYP PFNGLLINKPROGRAMARBPROC) (GLhandleARB programObj); -typedef void (APIENTRYP PFNGLUSEPROGRAMOBJECTARBPROC) (GLhandleARB programObj); -typedef void (APIENTRYP PFNGLVALIDATEPROGRAMARBPROC) (GLhandleARB programObj); -typedef void (APIENTRYP PFNGLUNIFORM1FARBPROC) (GLint location, GLfloat v0); -typedef void (APIENTRYP PFNGLUNIFORM2FARBPROC) (GLint location, GLfloat v0, GLfloat v1); -typedef void (APIENTRYP PFNGLUNIFORM3FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -typedef void (APIENTRYP PFNGLUNIFORM4FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -typedef void (APIENTRYP PFNGLUNIFORM1IARBPROC) (GLint location, GLint v0); -typedef void (APIENTRYP PFNGLUNIFORM2IARBPROC) (GLint location, GLint v0, GLint v1); -typedef void (APIENTRYP PFNGLUNIFORM3IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2); -typedef void (APIENTRYP PFNGLUNIFORM4IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -typedef void (APIENTRYP PFNGLUNIFORM1FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORM2FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORM3FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORM4FVARBPROC) (GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORM1IVARBPROC) (GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLUNIFORM2IVARBPROC) (GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLUNIFORM3IVARBPROC) (GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLUNIFORM4IVARBPROC) (GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERFVARBPROC) (GLhandleARB obj, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERIVARBPROC) (GLhandleARB obj, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETINFOLOGARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog); -typedef void (APIENTRYP PFNGLGETATTACHEDOBJECTSARBPROC) (GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj); -typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB *name); -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name); -typedef void (APIENTRYP PFNGLGETUNIFORMFVARBPROC) (GLhandleARB programObj, GLint location, GLfloat *params); -typedef void (APIENTRYP PFNGLGETUNIFORMIVARBPROC) (GLhandleARB programObj, GLint location, GLint *params); -typedef void (APIENTRYP PFNGLGETSHADERSOURCEARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source); -#endif - -#ifndef GL_ARB_vertex_shader -#define GL_ARB_vertex_shader 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBindAttribLocationARB (GLhandleARB, GLuint, const GLcharARB *); -GLAPI void APIENTRY glGetActiveAttribARB (GLhandleARB, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLcharARB *); -GLAPI GLint APIENTRY glGetAttribLocationARB (GLhandleARB, const GLcharARB *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONARBPROC) (GLhandleARB programObj, GLuint index, const GLcharARB *name); -typedef void (APIENTRYP PFNGLGETACTIVEATTRIBARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name); -typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB *name); -#endif - -#ifndef GL_ARB_fragment_shader -#define GL_ARB_fragment_shader 1 -#endif - -#ifndef GL_ARB_shading_language_100 -#define GL_ARB_shading_language_100 1 -#endif - -#ifndef GL_ARB_texture_non_power_of_two -#define GL_ARB_texture_non_power_of_two 1 -#endif - -#ifndef GL_ARB_point_sprite -#define GL_ARB_point_sprite 1 -#endif - -#ifndef GL_ARB_fragment_program_shadow -#define GL_ARB_fragment_program_shadow 1 -#endif - -#ifndef GL_ARB_draw_buffers -#define GL_ARB_draw_buffers 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDrawBuffersARB (GLsizei, const GLenum *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLDRAWBUFFERSARBPROC) (GLsizei n, const GLenum *bufs); -#endif - -#ifndef GL_ARB_texture_rectangle -#define GL_ARB_texture_rectangle 1 -#endif - -#ifndef GL_ARB_color_buffer_float -#define GL_ARB_color_buffer_float 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glClampColorARB (GLenum, GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLCLAMPCOLORARBPROC) (GLenum target, GLenum clamp); -#endif - -#ifndef GL_ARB_half_float_pixel -#define GL_ARB_half_float_pixel 1 -#endif - -#ifndef GL_ARB_texture_float -#define GL_ARB_texture_float 1 -#endif - -#ifndef GL_ARB_pixel_buffer_object -#define GL_ARB_pixel_buffer_object 1 -#endif - -#ifndef GL_ARB_depth_buffer_float -#define GL_ARB_depth_buffer_float 1 -#endif - -#ifndef GL_ARB_draw_instanced -#define GL_ARB_draw_instanced 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDrawArraysInstancedARB (GLenum, GLint, GLsizei, GLsizei); -GLAPI void APIENTRY glDrawElementsInstancedARB (GLenum, GLsizei, GLenum, const GLvoid *, GLsizei); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDARBPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount); -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDARBPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount); -#endif - -#ifndef GL_ARB_framebuffer_object -#define GL_ARB_framebuffer_object 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI GLboolean APIENTRY glIsRenderbuffer (GLuint); -GLAPI void APIENTRY glBindRenderbuffer (GLenum, GLuint); -GLAPI void APIENTRY glDeleteRenderbuffers (GLsizei, const GLuint *); -GLAPI void APIENTRY glGenRenderbuffers (GLsizei, GLuint *); -GLAPI void APIENTRY glRenderbufferStorage (GLenum, GLenum, GLsizei, GLsizei); -GLAPI void APIENTRY glGetRenderbufferParameteriv (GLenum, GLenum, GLint *); -GLAPI GLboolean APIENTRY glIsFramebuffer (GLuint); -GLAPI void APIENTRY glBindFramebuffer (GLenum, GLuint); -GLAPI void APIENTRY glDeleteFramebuffers (GLsizei, const GLuint *); -GLAPI void APIENTRY glGenFramebuffers (GLsizei, GLuint *); -GLAPI GLenum APIENTRY glCheckFramebufferStatus (GLenum); -GLAPI void APIENTRY glFramebufferTexture1D (GLenum, GLenum, GLenum, GLuint, GLint); -GLAPI void APIENTRY glFramebufferTexture2D (GLenum, GLenum, GLenum, GLuint, GLint); -GLAPI void APIENTRY glFramebufferTexture3D (GLenum, GLenum, GLenum, GLuint, GLint, GLint); -GLAPI void APIENTRY glFramebufferRenderbuffer (GLenum, GLenum, GLenum, GLuint); -GLAPI void APIENTRY glGetFramebufferAttachmentParameteriv (GLenum, GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGenerateMipmap (GLenum); -GLAPI void APIENTRY glBlitFramebuffer (GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum); -GLAPI void APIENTRY glRenderbufferStorageMultisample (GLenum, GLsizei, GLenum, GLsizei, GLsizei); -GLAPI void APIENTRY glFramebufferTextureLayer (GLenum, GLenum, GLuint, GLint, GLint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer); -typedef void (APIENTRYP PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer); -typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers); -typedef void (APIENTRYP PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers); -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer); -typedef void (APIENTRYP PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer); -typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers); -typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers); -typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); -typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGENERATEMIPMAPPROC) (GLenum target); -typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); -#endif - -#ifndef GL_ARB_framebuffer_sRGB -#define GL_ARB_framebuffer_sRGB 1 -#endif - -#ifndef GL_ARB_geometry_shader4 -#define GL_ARB_geometry_shader4 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glProgramParameteriARB (GLuint, GLenum, GLint); -GLAPI void APIENTRY glFramebufferTextureARB (GLenum, GLenum, GLuint, GLint); -GLAPI void APIENTRY glFramebufferTextureLayerARB (GLenum, GLenum, GLuint, GLint, GLint); -GLAPI void APIENTRY glFramebufferTextureFaceARB (GLenum, GLenum, GLuint, GLint, GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIARBPROC) (GLuint program, GLenum pname, GLint value); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREFACEARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); -#endif - -#ifndef GL_ARB_half_float_vertex -#define GL_ARB_half_float_vertex 1 -#endif - -#ifndef GL_ARB_instanced_arrays -#define GL_ARB_instanced_arrays 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glVertexAttribDivisor (GLuint, GLuint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORPROC) (GLuint index, GLuint divisor); -#endif - -#ifndef GL_ARB_map_buffer_range -#define GL_ARB_map_buffer_range 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glMapBufferRange (GLenum, GLintptr, GLsizeiptr, GLbitfield); -GLAPI void APIENTRY glFlushMappedBufferRange (GLenum, GLintptr, GLsizeiptr); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); -typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length); -#endif - -#ifndef GL_ARB_texture_buffer_object -#define GL_ARB_texture_buffer_object 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTexBufferARB (GLenum, GLenum, GLuint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLTEXBUFFERARBPROC) (GLenum target, GLenum internalformat, GLuint buffer); -#endif - -#ifndef GL_ARB_texture_compression_rgtc -#define GL_ARB_texture_compression_rgtc 1 -#endif - -#ifndef GL_ARB_texture_rg -#define GL_ARB_texture_rg 1 -#endif - -#ifndef GL_ARB_vertex_array_object -#define GL_ARB_vertex_array_object 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBindVertexArray (GLuint); -GLAPI void APIENTRY glDeleteVertexArrays (GLsizei, const GLuint *); -GLAPI void APIENTRY glGenVertexArrays (GLsizei, GLuint *); -GLAPI GLboolean APIENTRY glIsVertexArray (GLuint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBINDVERTEXARRAYPROC) (GLuint array); -typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint *arrays); -typedef void (APIENTRYP PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays); -typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYPROC) (GLuint array); -#endif - -#ifndef GL_EXT_abgr -#define GL_EXT_abgr 1 -#endif - -#ifndef GL_EXT_blend_color -#define GL_EXT_blend_color 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBlendColorEXT (GLclampf, GLclampf, GLclampf, GLclampf); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBLENDCOLOREXTPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); -#endif - -#ifndef GL_EXT_polygon_offset -#define GL_EXT_polygon_offset 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glPolygonOffsetEXT (GLfloat, GLfloat); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLPOLYGONOFFSETEXTPROC) (GLfloat factor, GLfloat bias); -#endif - -#ifndef GL_EXT_texture -#define GL_EXT_texture 1 -#endif - -#ifndef GL_EXT_texture3D -#define GL_EXT_texture3D 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTexImage3DEXT (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glTexSubImage3DEXT (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLTEXIMAGE3DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels); -#endif - -#ifndef GL_SGIS_texture_filter4 -#define GL_SGIS_texture_filter4 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glGetTexFilterFuncSGIS (GLenum, GLenum, GLfloat *); -GLAPI void APIENTRY glTexFilterFuncSGIS (GLenum, GLenum, GLsizei, const GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLGETTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLfloat *weights); -typedef void (APIENTRYP PFNGLTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLsizei n, const GLfloat *weights); -#endif - -#ifndef GL_EXT_subtexture -#define GL_EXT_subtexture 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTexSubImage1DEXT (GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glTexSubImage2DEXT (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRYP PFNGLTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); -#endif - -#ifndef GL_EXT_copy_texture -#define GL_EXT_copy_texture 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glCopyTexImage1DEXT (GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint); -GLAPI void APIENTRY glCopyTexImage2DEXT (GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint); -GLAPI void APIENTRY glCopyTexSubImage1DEXT (GLenum, GLint, GLint, GLint, GLint, GLsizei); -GLAPI void APIENTRY glCopyTexSubImage2DEXT (GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); -GLAPI void APIENTRY glCopyTexSubImage3DEXT (GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLCOPYTEXIMAGE1DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -typedef void (APIENTRYP PFNGLCOPYTEXIMAGE2DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -#endif - -#ifndef GL_EXT_histogram -#define GL_EXT_histogram 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glGetHistogramEXT (GLenum, GLboolean, GLenum, GLenum, GLvoid *); -GLAPI void APIENTRY glGetHistogramParameterfvEXT (GLenum, GLenum, GLfloat *); -GLAPI void APIENTRY glGetHistogramParameterivEXT (GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetMinmaxEXT (GLenum, GLboolean, GLenum, GLenum, GLvoid *); -GLAPI void APIENTRY glGetMinmaxParameterfvEXT (GLenum, GLenum, GLfloat *); -GLAPI void APIENTRY glGetMinmaxParameterivEXT (GLenum, GLenum, GLint *); -GLAPI void APIENTRY glHistogramEXT (GLenum, GLsizei, GLenum, GLboolean); -GLAPI void APIENTRY glMinmaxEXT (GLenum, GLenum, GLboolean); -GLAPI void APIENTRY glResetHistogramEXT (GLenum); -GLAPI void APIENTRY glResetMinmaxEXT (GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLGETHISTOGRAMEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); -typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETMINMAXEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); -typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLHISTOGRAMEXTPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); -typedef void (APIENTRYP PFNGLMINMAXEXTPROC) (GLenum target, GLenum internalformat, GLboolean sink); -typedef void (APIENTRYP PFNGLRESETHISTOGRAMEXTPROC) (GLenum target); -typedef void (APIENTRYP PFNGLRESETMINMAXEXTPROC) (GLenum target); -#endif - -#ifndef GL_EXT_convolution -#define GL_EXT_convolution 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glConvolutionFilter1DEXT (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glConvolutionFilter2DEXT (GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glConvolutionParameterfEXT (GLenum, GLenum, GLfloat); -GLAPI void APIENTRY glConvolutionParameterfvEXT (GLenum, GLenum, const GLfloat *); -GLAPI void APIENTRY glConvolutionParameteriEXT (GLenum, GLenum, GLint); -GLAPI void APIENTRY glConvolutionParameterivEXT (GLenum, GLenum, const GLint *); -GLAPI void APIENTRY glCopyConvolutionFilter1DEXT (GLenum, GLenum, GLint, GLint, GLsizei); -GLAPI void APIENTRY glCopyConvolutionFilter2DEXT (GLenum, GLenum, GLint, GLint, GLsizei, GLsizei); -GLAPI void APIENTRY glGetConvolutionFilterEXT (GLenum, GLenum, GLenum, GLvoid *); -GLAPI void APIENTRY glGetConvolutionParameterfvEXT (GLenum, GLenum, GLfloat *); -GLAPI void APIENTRY glGetConvolutionParameterivEXT (GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetSeparableFilterEXT (GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *); -GLAPI void APIENTRY glSeparableFilter2DEXT (GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image); -typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image); -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat params); -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint params); -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image); -typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETSEPARABLEFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span); -typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column); -#endif - -#ifndef GL_SGI_color_matrix -#define GL_SGI_color_matrix 1 -#endif - -#ifndef GL_SGI_color_table -#define GL_SGI_color_table 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glColorTableSGI (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glColorTableParameterfvSGI (GLenum, GLenum, const GLfloat *); -GLAPI void APIENTRY glColorTableParameterivSGI (GLenum, GLenum, const GLint *); -GLAPI void APIENTRY glCopyColorTableSGI (GLenum, GLenum, GLint, GLint, GLsizei); -GLAPI void APIENTRY glGetColorTableSGI (GLenum, GLenum, GLenum, GLvoid *); -GLAPI void APIENTRY glGetColorTableParameterfvSGI (GLenum, GLenum, GLfloat *); -GLAPI void APIENTRY glGetColorTableParameterivSGI (GLenum, GLenum, GLint *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); -typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLCOPYCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -typedef void (APIENTRYP PFNGLGETCOLORTABLESGIPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table); -typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, GLint *params); -#endif - -#ifndef GL_SGIX_pixel_texture -#define GL_SGIX_pixel_texture 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glPixelTexGenSGIX (GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLPIXELTEXGENSGIXPROC) (GLenum mode); -#endif - -#ifndef GL_SGIS_pixel_texture -#define GL_SGIS_pixel_texture 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glPixelTexGenParameteriSGIS (GLenum, GLint); -GLAPI void APIENTRY glPixelTexGenParameterivSGIS (GLenum, const GLint *); -GLAPI void APIENTRY glPixelTexGenParameterfSGIS (GLenum, GLfloat); -GLAPI void APIENTRY glPixelTexGenParameterfvSGIS (GLenum, const GLfloat *); -GLAPI void APIENTRY glGetPixelTexGenParameterivSGIS (GLenum, GLint *); -GLAPI void APIENTRY glGetPixelTexGenParameterfvSGIS (GLenum, GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERISGISPROC) (GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERFSGISPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLGETPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, GLfloat *params); -#endif - -#ifndef GL_SGIS_texture4D -#define GL_SGIS_texture4D 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTexImage4DSGIS (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glTexSubImage4DSGIS (GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLTEXIMAGE4DSGISPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLint border, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRYP PFNGLTEXSUBIMAGE4DSGISPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLenum format, GLenum type, const GLvoid *pixels); -#endif - -#ifndef GL_SGI_texture_color_table -#define GL_SGI_texture_color_table 1 -#endif - -#ifndef GL_EXT_cmyka -#define GL_EXT_cmyka 1 -#endif - -#ifndef GL_EXT_texture_object -#define GL_EXT_texture_object 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI GLboolean APIENTRY glAreTexturesResidentEXT (GLsizei, const GLuint *, GLboolean *); -GLAPI void APIENTRY glBindTextureEXT (GLenum, GLuint); -GLAPI void APIENTRY glDeleteTexturesEXT (GLsizei, const GLuint *); -GLAPI void APIENTRY glGenTexturesEXT (GLsizei, GLuint *); -GLAPI GLboolean APIENTRY glIsTextureEXT (GLuint); -GLAPI void APIENTRY glPrioritizeTexturesEXT (GLsizei, const GLuint *, const GLclampf *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef GLboolean (APIENTRYP PFNGLARETEXTURESRESIDENTEXTPROC) (GLsizei n, const GLuint *textures, GLboolean *residences); -typedef void (APIENTRYP PFNGLBINDTEXTUREEXTPROC) (GLenum target, GLuint texture); -typedef void (APIENTRYP PFNGLDELETETEXTURESEXTPROC) (GLsizei n, const GLuint *textures); -typedef void (APIENTRYP PFNGLGENTEXTURESEXTPROC) (GLsizei n, GLuint *textures); -typedef GLboolean (APIENTRYP PFNGLISTEXTUREEXTPROC) (GLuint texture); -typedef void (APIENTRYP PFNGLPRIORITIZETEXTURESEXTPROC) (GLsizei n, const GLuint *textures, const GLclampf *priorities); -#endif - -#ifndef GL_SGIS_detail_texture -#define GL_SGIS_detail_texture 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDetailTexFuncSGIS (GLenum, GLsizei, const GLfloat *); -GLAPI void APIENTRY glGetDetailTexFuncSGIS (GLenum, GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLDETAILTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points); -typedef void (APIENTRYP PFNGLGETDETAILTEXFUNCSGISPROC) (GLenum target, GLfloat *points); -#endif - -#ifndef GL_SGIS_sharpen_texture -#define GL_SGIS_sharpen_texture 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glSharpenTexFuncSGIS (GLenum, GLsizei, const GLfloat *); -GLAPI void APIENTRY glGetSharpenTexFuncSGIS (GLenum, GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLSHARPENTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points); -typedef void (APIENTRYP PFNGLGETSHARPENTEXFUNCSGISPROC) (GLenum target, GLfloat *points); -#endif - -#ifndef GL_EXT_packed_pixels -#define GL_EXT_packed_pixels 1 -#endif - -#ifndef GL_SGIS_texture_lod -#define GL_SGIS_texture_lod 1 -#endif - -#ifndef GL_SGIS_multisample -#define GL_SGIS_multisample 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glSampleMaskSGIS (GLclampf, GLboolean); -GLAPI void APIENTRY glSamplePatternSGIS (GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLSAMPLEMASKSGISPROC) (GLclampf value, GLboolean invert); -typedef void (APIENTRYP PFNGLSAMPLEPATTERNSGISPROC) (GLenum pattern); -#endif - -#ifndef GL_EXT_rescale_normal -#define GL_EXT_rescale_normal 1 -#endif - -#ifndef GL_EXT_vertex_array -#define GL_EXT_vertex_array 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glArrayElementEXT (GLint); -GLAPI void APIENTRY glColorPointerEXT (GLint, GLenum, GLsizei, GLsizei, const GLvoid *); -GLAPI void APIENTRY glDrawArraysEXT (GLenum, GLint, GLsizei); -GLAPI void APIENTRY glEdgeFlagPointerEXT (GLsizei, GLsizei, const GLboolean *); -GLAPI void APIENTRY glGetPointervEXT (GLenum, GLvoid* *); -GLAPI void APIENTRY glIndexPointerEXT (GLenum, GLsizei, GLsizei, const GLvoid *); -GLAPI void APIENTRY glNormalPointerEXT (GLenum, GLsizei, GLsizei, const GLvoid *); -GLAPI void APIENTRY glTexCoordPointerEXT (GLint, GLenum, GLsizei, GLsizei, const GLvoid *); -GLAPI void APIENTRY glVertexPointerEXT (GLint, GLenum, GLsizei, GLsizei, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLARRAYELEMENTEXTPROC) (GLint i); -typedef void (APIENTRYP PFNGLCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); -typedef void (APIENTRYP PFNGLDRAWARRAYSEXTPROC) (GLenum mode, GLint first, GLsizei count); -typedef void (APIENTRYP PFNGLEDGEFLAGPOINTEREXTPROC) (GLsizei stride, GLsizei count, const GLboolean *pointer); -typedef void (APIENTRYP PFNGLGETPOINTERVEXTPROC) (GLenum pname, GLvoid* *params); -typedef void (APIENTRYP PFNGLINDEXPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); -typedef void (APIENTRYP PFNGLNORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); -typedef void (APIENTRYP PFNGLTEXCOORDPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); -typedef void (APIENTRYP PFNGLVERTEXPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); -#endif - -#ifndef GL_EXT_misc_attribute -#define GL_EXT_misc_attribute 1 -#endif - -#ifndef GL_SGIS_generate_mipmap -#define GL_SGIS_generate_mipmap 1 -#endif - -#ifndef GL_SGIX_clipmap -#define GL_SGIX_clipmap 1 -#endif - -#ifndef GL_SGIX_shadow -#define GL_SGIX_shadow 1 -#endif - -#ifndef GL_SGIS_texture_edge_clamp -#define GL_SGIS_texture_edge_clamp 1 -#endif - -#ifndef GL_SGIS_texture_border_clamp -#define GL_SGIS_texture_border_clamp 1 -#endif - -#ifndef GL_EXT_blend_minmax -#define GL_EXT_blend_minmax 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBlendEquationEXT (GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBLENDEQUATIONEXTPROC) (GLenum mode); -#endif - -#ifndef GL_EXT_blend_subtract -#define GL_EXT_blend_subtract 1 -#endif - -#ifndef GL_EXT_blend_logic_op -#define GL_EXT_blend_logic_op 1 -#endif - -#ifndef GL_SGIX_interlace -#define GL_SGIX_interlace 1 -#endif - -#ifndef GL_SGIX_pixel_tiles -#define GL_SGIX_pixel_tiles 1 -#endif - -#ifndef GL_SGIX_texture_select -#define GL_SGIX_texture_select 1 -#endif - -#ifndef GL_SGIX_sprite -#define GL_SGIX_sprite 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glSpriteParameterfSGIX (GLenum, GLfloat); -GLAPI void APIENTRY glSpriteParameterfvSGIX (GLenum, const GLfloat *); -GLAPI void APIENTRY glSpriteParameteriSGIX (GLenum, GLint); -GLAPI void APIENTRY glSpriteParameterivSGIX (GLenum, const GLint *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLSPRITEPARAMETERFSGIXPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLSPRITEPARAMETERFVSGIXPROC) (GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLSPRITEPARAMETERISGIXPROC) (GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLSPRITEPARAMETERIVSGIXPROC) (GLenum pname, const GLint *params); -#endif - -#ifndef GL_SGIX_texture_multi_buffer -#define GL_SGIX_texture_multi_buffer 1 -#endif - -#ifndef GL_EXT_point_parameters -#define GL_EXT_point_parameters 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glPointParameterfEXT (GLenum, GLfloat); -GLAPI void APIENTRY glPointParameterfvEXT (GLenum, const GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLPOINTPARAMETERFEXTPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLPOINTPARAMETERFVEXTPROC) (GLenum pname, const GLfloat *params); -#endif - -#ifndef GL_SGIS_point_parameters -#define GL_SGIS_point_parameters 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glPointParameterfSGIS (GLenum, GLfloat); -GLAPI void APIENTRY glPointParameterfvSGIS (GLenum, const GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLPOINTPARAMETERFSGISPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLPOINTPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params); -#endif - -#ifndef GL_SGIX_instruments -#define GL_SGIX_instruments 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI GLint APIENTRY glGetInstrumentsSGIX (void); -GLAPI void APIENTRY glInstrumentsBufferSGIX (GLsizei, GLint *); -GLAPI GLint APIENTRY glPollInstrumentsSGIX (GLint *); -GLAPI void APIENTRY glReadInstrumentsSGIX (GLint); -GLAPI void APIENTRY glStartInstrumentsSGIX (void); -GLAPI void APIENTRY glStopInstrumentsSGIX (GLint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef GLint (APIENTRYP PFNGLGETINSTRUMENTSSGIXPROC) (void); -typedef void (APIENTRYP PFNGLINSTRUMENTSBUFFERSGIXPROC) (GLsizei size, GLint *buffer); -typedef GLint (APIENTRYP PFNGLPOLLINSTRUMENTSSGIXPROC) (GLint *marker_p); -typedef void (APIENTRYP PFNGLREADINSTRUMENTSSGIXPROC) (GLint marker); -typedef void (APIENTRYP PFNGLSTARTINSTRUMENTSSGIXPROC) (void); -typedef void (APIENTRYP PFNGLSTOPINSTRUMENTSSGIXPROC) (GLint marker); -#endif - -#ifndef GL_SGIX_texture_scale_bias -#define GL_SGIX_texture_scale_bias 1 -#endif - -#ifndef GL_SGIX_framezoom -#define GL_SGIX_framezoom 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glFrameZoomSGIX (GLint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLFRAMEZOOMSGIXPROC) (GLint factor); -#endif - -#ifndef GL_SGIX_tag_sample_buffer -#define GL_SGIX_tag_sample_buffer 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTagSampleBufferSGIX (void); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLTAGSAMPLEBUFFERSGIXPROC) (void); -#endif - -#ifndef GL_SGIX_polynomial_ffd -#define GL_SGIX_polynomial_ffd 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDeformationMap3dSGIX (GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *); -GLAPI void APIENTRY glDeformationMap3fSGIX (GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *); -GLAPI void APIENTRY glDeformSGIX (GLbitfield); -GLAPI void APIENTRY glLoadIdentityDeformationMapSGIX (GLbitfield); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLDEFORMATIONMAP3DSGIXPROC) (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, GLdouble w1, GLdouble w2, GLint wstride, GLint worder, const GLdouble *points); -typedef void (APIENTRYP PFNGLDEFORMATIONMAP3FSGIXPROC) (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, GLfloat w1, GLfloat w2, GLint wstride, GLint worder, const GLfloat *points); -typedef void (APIENTRYP PFNGLDEFORMSGIXPROC) (GLbitfield mask); -typedef void (APIENTRYP PFNGLLOADIDENTITYDEFORMATIONMAPSGIXPROC) (GLbitfield mask); -#endif - -#ifndef GL_SGIX_reference_plane -#define GL_SGIX_reference_plane 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glReferencePlaneSGIX (const GLdouble *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLREFERENCEPLANESGIXPROC) (const GLdouble *equation); -#endif - -#ifndef GL_SGIX_flush_raster -#define GL_SGIX_flush_raster 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glFlushRasterSGIX (void); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLFLUSHRASTERSGIXPROC) (void); -#endif - -#ifndef GL_SGIX_depth_texture -#define GL_SGIX_depth_texture 1 -#endif - -#ifndef GL_SGIS_fog_function -#define GL_SGIS_fog_function 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glFogFuncSGIS (GLsizei, const GLfloat *); -GLAPI void APIENTRY glGetFogFuncSGIS (GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLFOGFUNCSGISPROC) (GLsizei n, const GLfloat *points); -typedef void (APIENTRYP PFNGLGETFOGFUNCSGISPROC) (GLfloat *points); -#endif - -#ifndef GL_SGIX_fog_offset -#define GL_SGIX_fog_offset 1 -#endif - -#ifndef GL_HP_image_transform -#define GL_HP_image_transform 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glImageTransformParameteriHP (GLenum, GLenum, GLint); -GLAPI void APIENTRY glImageTransformParameterfHP (GLenum, GLenum, GLfloat); -GLAPI void APIENTRY glImageTransformParameterivHP (GLenum, GLenum, const GLint *); -GLAPI void APIENTRY glImageTransformParameterfvHP (GLenum, GLenum, const GLfloat *); -GLAPI void APIENTRY glGetImageTransformParameterivHP (GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetImageTransformParameterfvHP (GLenum, GLenum, GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERIHPPROC) (GLenum target, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERFHPPROC) (GLenum target, GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, GLfloat *params); -#endif - -#ifndef GL_HP_convolution_border_modes -#define GL_HP_convolution_border_modes 1 -#endif - -#ifndef GL_SGIX_texture_add_env -#define GL_SGIX_texture_add_env 1 -#endif - -#ifndef GL_EXT_color_subtable -#define GL_EXT_color_subtable 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glColorSubTableEXT (GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glCopyColorSubTableEXT (GLenum, GLsizei, GLint, GLint, GLsizei); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data); -typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); -#endif - -#ifndef GL_PGI_vertex_hints -#define GL_PGI_vertex_hints 1 -#endif - -#ifndef GL_PGI_misc_hints -#define GL_PGI_misc_hints 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glHintPGI (GLenum, GLint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLHINTPGIPROC) (GLenum target, GLint mode); -#endif - -#ifndef GL_EXT_paletted_texture -#define GL_EXT_paletted_texture 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glColorTableEXT (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glGetColorTableEXT (GLenum, GLenum, GLenum, GLvoid *); -GLAPI void APIENTRY glGetColorTableParameterivEXT (GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetColorTableParameterfvEXT (GLenum, GLenum, GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLCOLORTABLEEXTPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); -typedef void (APIENTRYP PFNGLGETCOLORTABLEEXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *data); -typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); -#endif - -#ifndef GL_EXT_clip_volume_hint -#define GL_EXT_clip_volume_hint 1 -#endif - -#ifndef GL_SGIX_list_priority -#define GL_SGIX_list_priority 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glGetListParameterfvSGIX (GLuint, GLenum, GLfloat *); -GLAPI void APIENTRY glGetListParameterivSGIX (GLuint, GLenum, GLint *); -GLAPI void APIENTRY glListParameterfSGIX (GLuint, GLenum, GLfloat); -GLAPI void APIENTRY glListParameterfvSGIX (GLuint, GLenum, const GLfloat *); -GLAPI void APIENTRY glListParameteriSGIX (GLuint, GLenum, GLint); -GLAPI void APIENTRY glListParameterivSGIX (GLuint, GLenum, const GLint *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLGETLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLLISTPARAMETERFSGIXPROC) (GLuint list, GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLLISTPARAMETERISGIXPROC) (GLuint list, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, const GLint *params); -#endif - -#ifndef GL_SGIX_ir_instrument1 -#define GL_SGIX_ir_instrument1 1 -#endif - -#ifndef GL_SGIX_calligraphic_fragment -#define GL_SGIX_calligraphic_fragment 1 -#endif - -#ifndef GL_SGIX_texture_lod_bias -#define GL_SGIX_texture_lod_bias 1 -#endif - -#ifndef GL_SGIX_shadow_ambient -#define GL_SGIX_shadow_ambient 1 -#endif - -#ifndef GL_EXT_index_texture -#define GL_EXT_index_texture 1 -#endif - -#ifndef GL_EXT_index_material -#define GL_EXT_index_material 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glIndexMaterialEXT (GLenum, GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLINDEXMATERIALEXTPROC) (GLenum face, GLenum mode); -#endif - -#ifndef GL_EXT_index_func -#define GL_EXT_index_func 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glIndexFuncEXT (GLenum, GLclampf); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLINDEXFUNCEXTPROC) (GLenum func, GLclampf ref); -#endif - -#ifndef GL_EXT_index_array_formats -#define GL_EXT_index_array_formats 1 -#endif - -#ifndef GL_EXT_compiled_vertex_array -#define GL_EXT_compiled_vertex_array 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glLockArraysEXT (GLint, GLsizei); -GLAPI void APIENTRY glUnlockArraysEXT (void); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLLOCKARRAYSEXTPROC) (GLint first, GLsizei count); -typedef void (APIENTRYP PFNGLUNLOCKARRAYSEXTPROC) (void); -#endif - -#ifndef GL_EXT_cull_vertex -#define GL_EXT_cull_vertex 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glCullParameterdvEXT (GLenum, GLdouble *); -GLAPI void APIENTRY glCullParameterfvEXT (GLenum, GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLCULLPARAMETERDVEXTPROC) (GLenum pname, GLdouble *params); -typedef void (APIENTRYP PFNGLCULLPARAMETERFVEXTPROC) (GLenum pname, GLfloat *params); -#endif - -#ifndef GL_SGIX_ycrcb -#define GL_SGIX_ycrcb 1 -#endif - -#ifndef GL_SGIX_fragment_lighting -#define GL_SGIX_fragment_lighting 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glFragmentColorMaterialSGIX (GLenum, GLenum); -GLAPI void APIENTRY glFragmentLightfSGIX (GLenum, GLenum, GLfloat); -GLAPI void APIENTRY glFragmentLightfvSGIX (GLenum, GLenum, const GLfloat *); -GLAPI void APIENTRY glFragmentLightiSGIX (GLenum, GLenum, GLint); -GLAPI void APIENTRY glFragmentLightivSGIX (GLenum, GLenum, const GLint *); -GLAPI void APIENTRY glFragmentLightModelfSGIX (GLenum, GLfloat); -GLAPI void APIENTRY glFragmentLightModelfvSGIX (GLenum, const GLfloat *); -GLAPI void APIENTRY glFragmentLightModeliSGIX (GLenum, GLint); -GLAPI void APIENTRY glFragmentLightModelivSGIX (GLenum, const GLint *); -GLAPI void APIENTRY glFragmentMaterialfSGIX (GLenum, GLenum, GLfloat); -GLAPI void APIENTRY glFragmentMaterialfvSGIX (GLenum, GLenum, const GLfloat *); -GLAPI void APIENTRY glFragmentMaterialiSGIX (GLenum, GLenum, GLint); -GLAPI void APIENTRY glFragmentMaterialivSGIX (GLenum, GLenum, const GLint *); -GLAPI void APIENTRY glGetFragmentLightfvSGIX (GLenum, GLenum, GLfloat *); -GLAPI void APIENTRY glGetFragmentLightivSGIX (GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetFragmentMaterialfvSGIX (GLenum, GLenum, GLfloat *); -GLAPI void APIENTRY glGetFragmentMaterialivSGIX (GLenum, GLenum, GLint *); -GLAPI void APIENTRY glLightEnviSGIX (GLenum, GLint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLFRAGMENTCOLORMATERIALSGIXPROC) (GLenum face, GLenum mode); -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFSGIXPROC) (GLenum light, GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTISGIXPROC) (GLenum light, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFSGIXPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFVSGIXPROC) (GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELISGIXPROC) (GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELIVSGIXPROC) (GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLFRAGMENTMATERIALFSGIXPROC) (GLenum face, GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLFRAGMENTMATERIALISGIXPROC) (GLenum face, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLGETFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLLIGHTENVISGIXPROC) (GLenum pname, GLint param); -#endif - -#ifndef GL_IBM_rasterpos_clip -#define GL_IBM_rasterpos_clip 1 -#endif - -#ifndef GL_HP_texture_lighting -#define GL_HP_texture_lighting 1 -#endif - -#ifndef GL_EXT_draw_range_elements -#define GL_EXT_draw_range_elements 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDrawRangeElementsEXT (GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSEXTPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); -#endif - -#ifndef GL_WIN_phong_shading -#define GL_WIN_phong_shading 1 -#endif - -#ifndef GL_WIN_specular_fog -#define GL_WIN_specular_fog 1 -#endif - -#ifndef GL_EXT_light_texture -#define GL_EXT_light_texture 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glApplyTextureEXT (GLenum); -GLAPI void APIENTRY glTextureLightEXT (GLenum); -GLAPI void APIENTRY glTextureMaterialEXT (GLenum, GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLAPPLYTEXTUREEXTPROC) (GLenum mode); -typedef void (APIENTRYP PFNGLTEXTURELIGHTEXTPROC) (GLenum pname); -typedef void (APIENTRYP PFNGLTEXTUREMATERIALEXTPROC) (GLenum face, GLenum mode); -#endif - -#ifndef GL_SGIX_blend_alpha_minmax -#define GL_SGIX_blend_alpha_minmax 1 -#endif - -#ifndef GL_EXT_bgra -#define GL_EXT_bgra 1 -#endif - -#ifndef GL_SGIX_async -#define GL_SGIX_async 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glAsyncMarkerSGIX (GLuint); -GLAPI GLint APIENTRY glFinishAsyncSGIX (GLuint *); -GLAPI GLint APIENTRY glPollAsyncSGIX (GLuint *); -GLAPI GLuint APIENTRY glGenAsyncMarkersSGIX (GLsizei); -GLAPI void APIENTRY glDeleteAsyncMarkersSGIX (GLuint, GLsizei); -GLAPI GLboolean APIENTRY glIsAsyncMarkerSGIX (GLuint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLASYNCMARKERSGIXPROC) (GLuint marker); -typedef GLint (APIENTRYP PFNGLFINISHASYNCSGIXPROC) (GLuint *markerp); -typedef GLint (APIENTRYP PFNGLPOLLASYNCSGIXPROC) (GLuint *markerp); -typedef GLuint (APIENTRYP PFNGLGENASYNCMARKERSSGIXPROC) (GLsizei range); -typedef void (APIENTRYP PFNGLDELETEASYNCMARKERSSGIXPROC) (GLuint marker, GLsizei range); -typedef GLboolean (APIENTRYP PFNGLISASYNCMARKERSGIXPROC) (GLuint marker); -#endif - -#ifndef GL_SGIX_async_pixel -#define GL_SGIX_async_pixel 1 -#endif - -#ifndef GL_SGIX_async_histogram -#define GL_SGIX_async_histogram 1 -#endif - -#ifndef GL_INTEL_parallel_arrays -#define GL_INTEL_parallel_arrays 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glVertexPointervINTEL (GLint, GLenum, const GLvoid* *); -GLAPI void APIENTRY glNormalPointervINTEL (GLenum, const GLvoid* *); -GLAPI void APIENTRY glColorPointervINTEL (GLint, GLenum, const GLvoid* *); -GLAPI void APIENTRY glTexCoordPointervINTEL (GLint, GLenum, const GLvoid* *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLVERTEXPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer); -typedef void (APIENTRYP PFNGLNORMALPOINTERVINTELPROC) (GLenum type, const GLvoid* *pointer); -typedef void (APIENTRYP PFNGLCOLORPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer); -typedef void (APIENTRYP PFNGLTEXCOORDPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer); -#endif - -#ifndef GL_HP_occlusion_test -#define GL_HP_occlusion_test 1 -#endif - -#ifndef GL_EXT_pixel_transform -#define GL_EXT_pixel_transform 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glPixelTransformParameteriEXT (GLenum, GLenum, GLint); -GLAPI void APIENTRY glPixelTransformParameterfEXT (GLenum, GLenum, GLfloat); -GLAPI void APIENTRY glPixelTransformParameterivEXT (GLenum, GLenum, const GLint *); -GLAPI void APIENTRY glPixelTransformParameterfvEXT (GLenum, GLenum, const GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params); -#endif - -#ifndef GL_EXT_pixel_transform_color_table -#define GL_EXT_pixel_transform_color_table 1 -#endif - -#ifndef GL_EXT_shared_texture_palette -#define GL_EXT_shared_texture_palette 1 -#endif - -#ifndef GL_EXT_separate_specular_color -#define GL_EXT_separate_specular_color 1 -#endif - -#ifndef GL_EXT_secondary_color -#define GL_EXT_secondary_color 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glSecondaryColor3bEXT (GLbyte, GLbyte, GLbyte); -GLAPI void APIENTRY glSecondaryColor3bvEXT (const GLbyte *); -GLAPI void APIENTRY glSecondaryColor3dEXT (GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glSecondaryColor3dvEXT (const GLdouble *); -GLAPI void APIENTRY glSecondaryColor3fEXT (GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glSecondaryColor3fvEXT (const GLfloat *); -GLAPI void APIENTRY glSecondaryColor3iEXT (GLint, GLint, GLint); -GLAPI void APIENTRY glSecondaryColor3ivEXT (const GLint *); -GLAPI void APIENTRY glSecondaryColor3sEXT (GLshort, GLshort, GLshort); -GLAPI void APIENTRY glSecondaryColor3svEXT (const GLshort *); -GLAPI void APIENTRY glSecondaryColor3ubEXT (GLubyte, GLubyte, GLubyte); -GLAPI void APIENTRY glSecondaryColor3ubvEXT (const GLubyte *); -GLAPI void APIENTRY glSecondaryColor3uiEXT (GLuint, GLuint, GLuint); -GLAPI void APIENTRY glSecondaryColor3uivEXT (const GLuint *); -GLAPI void APIENTRY glSecondaryColor3usEXT (GLushort, GLushort, GLushort); -GLAPI void APIENTRY glSecondaryColor3usvEXT (const GLushort *); -GLAPI void APIENTRY glSecondaryColorPointerEXT (GLint, GLenum, GLsizei, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BEXTPROC) (GLbyte red, GLbyte green, GLbyte blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVEXTPROC) (const GLbyte *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DEXTPROC) (GLdouble red, GLdouble green, GLdouble blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVEXTPROC) (const GLdouble *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FEXTPROC) (GLfloat red, GLfloat green, GLfloat blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVEXTPROC) (const GLfloat *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IEXTPROC) (GLint red, GLint green, GLint blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVEXTPROC) (const GLint *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SEXTPROC) (GLshort red, GLshort green, GLshort blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVEXTPROC) (const GLshort *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBEXTPROC) (GLubyte red, GLubyte green, GLubyte blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVEXTPROC) (const GLubyte *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIEXTPROC) (GLuint red, GLuint green, GLuint blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVEXTPROC) (const GLuint *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USEXTPROC) (GLushort red, GLushort green, GLushort blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVEXTPROC) (const GLushort *v); -typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); -#endif - -#ifndef GL_EXT_texture_perturb_normal -#define GL_EXT_texture_perturb_normal 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTextureNormalEXT (GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLTEXTURENORMALEXTPROC) (GLenum mode); -#endif - -#ifndef GL_EXT_multi_draw_arrays -#define GL_EXT_multi_draw_arrays 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glMultiDrawArraysEXT (GLenum, GLint *, GLsizei *, GLsizei); -GLAPI void APIENTRY glMultiDrawElementsEXT (GLenum, const GLsizei *, GLenum, const GLvoid* *, GLsizei); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount); -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount); -#endif - -#ifndef GL_EXT_fog_coord -#define GL_EXT_fog_coord 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glFogCoordfEXT (GLfloat); -GLAPI void APIENTRY glFogCoordfvEXT (const GLfloat *); -GLAPI void APIENTRY glFogCoorddEXT (GLdouble); -GLAPI void APIENTRY glFogCoorddvEXT (const GLdouble *); -GLAPI void APIENTRY glFogCoordPointerEXT (GLenum, GLsizei, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLFOGCOORDFEXTPROC) (GLfloat coord); -typedef void (APIENTRYP PFNGLFOGCOORDFVEXTPROC) (const GLfloat *coord); -typedef void (APIENTRYP PFNGLFOGCOORDDEXTPROC) (GLdouble coord); -typedef void (APIENTRYP PFNGLFOGCOORDDVEXTPROC) (const GLdouble *coord); -typedef void (APIENTRYP PFNGLFOGCOORDPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); -#endif - -#ifndef GL_REND_screen_coordinates -#define GL_REND_screen_coordinates 1 -#endif - -#ifndef GL_EXT_coordinate_frame -#define GL_EXT_coordinate_frame 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTangent3bEXT (GLbyte, GLbyte, GLbyte); -GLAPI void APIENTRY glTangent3bvEXT (const GLbyte *); -GLAPI void APIENTRY glTangent3dEXT (GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glTangent3dvEXT (const GLdouble *); -GLAPI void APIENTRY glTangent3fEXT (GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glTangent3fvEXT (const GLfloat *); -GLAPI void APIENTRY glTangent3iEXT (GLint, GLint, GLint); -GLAPI void APIENTRY glTangent3ivEXT (const GLint *); -GLAPI void APIENTRY glTangent3sEXT (GLshort, GLshort, GLshort); -GLAPI void APIENTRY glTangent3svEXT (const GLshort *); -GLAPI void APIENTRY glBinormal3bEXT (GLbyte, GLbyte, GLbyte); -GLAPI void APIENTRY glBinormal3bvEXT (const GLbyte *); -GLAPI void APIENTRY glBinormal3dEXT (GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glBinormal3dvEXT (const GLdouble *); -GLAPI void APIENTRY glBinormal3fEXT (GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glBinormal3fvEXT (const GLfloat *); -GLAPI void APIENTRY glBinormal3iEXT (GLint, GLint, GLint); -GLAPI void APIENTRY glBinormal3ivEXT (const GLint *); -GLAPI void APIENTRY glBinormal3sEXT (GLshort, GLshort, GLshort); -GLAPI void APIENTRY glBinormal3svEXT (const GLshort *); -GLAPI void APIENTRY glTangentPointerEXT (GLenum, GLsizei, const GLvoid *); -GLAPI void APIENTRY glBinormalPointerEXT (GLenum, GLsizei, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLTANGENT3BEXTPROC) (GLbyte tx, GLbyte ty, GLbyte tz); -typedef void (APIENTRYP PFNGLTANGENT3BVEXTPROC) (const GLbyte *v); -typedef void (APIENTRYP PFNGLTANGENT3DEXTPROC) (GLdouble tx, GLdouble ty, GLdouble tz); -typedef void (APIENTRYP PFNGLTANGENT3DVEXTPROC) (const GLdouble *v); -typedef void (APIENTRYP PFNGLTANGENT3FEXTPROC) (GLfloat tx, GLfloat ty, GLfloat tz); -typedef void (APIENTRYP PFNGLTANGENT3FVEXTPROC) (const GLfloat *v); -typedef void (APIENTRYP PFNGLTANGENT3IEXTPROC) (GLint tx, GLint ty, GLint tz); -typedef void (APIENTRYP PFNGLTANGENT3IVEXTPROC) (const GLint *v); -typedef void (APIENTRYP PFNGLTANGENT3SEXTPROC) (GLshort tx, GLshort ty, GLshort tz); -typedef void (APIENTRYP PFNGLTANGENT3SVEXTPROC) (const GLshort *v); -typedef void (APIENTRYP PFNGLBINORMAL3BEXTPROC) (GLbyte bx, GLbyte by, GLbyte bz); -typedef void (APIENTRYP PFNGLBINORMAL3BVEXTPROC) (const GLbyte *v); -typedef void (APIENTRYP PFNGLBINORMAL3DEXTPROC) (GLdouble bx, GLdouble by, GLdouble bz); -typedef void (APIENTRYP PFNGLBINORMAL3DVEXTPROC) (const GLdouble *v); -typedef void (APIENTRYP PFNGLBINORMAL3FEXTPROC) (GLfloat bx, GLfloat by, GLfloat bz); -typedef void (APIENTRYP PFNGLBINORMAL3FVEXTPROC) (const GLfloat *v); -typedef void (APIENTRYP PFNGLBINORMAL3IEXTPROC) (GLint bx, GLint by, GLint bz); -typedef void (APIENTRYP PFNGLBINORMAL3IVEXTPROC) (const GLint *v); -typedef void (APIENTRYP PFNGLBINORMAL3SEXTPROC) (GLshort bx, GLshort by, GLshort bz); -typedef void (APIENTRYP PFNGLBINORMAL3SVEXTPROC) (const GLshort *v); -typedef void (APIENTRYP PFNGLTANGENTPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); -typedef void (APIENTRYP PFNGLBINORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); -#endif - -#ifndef GL_EXT_texture_env_combine -#define GL_EXT_texture_env_combine 1 -#endif - -#ifndef GL_APPLE_specular_vector -#define GL_APPLE_specular_vector 1 -#endif - -#ifndef GL_APPLE_transform_hint -#define GL_APPLE_transform_hint 1 -#endif - -#ifndef GL_SGIX_fog_scale -#define GL_SGIX_fog_scale 1 -#endif - -#ifndef GL_SUNX_constant_data -#define GL_SUNX_constant_data 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glFinishTextureSUNX (void); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLFINISHTEXTURESUNXPROC) (void); -#endif - -#ifndef GL_SUN_global_alpha -#define GL_SUN_global_alpha 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glGlobalAlphaFactorbSUN (GLbyte); -GLAPI void APIENTRY glGlobalAlphaFactorsSUN (GLshort); -GLAPI void APIENTRY glGlobalAlphaFactoriSUN (GLint); -GLAPI void APIENTRY glGlobalAlphaFactorfSUN (GLfloat); -GLAPI void APIENTRY glGlobalAlphaFactordSUN (GLdouble); -GLAPI void APIENTRY glGlobalAlphaFactorubSUN (GLubyte); -GLAPI void APIENTRY glGlobalAlphaFactorusSUN (GLushort); -GLAPI void APIENTRY glGlobalAlphaFactoruiSUN (GLuint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORBSUNPROC) (GLbyte factor); -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORSSUNPROC) (GLshort factor); -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORISUNPROC) (GLint factor); -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORFSUNPROC) (GLfloat factor); -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORDSUNPROC) (GLdouble factor); -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUBSUNPROC) (GLubyte factor); -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUSSUNPROC) (GLushort factor); -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUISUNPROC) (GLuint factor); -#endif - -#ifndef GL_SUN_triangle_list -#define GL_SUN_triangle_list 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glReplacementCodeuiSUN (GLuint); -GLAPI void APIENTRY glReplacementCodeusSUN (GLushort); -GLAPI void APIENTRY glReplacementCodeubSUN (GLubyte); -GLAPI void APIENTRY glReplacementCodeuivSUN (const GLuint *); -GLAPI void APIENTRY glReplacementCodeusvSUN (const GLushort *); -GLAPI void APIENTRY glReplacementCodeubvSUN (const GLubyte *); -GLAPI void APIENTRY glReplacementCodePointerSUN (GLenum, GLsizei, const GLvoid* *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUISUNPROC) (GLuint code); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUSSUNPROC) (GLushort code); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUBSUNPROC) (GLubyte code); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVSUNPROC) (const GLuint *code); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUSVSUNPROC) (const GLushort *code); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUBVSUNPROC) (const GLubyte *code); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEPOINTERSUNPROC) (GLenum type, GLsizei stride, const GLvoid* *pointer); -#endif - -#ifndef GL_SUN_vertex -#define GL_SUN_vertex 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glColor4ubVertex2fSUN (GLubyte, GLubyte, GLubyte, GLubyte, GLfloat, GLfloat); -GLAPI void APIENTRY glColor4ubVertex2fvSUN (const GLubyte *, const GLfloat *); -GLAPI void APIENTRY glColor4ubVertex3fSUN (GLubyte, GLubyte, GLubyte, GLubyte, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glColor4ubVertex3fvSUN (const GLubyte *, const GLfloat *); -GLAPI void APIENTRY glColor3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glColor3fVertex3fvSUN (const GLfloat *, const GLfloat *); -GLAPI void APIENTRY glNormal3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glNormal3fVertex3fvSUN (const GLfloat *, const GLfloat *); -GLAPI void APIENTRY glColor4fNormal3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glColor4fNormal3fVertex3fvSUN (const GLfloat *, const GLfloat *, const GLfloat *); -GLAPI void APIENTRY glTexCoord2fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glTexCoord2fVertex3fvSUN (const GLfloat *, const GLfloat *); -GLAPI void APIENTRY glTexCoord4fVertex4fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glTexCoord4fVertex4fvSUN (const GLfloat *, const GLfloat *); -GLAPI void APIENTRY glTexCoord2fColor4ubVertex3fSUN (GLfloat, GLfloat, GLubyte, GLubyte, GLubyte, GLubyte, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glTexCoord2fColor4ubVertex3fvSUN (const GLfloat *, const GLubyte *, const GLfloat *); -GLAPI void APIENTRY glTexCoord2fColor3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glTexCoord2fColor3fVertex3fvSUN (const GLfloat *, const GLfloat *, const GLfloat *); -GLAPI void APIENTRY glTexCoord2fNormal3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glTexCoord2fNormal3fVertex3fvSUN (const GLfloat *, const GLfloat *, const GLfloat *); -GLAPI void APIENTRY glTexCoord2fColor4fNormal3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glTexCoord2fColor4fNormal3fVertex3fvSUN (const GLfloat *, const GLfloat *, const GLfloat *, const GLfloat *); -GLAPI void APIENTRY glTexCoord4fColor4fNormal3fVertex4fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glTexCoord4fColor4fNormal3fVertex4fvSUN (const GLfloat *, const GLfloat *, const GLfloat *, const GLfloat *); -GLAPI void APIENTRY glReplacementCodeuiVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glReplacementCodeuiVertex3fvSUN (const GLuint *, const GLfloat *); -GLAPI void APIENTRY glReplacementCodeuiColor4ubVertex3fSUN (GLuint, GLubyte, GLubyte, GLubyte, GLubyte, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glReplacementCodeuiColor4ubVertex3fvSUN (const GLuint *, const GLubyte *, const GLfloat *); -GLAPI void APIENTRY glReplacementCodeuiColor3fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glReplacementCodeuiColor3fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *); -GLAPI void APIENTRY glReplacementCodeuiNormal3fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glReplacementCodeuiNormal3fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *); -GLAPI void APIENTRY glReplacementCodeuiColor4fNormal3fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glReplacementCodeuiColor4fNormal3fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *, const GLfloat *); -GLAPI void APIENTRY glReplacementCodeuiTexCoord2fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glReplacementCodeuiTexCoord2fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *); -GLAPI void APIENTRY glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *, const GLfloat *); -GLAPI void APIENTRY glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN (GLuint, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN (const GLuint *, const GLfloat *, const GLfloat *, const GLfloat *, const GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX2FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y); -typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX2FVSUNPROC) (const GLubyte *c, const GLfloat *v); -typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX3FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX3FVSUNPROC) (const GLubyte *c, const GLfloat *v); -typedef void (APIENTRYP PFNGLCOLOR3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *v); -typedef void (APIENTRYP PFNGLNORMAL3FVERTEX3FSUNPROC) (GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *n, const GLfloat *v); -typedef void (APIENTRYP PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *n, const GLfloat *v); -typedef void (APIENTRYP PFNGLTEXCOORD2FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLTEXCOORD2FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *v); -typedef void (APIENTRYP PFNGLTEXCOORD4FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLTEXCOORD4FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *v); -typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC) (const GLfloat *tc, const GLubyte *c, const GLfloat *v); -typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *v); -typedef void (APIENTRYP PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *n, const GLfloat *v); -typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); -typedef void (APIENTRYP PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC) (GLuint rc, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *v); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC) (GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC) (const GLuint *rc, const GLubyte *c, const GLfloat *v); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *c, const GLfloat *v); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *n, const GLfloat *v); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *c, const GLfloat *n, const GLfloat *v); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *v); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *n, const GLfloat *v); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint *rc, const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); -#endif - -#ifndef GL_EXT_blend_func_separate -#define GL_EXT_blend_func_separate 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBlendFuncSeparateEXT (GLenum, GLenum, GLenum, GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEEXTPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); -#endif - -#ifndef GL_INGR_blend_func_separate -#define GL_INGR_blend_func_separate 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBlendFuncSeparateINGR (GLenum, GLenum, GLenum, GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEINGRPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); -#endif - -#ifndef GL_INGR_color_clamp -#define GL_INGR_color_clamp 1 -#endif - -#ifndef GL_INGR_interlace_read -#define GL_INGR_interlace_read 1 -#endif - -#ifndef GL_EXT_stencil_wrap -#define GL_EXT_stencil_wrap 1 -#endif - -#ifndef GL_EXT_422_pixels -#define GL_EXT_422_pixels 1 -#endif - -#ifndef GL_NV_texgen_reflection -#define GL_NV_texgen_reflection 1 -#endif - -#ifndef GL_SUN_convolution_border_modes -#define GL_SUN_convolution_border_modes 1 -#endif - -#ifndef GL_EXT_texture_env_add -#define GL_EXT_texture_env_add 1 -#endif - -#ifndef GL_EXT_texture_lod_bias -#define GL_EXT_texture_lod_bias 1 -#endif - -#ifndef GL_EXT_texture_filter_anisotropic -#define GL_EXT_texture_filter_anisotropic 1 -#endif - -#ifndef GL_EXT_vertex_weighting -#define GL_EXT_vertex_weighting 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glVertexWeightfEXT (GLfloat); -GLAPI void APIENTRY glVertexWeightfvEXT (const GLfloat *); -GLAPI void APIENTRY glVertexWeightPointerEXT (GLsizei, GLenum, GLsizei, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLVERTEXWEIGHTFEXTPROC) (GLfloat weight); -typedef void (APIENTRYP PFNGLVERTEXWEIGHTFVEXTPROC) (const GLfloat *weight); -typedef void (APIENTRYP PFNGLVERTEXWEIGHTPOINTEREXTPROC) (GLsizei size, GLenum type, GLsizei stride, const GLvoid *pointer); -#endif - -#ifndef GL_NV_light_max_exponent -#define GL_NV_light_max_exponent 1 -#endif - -#ifndef GL_NV_vertex_array_range -#define GL_NV_vertex_array_range 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glFlushVertexArrayRangeNV (void); -GLAPI void APIENTRY glVertexArrayRangeNV (GLsizei, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLFLUSHVERTEXARRAYRANGENVPROC) (void); -typedef void (APIENTRYP PFNGLVERTEXARRAYRANGENVPROC) (GLsizei length, const GLvoid *pointer); -#endif - -#ifndef GL_NV_register_combiners -#define GL_NV_register_combiners 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glCombinerParameterfvNV (GLenum, const GLfloat *); -GLAPI void APIENTRY glCombinerParameterfNV (GLenum, GLfloat); -GLAPI void APIENTRY glCombinerParameterivNV (GLenum, const GLint *); -GLAPI void APIENTRY glCombinerParameteriNV (GLenum, GLint); -GLAPI void APIENTRY glCombinerInputNV (GLenum, GLenum, GLenum, GLenum, GLenum, GLenum); -GLAPI void APIENTRY glCombinerOutputNV (GLenum, GLenum, GLenum, GLenum, GLenum, GLenum, GLenum, GLboolean, GLboolean, GLboolean); -GLAPI void APIENTRY glFinalCombinerInputNV (GLenum, GLenum, GLenum, GLenum); -GLAPI void APIENTRY glGetCombinerInputParameterfvNV (GLenum, GLenum, GLenum, GLenum, GLfloat *); -GLAPI void APIENTRY glGetCombinerInputParameterivNV (GLenum, GLenum, GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetCombinerOutputParameterfvNV (GLenum, GLenum, GLenum, GLfloat *); -GLAPI void APIENTRY glGetCombinerOutputParameterivNV (GLenum, GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetFinalCombinerInputParameterfvNV (GLenum, GLenum, GLfloat *); -GLAPI void APIENTRY glGetFinalCombinerInputParameterivNV (GLenum, GLenum, GLint *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLCOMBINERPARAMETERFVNVPROC) (GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLCOMBINERPARAMETERFNVPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLCOMBINERPARAMETERIVNVPROC) (GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLCOMBINERPARAMETERINVPROC) (GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLCOMBINERINPUTNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); -typedef void (APIENTRYP PFNGLCOMBINEROUTPUTNVPROC) (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum); -typedef void (APIENTRYP PFNGLFINALCOMBINERINPUTNVPROC) (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); -typedef void (APIENTRYP PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC) (GLenum variable, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC) (GLenum variable, GLenum pname, GLint *params); -#endif - -#ifndef GL_NV_fog_distance -#define GL_NV_fog_distance 1 -#endif - -#ifndef GL_NV_texgen_emboss -#define GL_NV_texgen_emboss 1 -#endif - -#ifndef GL_NV_blend_square -#define GL_NV_blend_square 1 -#endif - -#ifndef GL_NV_texture_env_combine4 -#define GL_NV_texture_env_combine4 1 -#endif - -#ifndef GL_MESA_resize_buffers -#define GL_MESA_resize_buffers 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glResizeBuffersMESA (void); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLRESIZEBUFFERSMESAPROC) (void); -#endif - -#ifndef GL_MESA_window_pos -#define GL_MESA_window_pos 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glWindowPos2dMESA (GLdouble, GLdouble); -GLAPI void APIENTRY glWindowPos2dvMESA (const GLdouble *); -GLAPI void APIENTRY glWindowPos2fMESA (GLfloat, GLfloat); -GLAPI void APIENTRY glWindowPos2fvMESA (const GLfloat *); -GLAPI void APIENTRY glWindowPos2iMESA (GLint, GLint); -GLAPI void APIENTRY glWindowPos2ivMESA (const GLint *); -GLAPI void APIENTRY glWindowPos2sMESA (GLshort, GLshort); -GLAPI void APIENTRY glWindowPos2svMESA (const GLshort *); -GLAPI void APIENTRY glWindowPos3dMESA (GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glWindowPos3dvMESA (const GLdouble *); -GLAPI void APIENTRY glWindowPos3fMESA (GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glWindowPos3fvMESA (const GLfloat *); -GLAPI void APIENTRY glWindowPos3iMESA (GLint, GLint, GLint); -GLAPI void APIENTRY glWindowPos3ivMESA (const GLint *); -GLAPI void APIENTRY glWindowPos3sMESA (GLshort, GLshort, GLshort); -GLAPI void APIENTRY glWindowPos3svMESA (const GLshort *); -GLAPI void APIENTRY glWindowPos4dMESA (GLdouble, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glWindowPos4dvMESA (const GLdouble *); -GLAPI void APIENTRY glWindowPos4fMESA (GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glWindowPos4fvMESA (const GLfloat *); -GLAPI void APIENTRY glWindowPos4iMESA (GLint, GLint, GLint, GLint); -GLAPI void APIENTRY glWindowPos4ivMESA (const GLint *); -GLAPI void APIENTRY glWindowPos4sMESA (GLshort, GLshort, GLshort, GLshort); -GLAPI void APIENTRY glWindowPos4svMESA (const GLshort *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLWINDOWPOS2DMESAPROC) (GLdouble x, GLdouble y); -typedef void (APIENTRYP PFNGLWINDOWPOS2DVMESAPROC) (const GLdouble *v); -typedef void (APIENTRYP PFNGLWINDOWPOS2FMESAPROC) (GLfloat x, GLfloat y); -typedef void (APIENTRYP PFNGLWINDOWPOS2FVMESAPROC) (const GLfloat *v); -typedef void (APIENTRYP PFNGLWINDOWPOS2IMESAPROC) (GLint x, GLint y); -typedef void (APIENTRYP PFNGLWINDOWPOS2IVMESAPROC) (const GLint *v); -typedef void (APIENTRYP PFNGLWINDOWPOS2SMESAPROC) (GLshort x, GLshort y); -typedef void (APIENTRYP PFNGLWINDOWPOS2SVMESAPROC) (const GLshort *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3DMESAPROC) (GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLWINDOWPOS3DVMESAPROC) (const GLdouble *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3FMESAPROC) (GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLWINDOWPOS3FVMESAPROC) (const GLfloat *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3IMESAPROC) (GLint x, GLint y, GLint z); -typedef void (APIENTRYP PFNGLWINDOWPOS3IVMESAPROC) (const GLint *v); -typedef void (APIENTRYP PFNGLWINDOWPOS3SMESAPROC) (GLshort x, GLshort y, GLshort z); -typedef void (APIENTRYP PFNGLWINDOWPOS3SVMESAPROC) (const GLshort *v); -typedef void (APIENTRYP PFNGLWINDOWPOS4DMESAPROC) (GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLWINDOWPOS4DVMESAPROC) (const GLdouble *v); -typedef void (APIENTRYP PFNGLWINDOWPOS4FMESAPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLWINDOWPOS4FVMESAPROC) (const GLfloat *v); -typedef void (APIENTRYP PFNGLWINDOWPOS4IMESAPROC) (GLint x, GLint y, GLint z, GLint w); -typedef void (APIENTRYP PFNGLWINDOWPOS4IVMESAPROC) (const GLint *v); -typedef void (APIENTRYP PFNGLWINDOWPOS4SMESAPROC) (GLshort x, GLshort y, GLshort z, GLshort w); -typedef void (APIENTRYP PFNGLWINDOWPOS4SVMESAPROC) (const GLshort *v); -#endif - -#ifndef GL_IBM_cull_vertex -#define GL_IBM_cull_vertex 1 -#endif - -#ifndef GL_IBM_multimode_draw_arrays -#define GL_IBM_multimode_draw_arrays 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glMultiModeDrawArraysIBM (const GLenum *, const GLint *, const GLsizei *, GLsizei, GLint); -GLAPI void APIENTRY glMultiModeDrawElementsIBM (const GLenum *, const GLsizei *, GLenum, const GLvoid* const *, GLsizei, GLint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLMULTIMODEDRAWARRAYSIBMPROC) (const GLenum *mode, const GLint *first, const GLsizei *count, GLsizei primcount, GLint modestride); -typedef void (APIENTRYP PFNGLMULTIMODEDRAWELEMENTSIBMPROC) (const GLenum *mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei primcount, GLint modestride); -#endif - -#ifndef GL_IBM_vertex_array_lists -#define GL_IBM_vertex_array_lists 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glColorPointerListIBM (GLint, GLenum, GLint, const GLvoid* *, GLint); -GLAPI void APIENTRY glSecondaryColorPointerListIBM (GLint, GLenum, GLint, const GLvoid* *, GLint); -GLAPI void APIENTRY glEdgeFlagPointerListIBM (GLint, const GLboolean* *, GLint); -GLAPI void APIENTRY glFogCoordPointerListIBM (GLenum, GLint, const GLvoid* *, GLint); -GLAPI void APIENTRY glIndexPointerListIBM (GLenum, GLint, const GLvoid* *, GLint); -GLAPI void APIENTRY glNormalPointerListIBM (GLenum, GLint, const GLvoid* *, GLint); -GLAPI void APIENTRY glTexCoordPointerListIBM (GLint, GLenum, GLint, const GLvoid* *, GLint); -GLAPI void APIENTRY glVertexPointerListIBM (GLint, GLenum, GLint, const GLvoid* *, GLint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); -typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); -typedef void (APIENTRYP PFNGLEDGEFLAGPOINTERLISTIBMPROC) (GLint stride, const GLboolean* *pointer, GLint ptrstride); -typedef void (APIENTRYP PFNGLFOGCOORDPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); -typedef void (APIENTRYP PFNGLINDEXPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); -typedef void (APIENTRYP PFNGLNORMALPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); -typedef void (APIENTRYP PFNGLTEXCOORDPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); -typedef void (APIENTRYP PFNGLVERTEXPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); -#endif - -#ifndef GL_SGIX_subsample -#define GL_SGIX_subsample 1 -#endif - -#ifndef GL_SGIX_ycrcba -#define GL_SGIX_ycrcba 1 -#endif - -#ifndef GL_SGIX_ycrcb_subsample -#define GL_SGIX_ycrcb_subsample 1 -#endif - -#ifndef GL_SGIX_depth_pass_instrument -#define GL_SGIX_depth_pass_instrument 1 -#endif - -#ifndef GL_3DFX_texture_compression_FXT1 -#define GL_3DFX_texture_compression_FXT1 1 -#endif - -#ifndef GL_3DFX_multisample -#define GL_3DFX_multisample 1 -#endif - -#ifndef GL_3DFX_tbuffer -#define GL_3DFX_tbuffer 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTbufferMask3DFX (GLuint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLTBUFFERMASK3DFXPROC) (GLuint mask); -#endif - -#ifndef GL_EXT_multisample -#define GL_EXT_multisample 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glSampleMaskEXT (GLclampf, GLboolean); -GLAPI void APIENTRY glSamplePatternEXT (GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLSAMPLEMASKEXTPROC) (GLclampf value, GLboolean invert); -typedef void (APIENTRYP PFNGLSAMPLEPATTERNEXTPROC) (GLenum pattern); -#endif - -#ifndef GL_SGIX_vertex_preclip -#define GL_SGIX_vertex_preclip 1 -#endif - -#ifndef GL_SGIX_convolution_accuracy -#define GL_SGIX_convolution_accuracy 1 -#endif - -#ifndef GL_SGIX_resample -#define GL_SGIX_resample 1 -#endif - -#ifndef GL_SGIS_point_line_texgen -#define GL_SGIS_point_line_texgen 1 -#endif - -#ifndef GL_SGIS_texture_color_mask -#define GL_SGIS_texture_color_mask 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTextureColorMaskSGIS (GLboolean, GLboolean, GLboolean, GLboolean); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLTEXTURECOLORMASKSGISPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); -#endif - -#ifndef GL_SGIX_igloo_interface -#define GL_SGIX_igloo_interface 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glIglooInterfaceSGIX (GLenum, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLIGLOOINTERFACESGIXPROC) (GLenum pname, const GLvoid *params); -#endif - -#ifndef GL_EXT_texture_env_dot3 -#define GL_EXT_texture_env_dot3 1 -#endif - -#ifndef GL_ATI_texture_mirror_once -#define GL_ATI_texture_mirror_once 1 -#endif - -#ifndef GL_NV_fence -#define GL_NV_fence 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDeleteFencesNV (GLsizei, const GLuint *); -GLAPI void APIENTRY glGenFencesNV (GLsizei, GLuint *); -GLAPI GLboolean APIENTRY glIsFenceNV (GLuint); -GLAPI GLboolean APIENTRY glTestFenceNV (GLuint); -GLAPI void APIENTRY glGetFenceivNV (GLuint, GLenum, GLint *); -GLAPI void APIENTRY glFinishFenceNV (GLuint); -GLAPI void APIENTRY glSetFenceNV (GLuint, GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences); -typedef void (APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences); -typedef GLboolean (APIENTRYP PFNGLISFENCENVPROC) (GLuint fence); -typedef GLboolean (APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence); -typedef void (APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence); -typedef void (APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition); -#endif - -#ifndef GL_NV_evaluators -#define GL_NV_evaluators 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glMapControlPointsNV (GLenum, GLuint, GLenum, GLsizei, GLsizei, GLint, GLint, GLboolean, const GLvoid *); -GLAPI void APIENTRY glMapParameterivNV (GLenum, GLenum, const GLint *); -GLAPI void APIENTRY glMapParameterfvNV (GLenum, GLenum, const GLfloat *); -GLAPI void APIENTRY glGetMapControlPointsNV (GLenum, GLuint, GLenum, GLsizei, GLsizei, GLboolean, GLvoid *); -GLAPI void APIENTRY glGetMapParameterivNV (GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetMapParameterfvNV (GLenum, GLenum, GLfloat *); -GLAPI void APIENTRY glGetMapAttribParameterivNV (GLenum, GLuint, GLenum, GLint *); -GLAPI void APIENTRY glGetMapAttribParameterfvNV (GLenum, GLuint, GLenum, GLfloat *); -GLAPI void APIENTRY glEvalMapsNV (GLenum, GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const GLvoid *points); -typedef void (APIENTRYP PFNGLMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLGETMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, GLvoid *points); -typedef void (APIENTRYP PFNGLGETMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETMAPATTRIBPARAMETERIVNVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETMAPATTRIBPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLEVALMAPSNVPROC) (GLenum target, GLenum mode); -#endif - -#ifndef GL_NV_packed_depth_stencil -#define GL_NV_packed_depth_stencil 1 -#endif - -#ifndef GL_NV_register_combiners2 -#define GL_NV_register_combiners2 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glCombinerStageParameterfvNV (GLenum, GLenum, const GLfloat *); -GLAPI void APIENTRY glGetCombinerStageParameterfvNV (GLenum, GLenum, GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, GLfloat *params); -#endif - -#ifndef GL_NV_texture_compression_vtc -#define GL_NV_texture_compression_vtc 1 -#endif - -#ifndef GL_NV_texture_rectangle -#define GL_NV_texture_rectangle 1 -#endif - -#ifndef GL_NV_texture_shader -#define GL_NV_texture_shader 1 -#endif - -#ifndef GL_NV_texture_shader2 -#define GL_NV_texture_shader2 1 -#endif - -#ifndef GL_NV_vertex_array_range2 -#define GL_NV_vertex_array_range2 1 -#endif - -#ifndef GL_NV_vertex_program -#define GL_NV_vertex_program 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI GLboolean APIENTRY glAreProgramsResidentNV (GLsizei, const GLuint *, GLboolean *); -GLAPI void APIENTRY glBindProgramNV (GLenum, GLuint); -GLAPI void APIENTRY glDeleteProgramsNV (GLsizei, const GLuint *); -GLAPI void APIENTRY glExecuteProgramNV (GLenum, GLuint, const GLfloat *); -GLAPI void APIENTRY glGenProgramsNV (GLsizei, GLuint *); -GLAPI void APIENTRY glGetProgramParameterdvNV (GLenum, GLuint, GLenum, GLdouble *); -GLAPI void APIENTRY glGetProgramParameterfvNV (GLenum, GLuint, GLenum, GLfloat *); -GLAPI void APIENTRY glGetProgramivNV (GLuint, GLenum, GLint *); -GLAPI void APIENTRY glGetProgramStringNV (GLuint, GLenum, GLubyte *); -GLAPI void APIENTRY glGetTrackMatrixivNV (GLenum, GLuint, GLenum, GLint *); -GLAPI void APIENTRY glGetVertexAttribdvNV (GLuint, GLenum, GLdouble *); -GLAPI void APIENTRY glGetVertexAttribfvNV (GLuint, GLenum, GLfloat *); -GLAPI void APIENTRY glGetVertexAttribivNV (GLuint, GLenum, GLint *); -GLAPI void APIENTRY glGetVertexAttribPointervNV (GLuint, GLenum, GLvoid* *); -GLAPI GLboolean APIENTRY glIsProgramNV (GLuint); -GLAPI void APIENTRY glLoadProgramNV (GLenum, GLuint, GLsizei, const GLubyte *); -GLAPI void APIENTRY glProgramParameter4dNV (GLenum, GLuint, GLdouble, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glProgramParameter4dvNV (GLenum, GLuint, const GLdouble *); -GLAPI void APIENTRY glProgramParameter4fNV (GLenum, GLuint, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glProgramParameter4fvNV (GLenum, GLuint, const GLfloat *); -GLAPI void APIENTRY glProgramParameters4dvNV (GLenum, GLuint, GLuint, const GLdouble *); -GLAPI void APIENTRY glProgramParameters4fvNV (GLenum, GLuint, GLuint, const GLfloat *); -GLAPI void APIENTRY glRequestResidentProgramsNV (GLsizei, const GLuint *); -GLAPI void APIENTRY glTrackMatrixNV (GLenum, GLuint, GLenum, GLenum); -GLAPI void APIENTRY glVertexAttribPointerNV (GLuint, GLint, GLenum, GLsizei, const GLvoid *); -GLAPI void APIENTRY glVertexAttrib1dNV (GLuint, GLdouble); -GLAPI void APIENTRY glVertexAttrib1dvNV (GLuint, const GLdouble *); -GLAPI void APIENTRY glVertexAttrib1fNV (GLuint, GLfloat); -GLAPI void APIENTRY glVertexAttrib1fvNV (GLuint, const GLfloat *); -GLAPI void APIENTRY glVertexAttrib1sNV (GLuint, GLshort); -GLAPI void APIENTRY glVertexAttrib1svNV (GLuint, const GLshort *); -GLAPI void APIENTRY glVertexAttrib2dNV (GLuint, GLdouble, GLdouble); -GLAPI void APIENTRY glVertexAttrib2dvNV (GLuint, const GLdouble *); -GLAPI void APIENTRY glVertexAttrib2fNV (GLuint, GLfloat, GLfloat); -GLAPI void APIENTRY glVertexAttrib2fvNV (GLuint, const GLfloat *); -GLAPI void APIENTRY glVertexAttrib2sNV (GLuint, GLshort, GLshort); -GLAPI void APIENTRY glVertexAttrib2svNV (GLuint, const GLshort *); -GLAPI void APIENTRY glVertexAttrib3dNV (GLuint, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glVertexAttrib3dvNV (GLuint, const GLdouble *); -GLAPI void APIENTRY glVertexAttrib3fNV (GLuint, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glVertexAttrib3fvNV (GLuint, const GLfloat *); -GLAPI void APIENTRY glVertexAttrib3sNV (GLuint, GLshort, GLshort, GLshort); -GLAPI void APIENTRY glVertexAttrib3svNV (GLuint, const GLshort *); -GLAPI void APIENTRY glVertexAttrib4dNV (GLuint, GLdouble, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glVertexAttrib4dvNV (GLuint, const GLdouble *); -GLAPI void APIENTRY glVertexAttrib4fNV (GLuint, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glVertexAttrib4fvNV (GLuint, const GLfloat *); -GLAPI void APIENTRY glVertexAttrib4sNV (GLuint, GLshort, GLshort, GLshort, GLshort); -GLAPI void APIENTRY glVertexAttrib4svNV (GLuint, const GLshort *); -GLAPI void APIENTRY glVertexAttrib4ubNV (GLuint, GLubyte, GLubyte, GLubyte, GLubyte); -GLAPI void APIENTRY glVertexAttrib4ubvNV (GLuint, const GLubyte *); -GLAPI void APIENTRY glVertexAttribs1dvNV (GLuint, GLsizei, const GLdouble *); -GLAPI void APIENTRY glVertexAttribs1fvNV (GLuint, GLsizei, const GLfloat *); -GLAPI void APIENTRY glVertexAttribs1svNV (GLuint, GLsizei, const GLshort *); -GLAPI void APIENTRY glVertexAttribs2dvNV (GLuint, GLsizei, const GLdouble *); -GLAPI void APIENTRY glVertexAttribs2fvNV (GLuint, GLsizei, const GLfloat *); -GLAPI void APIENTRY glVertexAttribs2svNV (GLuint, GLsizei, const GLshort *); -GLAPI void APIENTRY glVertexAttribs3dvNV (GLuint, GLsizei, const GLdouble *); -GLAPI void APIENTRY glVertexAttribs3fvNV (GLuint, GLsizei, const GLfloat *); -GLAPI void APIENTRY glVertexAttribs3svNV (GLuint, GLsizei, const GLshort *); -GLAPI void APIENTRY glVertexAttribs4dvNV (GLuint, GLsizei, const GLdouble *); -GLAPI void APIENTRY glVertexAttribs4fvNV (GLuint, GLsizei, const GLfloat *); -GLAPI void APIENTRY glVertexAttribs4svNV (GLuint, GLsizei, const GLshort *); -GLAPI void APIENTRY glVertexAttribs4ubvNV (GLuint, GLsizei, const GLubyte *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef GLboolean (APIENTRYP PFNGLAREPROGRAMSRESIDENTNVPROC) (GLsizei n, const GLuint *programs, GLboolean *residences); -typedef void (APIENTRYP PFNGLBINDPROGRAMNVPROC) (GLenum target, GLuint id); -typedef void (APIENTRYP PFNGLDELETEPROGRAMSNVPROC) (GLsizei n, const GLuint *programs); -typedef void (APIENTRYP PFNGLEXECUTEPROGRAMNVPROC) (GLenum target, GLuint id, const GLfloat *params); -typedef void (APIENTRYP PFNGLGENPROGRAMSNVPROC) (GLsizei n, GLuint *programs); -typedef void (APIENTRYP PFNGLGETPROGRAMPARAMETERDVNVPROC) (GLenum target, GLuint index, GLenum pname, GLdouble *params); -typedef void (APIENTRYP PFNGLGETPROGRAMPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETPROGRAMIVNVPROC) (GLuint id, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETPROGRAMSTRINGNVPROC) (GLuint id, GLenum pname, GLubyte *program); -typedef void (APIENTRYP PFNGLGETTRACKMATRIXIVNVPROC) (GLenum target, GLuint address, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVNVPROC) (GLuint index, GLenum pname, GLdouble *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVNVPROC) (GLuint index, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVNVPROC) (GLuint index, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVNVPROC) (GLuint index, GLenum pname, GLvoid* *pointer); -typedef GLboolean (APIENTRYP PFNGLISPROGRAMNVPROC) (GLuint id); -typedef void (APIENTRYP PFNGLLOADPROGRAMNVPROC) (GLenum target, GLuint id, GLsizei len, const GLubyte *program); -typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4DNVPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4DVNVPROC) (GLenum target, GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4FNVPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4FVNVPROC) (GLenum target, GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLPROGRAMPARAMETERS4DVNVPROC) (GLenum target, GLuint index, GLuint count, const GLdouble *v); -typedef void (APIENTRYP PFNGLPROGRAMPARAMETERS4FVNVPROC) (GLenum target, GLuint index, GLuint count, const GLfloat *v); -typedef void (APIENTRYP PFNGLREQUESTRESIDENTPROGRAMSNVPROC) (GLsizei n, const GLuint *programs); -typedef void (APIENTRYP PFNGLTRACKMATRIXNVPROC) (GLenum target, GLuint address, GLenum matrix, GLenum transform); -typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERNVPROC) (GLuint index, GLint fsize, GLenum type, GLsizei stride, const GLvoid *pointer); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DNVPROC) (GLuint index, GLdouble x); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVNVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FNVPROC) (GLuint index, GLfloat x); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVNVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SNVPROC) (GLuint index, GLshort x); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVNVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DNVPROC) (GLuint index, GLdouble x, GLdouble y); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVNVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FNVPROC) (GLuint index, GLfloat x, GLfloat y); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVNVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SNVPROC) (GLuint index, GLshort x, GLshort y); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVNVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVNVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVNVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVNVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVNVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVNVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVNVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBNVPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVNVPROC) (GLuint index, const GLubyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS1DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS1FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS1SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS2DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS2FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS2SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS3DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS3FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS3SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS4DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS4FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS4SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS4UBVNVPROC) (GLuint index, GLsizei count, const GLubyte *v); -#endif - -#ifndef GL_SGIX_texture_coordinate_clamp -#define GL_SGIX_texture_coordinate_clamp 1 -#endif - -#ifndef GL_SGIX_scalebias_hint -#define GL_SGIX_scalebias_hint 1 -#endif - -#ifndef GL_OML_interlace -#define GL_OML_interlace 1 -#endif - -#ifndef GL_OML_subsample -#define GL_OML_subsample 1 -#endif - -#ifndef GL_OML_resample -#define GL_OML_resample 1 -#endif - -#ifndef GL_NV_copy_depth_to_color -#define GL_NV_copy_depth_to_color 1 -#endif - -#ifndef GL_ATI_envmap_bumpmap -#define GL_ATI_envmap_bumpmap 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTexBumpParameterivATI (GLenum, const GLint *); -GLAPI void APIENTRY glTexBumpParameterfvATI (GLenum, const GLfloat *); -GLAPI void APIENTRY glGetTexBumpParameterivATI (GLenum, GLint *); -GLAPI void APIENTRY glGetTexBumpParameterfvATI (GLenum, GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLTEXBUMPPARAMETERIVATIPROC) (GLenum pname, const GLint *param); -typedef void (APIENTRYP PFNGLTEXBUMPPARAMETERFVATIPROC) (GLenum pname, const GLfloat *param); -typedef void (APIENTRYP PFNGLGETTEXBUMPPARAMETERIVATIPROC) (GLenum pname, GLint *param); -typedef void (APIENTRYP PFNGLGETTEXBUMPPARAMETERFVATIPROC) (GLenum pname, GLfloat *param); -#endif - -#ifndef GL_ATI_fragment_shader -#define GL_ATI_fragment_shader 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI GLuint APIENTRY glGenFragmentShadersATI (GLuint); -GLAPI void APIENTRY glBindFragmentShaderATI (GLuint); -GLAPI void APIENTRY glDeleteFragmentShaderATI (GLuint); -GLAPI void APIENTRY glBeginFragmentShaderATI (void); -GLAPI void APIENTRY glEndFragmentShaderATI (void); -GLAPI void APIENTRY glPassTexCoordATI (GLuint, GLuint, GLenum); -GLAPI void APIENTRY glSampleMapATI (GLuint, GLuint, GLenum); -GLAPI void APIENTRY glColorFragmentOp1ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); -GLAPI void APIENTRY glColorFragmentOp2ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); -GLAPI void APIENTRY glColorFragmentOp3ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); -GLAPI void APIENTRY glAlphaFragmentOp1ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint); -GLAPI void APIENTRY glAlphaFragmentOp2ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); -GLAPI void APIENTRY glAlphaFragmentOp3ATI (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); -GLAPI void APIENTRY glSetFragmentShaderConstantATI (GLuint, const GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef GLuint (APIENTRYP PFNGLGENFRAGMENTSHADERSATIPROC) (GLuint range); -typedef void (APIENTRYP PFNGLBINDFRAGMENTSHADERATIPROC) (GLuint id); -typedef void (APIENTRYP PFNGLDELETEFRAGMENTSHADERATIPROC) (GLuint id); -typedef void (APIENTRYP PFNGLBEGINFRAGMENTSHADERATIPROC) (void); -typedef void (APIENTRYP PFNGLENDFRAGMENTSHADERATIPROC) (void); -typedef void (APIENTRYP PFNGLPASSTEXCOORDATIPROC) (GLuint dst, GLuint coord, GLenum swizzle); -typedef void (APIENTRYP PFNGLSAMPLEMAPATIPROC) (GLuint dst, GLuint interp, GLenum swizzle); -typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); -typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); -typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod); -typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); -typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); -typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod); -typedef void (APIENTRYP PFNGLSETFRAGMENTSHADERCONSTANTATIPROC) (GLuint dst, const GLfloat *value); -#endif - -#ifndef GL_ATI_pn_triangles -#define GL_ATI_pn_triangles 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glPNTrianglesiATI (GLenum, GLint); -GLAPI void APIENTRY glPNTrianglesfATI (GLenum, GLfloat); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLPNTRIANGLESIATIPROC) (GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLPNTRIANGLESFATIPROC) (GLenum pname, GLfloat param); -#endif - -#ifndef GL_ATI_vertex_array_object -#define GL_ATI_vertex_array_object 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI GLuint APIENTRY glNewObjectBufferATI (GLsizei, const GLvoid *, GLenum); -GLAPI GLboolean APIENTRY glIsObjectBufferATI (GLuint); -GLAPI void APIENTRY glUpdateObjectBufferATI (GLuint, GLuint, GLsizei, const GLvoid *, GLenum); -GLAPI void APIENTRY glGetObjectBufferfvATI (GLuint, GLenum, GLfloat *); -GLAPI void APIENTRY glGetObjectBufferivATI (GLuint, GLenum, GLint *); -GLAPI void APIENTRY glFreeObjectBufferATI (GLuint); -GLAPI void APIENTRY glArrayObjectATI (GLenum, GLint, GLenum, GLsizei, GLuint, GLuint); -GLAPI void APIENTRY glGetArrayObjectfvATI (GLenum, GLenum, GLfloat *); -GLAPI void APIENTRY glGetArrayObjectivATI (GLenum, GLenum, GLint *); -GLAPI void APIENTRY glVariantArrayObjectATI (GLuint, GLenum, GLsizei, GLuint, GLuint); -GLAPI void APIENTRY glGetVariantArrayObjectfvATI (GLuint, GLenum, GLfloat *); -GLAPI void APIENTRY glGetVariantArrayObjectivATI (GLuint, GLenum, GLint *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef GLuint (APIENTRYP PFNGLNEWOBJECTBUFFERATIPROC) (GLsizei size, const GLvoid *pointer, GLenum usage); -typedef GLboolean (APIENTRYP PFNGLISOBJECTBUFFERATIPROC) (GLuint buffer); -typedef void (APIENTRYP PFNGLUPDATEOBJECTBUFFERATIPROC) (GLuint buffer, GLuint offset, GLsizei size, const GLvoid *pointer, GLenum preserve); -typedef void (APIENTRYP PFNGLGETOBJECTBUFFERFVATIPROC) (GLuint buffer, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETOBJECTBUFFERIVATIPROC) (GLuint buffer, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLFREEOBJECTBUFFERATIPROC) (GLuint buffer); -typedef void (APIENTRYP PFNGLARRAYOBJECTATIPROC) (GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); -typedef void (APIENTRYP PFNGLGETARRAYOBJECTFVATIPROC) (GLenum array, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETARRAYOBJECTIVATIPROC) (GLenum array, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLVARIANTARRAYOBJECTATIPROC) (GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); -typedef void (APIENTRYP PFNGLGETVARIANTARRAYOBJECTFVATIPROC) (GLuint id, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETVARIANTARRAYOBJECTIVATIPROC) (GLuint id, GLenum pname, GLint *params); -#endif - -#ifndef GL_EXT_vertex_shader -#define GL_EXT_vertex_shader 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBeginVertexShaderEXT (void); -GLAPI void APIENTRY glEndVertexShaderEXT (void); -GLAPI void APIENTRY glBindVertexShaderEXT (GLuint); -GLAPI GLuint APIENTRY glGenVertexShadersEXT (GLuint); -GLAPI void APIENTRY glDeleteVertexShaderEXT (GLuint); -GLAPI void APIENTRY glShaderOp1EXT (GLenum, GLuint, GLuint); -GLAPI void APIENTRY glShaderOp2EXT (GLenum, GLuint, GLuint, GLuint); -GLAPI void APIENTRY glShaderOp3EXT (GLenum, GLuint, GLuint, GLuint, GLuint); -GLAPI void APIENTRY glSwizzleEXT (GLuint, GLuint, GLenum, GLenum, GLenum, GLenum); -GLAPI void APIENTRY glWriteMaskEXT (GLuint, GLuint, GLenum, GLenum, GLenum, GLenum); -GLAPI void APIENTRY glInsertComponentEXT (GLuint, GLuint, GLuint); -GLAPI void APIENTRY glExtractComponentEXT (GLuint, GLuint, GLuint); -GLAPI GLuint APIENTRY glGenSymbolsEXT (GLenum, GLenum, GLenum, GLuint); -GLAPI void APIENTRY glSetInvariantEXT (GLuint, GLenum, const GLvoid *); -GLAPI void APIENTRY glSetLocalConstantEXT (GLuint, GLenum, const GLvoid *); -GLAPI void APIENTRY glVariantbvEXT (GLuint, const GLbyte *); -GLAPI void APIENTRY glVariantsvEXT (GLuint, const GLshort *); -GLAPI void APIENTRY glVariantivEXT (GLuint, const GLint *); -GLAPI void APIENTRY glVariantfvEXT (GLuint, const GLfloat *); -GLAPI void APIENTRY glVariantdvEXT (GLuint, const GLdouble *); -GLAPI void APIENTRY glVariantubvEXT (GLuint, const GLubyte *); -GLAPI void APIENTRY glVariantusvEXT (GLuint, const GLushort *); -GLAPI void APIENTRY glVariantuivEXT (GLuint, const GLuint *); -GLAPI void APIENTRY glVariantPointerEXT (GLuint, GLenum, GLuint, const GLvoid *); -GLAPI void APIENTRY glEnableVariantClientStateEXT (GLuint); -GLAPI void APIENTRY glDisableVariantClientStateEXT (GLuint); -GLAPI GLuint APIENTRY glBindLightParameterEXT (GLenum, GLenum); -GLAPI GLuint APIENTRY glBindMaterialParameterEXT (GLenum, GLenum); -GLAPI GLuint APIENTRY glBindTexGenParameterEXT (GLenum, GLenum, GLenum); -GLAPI GLuint APIENTRY glBindTextureUnitParameterEXT (GLenum, GLenum); -GLAPI GLuint APIENTRY glBindParameterEXT (GLenum); -GLAPI GLboolean APIENTRY glIsVariantEnabledEXT (GLuint, GLenum); -GLAPI void APIENTRY glGetVariantBooleanvEXT (GLuint, GLenum, GLboolean *); -GLAPI void APIENTRY glGetVariantIntegervEXT (GLuint, GLenum, GLint *); -GLAPI void APIENTRY glGetVariantFloatvEXT (GLuint, GLenum, GLfloat *); -GLAPI void APIENTRY glGetVariantPointervEXT (GLuint, GLenum, GLvoid* *); -GLAPI void APIENTRY glGetInvariantBooleanvEXT (GLuint, GLenum, GLboolean *); -GLAPI void APIENTRY glGetInvariantIntegervEXT (GLuint, GLenum, GLint *); -GLAPI void APIENTRY glGetInvariantFloatvEXT (GLuint, GLenum, GLfloat *); -GLAPI void APIENTRY glGetLocalConstantBooleanvEXT (GLuint, GLenum, GLboolean *); -GLAPI void APIENTRY glGetLocalConstantIntegervEXT (GLuint, GLenum, GLint *); -GLAPI void APIENTRY glGetLocalConstantFloatvEXT (GLuint, GLenum, GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBEGINVERTEXSHADEREXTPROC) (void); -typedef void (APIENTRYP PFNGLENDVERTEXSHADEREXTPROC) (void); -typedef void (APIENTRYP PFNGLBINDVERTEXSHADEREXTPROC) (GLuint id); -typedef GLuint (APIENTRYP PFNGLGENVERTEXSHADERSEXTPROC) (GLuint range); -typedef void (APIENTRYP PFNGLDELETEVERTEXSHADEREXTPROC) (GLuint id); -typedef void (APIENTRYP PFNGLSHADEROP1EXTPROC) (GLenum op, GLuint res, GLuint arg1); -typedef void (APIENTRYP PFNGLSHADEROP2EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2); -typedef void (APIENTRYP PFNGLSHADEROP3EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3); -typedef void (APIENTRYP PFNGLSWIZZLEEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); -typedef void (APIENTRYP PFNGLWRITEMASKEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); -typedef void (APIENTRYP PFNGLINSERTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num); -typedef void (APIENTRYP PFNGLEXTRACTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num); -typedef GLuint (APIENTRYP PFNGLGENSYMBOLSEXTPROC) (GLenum datatype, GLenum storagetype, GLenum range, GLuint components); -typedef void (APIENTRYP PFNGLSETINVARIANTEXTPROC) (GLuint id, GLenum type, const GLvoid *addr); -typedef void (APIENTRYP PFNGLSETLOCALCONSTANTEXTPROC) (GLuint id, GLenum type, const GLvoid *addr); -typedef void (APIENTRYP PFNGLVARIANTBVEXTPROC) (GLuint id, const GLbyte *addr); -typedef void (APIENTRYP PFNGLVARIANTSVEXTPROC) (GLuint id, const GLshort *addr); -typedef void (APIENTRYP PFNGLVARIANTIVEXTPROC) (GLuint id, const GLint *addr); -typedef void (APIENTRYP PFNGLVARIANTFVEXTPROC) (GLuint id, const GLfloat *addr); -typedef void (APIENTRYP PFNGLVARIANTDVEXTPROC) (GLuint id, const GLdouble *addr); -typedef void (APIENTRYP PFNGLVARIANTUBVEXTPROC) (GLuint id, const GLubyte *addr); -typedef void (APIENTRYP PFNGLVARIANTUSVEXTPROC) (GLuint id, const GLushort *addr); -typedef void (APIENTRYP PFNGLVARIANTUIVEXTPROC) (GLuint id, const GLuint *addr); -typedef void (APIENTRYP PFNGLVARIANTPOINTEREXTPROC) (GLuint id, GLenum type, GLuint stride, const GLvoid *addr); -typedef void (APIENTRYP PFNGLENABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id); -typedef void (APIENTRYP PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id); -typedef GLuint (APIENTRYP PFNGLBINDLIGHTPARAMETEREXTPROC) (GLenum light, GLenum value); -typedef GLuint (APIENTRYP PFNGLBINDMATERIALPARAMETEREXTPROC) (GLenum face, GLenum value); -typedef GLuint (APIENTRYP PFNGLBINDTEXGENPARAMETEREXTPROC) (GLenum unit, GLenum coord, GLenum value); -typedef GLuint (APIENTRYP PFNGLBINDTEXTUREUNITPARAMETEREXTPROC) (GLenum unit, GLenum value); -typedef GLuint (APIENTRYP PFNGLBINDPARAMETEREXTPROC) (GLenum value); -typedef GLboolean (APIENTRYP PFNGLISVARIANTENABLEDEXTPROC) (GLuint id, GLenum cap); -typedef void (APIENTRYP PFNGLGETVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); -typedef void (APIENTRYP PFNGLGETVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); -typedef void (APIENTRYP PFNGLGETVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); -typedef void (APIENTRYP PFNGLGETVARIANTPOINTERVEXTPROC) (GLuint id, GLenum value, GLvoid* *data); -typedef void (APIENTRYP PFNGLGETINVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); -typedef void (APIENTRYP PFNGLGETINVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); -typedef void (APIENTRYP PFNGLGETINVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); -typedef void (APIENTRYP PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); -typedef void (APIENTRYP PFNGLGETLOCALCONSTANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); -typedef void (APIENTRYP PFNGLGETLOCALCONSTANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); -#endif - -#ifndef GL_ATI_vertex_streams -#define GL_ATI_vertex_streams 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glVertexStream1sATI (GLenum, GLshort); -GLAPI void APIENTRY glVertexStream1svATI (GLenum, const GLshort *); -GLAPI void APIENTRY glVertexStream1iATI (GLenum, GLint); -GLAPI void APIENTRY glVertexStream1ivATI (GLenum, const GLint *); -GLAPI void APIENTRY glVertexStream1fATI (GLenum, GLfloat); -GLAPI void APIENTRY glVertexStream1fvATI (GLenum, const GLfloat *); -GLAPI void APIENTRY glVertexStream1dATI (GLenum, GLdouble); -GLAPI void APIENTRY glVertexStream1dvATI (GLenum, const GLdouble *); -GLAPI void APIENTRY glVertexStream2sATI (GLenum, GLshort, GLshort); -GLAPI void APIENTRY glVertexStream2svATI (GLenum, const GLshort *); -GLAPI void APIENTRY glVertexStream2iATI (GLenum, GLint, GLint); -GLAPI void APIENTRY glVertexStream2ivATI (GLenum, const GLint *); -GLAPI void APIENTRY glVertexStream2fATI (GLenum, GLfloat, GLfloat); -GLAPI void APIENTRY glVertexStream2fvATI (GLenum, const GLfloat *); -GLAPI void APIENTRY glVertexStream2dATI (GLenum, GLdouble, GLdouble); -GLAPI void APIENTRY glVertexStream2dvATI (GLenum, const GLdouble *); -GLAPI void APIENTRY glVertexStream3sATI (GLenum, GLshort, GLshort, GLshort); -GLAPI void APIENTRY glVertexStream3svATI (GLenum, const GLshort *); -GLAPI void APIENTRY glVertexStream3iATI (GLenum, GLint, GLint, GLint); -GLAPI void APIENTRY glVertexStream3ivATI (GLenum, const GLint *); -GLAPI void APIENTRY glVertexStream3fATI (GLenum, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glVertexStream3fvATI (GLenum, const GLfloat *); -GLAPI void APIENTRY glVertexStream3dATI (GLenum, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glVertexStream3dvATI (GLenum, const GLdouble *); -GLAPI void APIENTRY glVertexStream4sATI (GLenum, GLshort, GLshort, GLshort, GLshort); -GLAPI void APIENTRY glVertexStream4svATI (GLenum, const GLshort *); -GLAPI void APIENTRY glVertexStream4iATI (GLenum, GLint, GLint, GLint, GLint); -GLAPI void APIENTRY glVertexStream4ivATI (GLenum, const GLint *); -GLAPI void APIENTRY glVertexStream4fATI (GLenum, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glVertexStream4fvATI (GLenum, const GLfloat *); -GLAPI void APIENTRY glVertexStream4dATI (GLenum, GLdouble, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glVertexStream4dvATI (GLenum, const GLdouble *); -GLAPI void APIENTRY glNormalStream3bATI (GLenum, GLbyte, GLbyte, GLbyte); -GLAPI void APIENTRY glNormalStream3bvATI (GLenum, const GLbyte *); -GLAPI void APIENTRY glNormalStream3sATI (GLenum, GLshort, GLshort, GLshort); -GLAPI void APIENTRY glNormalStream3svATI (GLenum, const GLshort *); -GLAPI void APIENTRY glNormalStream3iATI (GLenum, GLint, GLint, GLint); -GLAPI void APIENTRY glNormalStream3ivATI (GLenum, const GLint *); -GLAPI void APIENTRY glNormalStream3fATI (GLenum, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glNormalStream3fvATI (GLenum, const GLfloat *); -GLAPI void APIENTRY glNormalStream3dATI (GLenum, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glNormalStream3dvATI (GLenum, const GLdouble *); -GLAPI void APIENTRY glClientActiveVertexStreamATI (GLenum); -GLAPI void APIENTRY glVertexBlendEnviATI (GLenum, GLint); -GLAPI void APIENTRY glVertexBlendEnvfATI (GLenum, GLfloat); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLVERTEXSTREAM1SATIPROC) (GLenum stream, GLshort x); -typedef void (APIENTRYP PFNGLVERTEXSTREAM1SVATIPROC) (GLenum stream, const GLshort *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM1IATIPROC) (GLenum stream, GLint x); -typedef void (APIENTRYP PFNGLVERTEXSTREAM1IVATIPROC) (GLenum stream, const GLint *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM1FATIPROC) (GLenum stream, GLfloat x); -typedef void (APIENTRYP PFNGLVERTEXSTREAM1FVATIPROC) (GLenum stream, const GLfloat *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM1DATIPROC) (GLenum stream, GLdouble x); -typedef void (APIENTRYP PFNGLVERTEXSTREAM1DVATIPROC) (GLenum stream, const GLdouble *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM2SATIPROC) (GLenum stream, GLshort x, GLshort y); -typedef void (APIENTRYP PFNGLVERTEXSTREAM2SVATIPROC) (GLenum stream, const GLshort *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM2IATIPROC) (GLenum stream, GLint x, GLint y); -typedef void (APIENTRYP PFNGLVERTEXSTREAM2IVATIPROC) (GLenum stream, const GLint *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM2FATIPROC) (GLenum stream, GLfloat x, GLfloat y); -typedef void (APIENTRYP PFNGLVERTEXSTREAM2FVATIPROC) (GLenum stream, const GLfloat *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM2DATIPROC) (GLenum stream, GLdouble x, GLdouble y); -typedef void (APIENTRYP PFNGLVERTEXSTREAM2DVATIPROC) (GLenum stream, const GLdouble *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM3SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z); -typedef void (APIENTRYP PFNGLVERTEXSTREAM3SVATIPROC) (GLenum stream, const GLshort *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM3IATIPROC) (GLenum stream, GLint x, GLint y, GLint z); -typedef void (APIENTRYP PFNGLVERTEXSTREAM3IVATIPROC) (GLenum stream, const GLint *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM3FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLVERTEXSTREAM3FVATIPROC) (GLenum stream, const GLfloat *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM3DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLVERTEXSTREAM3DVATIPROC) (GLenum stream, const GLdouble *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM4SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w); -typedef void (APIENTRYP PFNGLVERTEXSTREAM4SVATIPROC) (GLenum stream, const GLshort *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM4IATIPROC) (GLenum stream, GLint x, GLint y, GLint z, GLint w); -typedef void (APIENTRYP PFNGLVERTEXSTREAM4IVATIPROC) (GLenum stream, const GLint *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM4FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLVERTEXSTREAM4FVATIPROC) (GLenum stream, const GLfloat *coords); -typedef void (APIENTRYP PFNGLVERTEXSTREAM4DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLVERTEXSTREAM4DVATIPROC) (GLenum stream, const GLdouble *coords); -typedef void (APIENTRYP PFNGLNORMALSTREAM3BATIPROC) (GLenum stream, GLbyte nx, GLbyte ny, GLbyte nz); -typedef void (APIENTRYP PFNGLNORMALSTREAM3BVATIPROC) (GLenum stream, const GLbyte *coords); -typedef void (APIENTRYP PFNGLNORMALSTREAM3SATIPROC) (GLenum stream, GLshort nx, GLshort ny, GLshort nz); -typedef void (APIENTRYP PFNGLNORMALSTREAM3SVATIPROC) (GLenum stream, const GLshort *coords); -typedef void (APIENTRYP PFNGLNORMALSTREAM3IATIPROC) (GLenum stream, GLint nx, GLint ny, GLint nz); -typedef void (APIENTRYP PFNGLNORMALSTREAM3IVATIPROC) (GLenum stream, const GLint *coords); -typedef void (APIENTRYP PFNGLNORMALSTREAM3FATIPROC) (GLenum stream, GLfloat nx, GLfloat ny, GLfloat nz); -typedef void (APIENTRYP PFNGLNORMALSTREAM3FVATIPROC) (GLenum stream, const GLfloat *coords); -typedef void (APIENTRYP PFNGLNORMALSTREAM3DATIPROC) (GLenum stream, GLdouble nx, GLdouble ny, GLdouble nz); -typedef void (APIENTRYP PFNGLNORMALSTREAM3DVATIPROC) (GLenum stream, const GLdouble *coords); -typedef void (APIENTRYP PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC) (GLenum stream); -typedef void (APIENTRYP PFNGLVERTEXBLENDENVIATIPROC) (GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLVERTEXBLENDENVFATIPROC) (GLenum pname, GLfloat param); -#endif - -#ifndef GL_ATI_element_array -#define GL_ATI_element_array 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glElementPointerATI (GLenum, const GLvoid *); -GLAPI void APIENTRY glDrawElementArrayATI (GLenum, GLsizei); -GLAPI void APIENTRY glDrawRangeElementArrayATI (GLenum, GLuint, GLuint, GLsizei); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLELEMENTPOINTERATIPROC) (GLenum type, const GLvoid *pointer); -typedef void (APIENTRYP PFNGLDRAWELEMENTARRAYATIPROC) (GLenum mode, GLsizei count); -typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTARRAYATIPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count); -#endif - -#ifndef GL_SUN_mesh_array -#define GL_SUN_mesh_array 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDrawMeshArraysSUN (GLenum, GLint, GLsizei, GLsizei); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLDRAWMESHARRAYSSUNPROC) (GLenum mode, GLint first, GLsizei count, GLsizei width); -#endif - -#ifndef GL_SUN_slice_accum -#define GL_SUN_slice_accum 1 -#endif - -#ifndef GL_NV_multisample_filter_hint -#define GL_NV_multisample_filter_hint 1 -#endif - -#ifndef GL_NV_depth_clamp -#define GL_NV_depth_clamp 1 -#endif - -#ifndef GL_NV_occlusion_query -#define GL_NV_occlusion_query 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glGenOcclusionQueriesNV (GLsizei, GLuint *); -GLAPI void APIENTRY glDeleteOcclusionQueriesNV (GLsizei, const GLuint *); -GLAPI GLboolean APIENTRY glIsOcclusionQueryNV (GLuint); -GLAPI void APIENTRY glBeginOcclusionQueryNV (GLuint); -GLAPI void APIENTRY glEndOcclusionQueryNV (void); -GLAPI void APIENTRY glGetOcclusionQueryivNV (GLuint, GLenum, GLint *); -GLAPI void APIENTRY glGetOcclusionQueryuivNV (GLuint, GLenum, GLuint *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLGENOCCLUSIONQUERIESNVPROC) (GLsizei n, GLuint *ids); -typedef void (APIENTRYP PFNGLDELETEOCCLUSIONQUERIESNVPROC) (GLsizei n, const GLuint *ids); -typedef GLboolean (APIENTRYP PFNGLISOCCLUSIONQUERYNVPROC) (GLuint id); -typedef void (APIENTRYP PFNGLBEGINOCCLUSIONQUERYNVPROC) (GLuint id); -typedef void (APIENTRYP PFNGLENDOCCLUSIONQUERYNVPROC) (void); -typedef void (APIENTRYP PFNGLGETOCCLUSIONQUERYIVNVPROC) (GLuint id, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETOCCLUSIONQUERYUIVNVPROC) (GLuint id, GLenum pname, GLuint *params); -#endif - -#ifndef GL_NV_point_sprite -#define GL_NV_point_sprite 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glPointParameteriNV (GLenum, GLint); -GLAPI void APIENTRY glPointParameterivNV (GLenum, const GLint *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLPOINTPARAMETERINVPROC) (GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLPOINTPARAMETERIVNVPROC) (GLenum pname, const GLint *params); -#endif - -#ifndef GL_NV_texture_shader3 -#define GL_NV_texture_shader3 1 -#endif - -#ifndef GL_NV_vertex_program1_1 -#define GL_NV_vertex_program1_1 1 -#endif - -#ifndef GL_EXT_shadow_funcs -#define GL_EXT_shadow_funcs 1 -#endif - -#ifndef GL_EXT_stencil_two_side -#define GL_EXT_stencil_two_side 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glActiveStencilFaceEXT (GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLACTIVESTENCILFACEEXTPROC) (GLenum face); -#endif - -#ifndef GL_ATI_text_fragment_shader -#define GL_ATI_text_fragment_shader 1 -#endif - -#ifndef GL_APPLE_client_storage -#define GL_APPLE_client_storage 1 -#endif - -#ifndef GL_APPLE_element_array -#define GL_APPLE_element_array 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glElementPointerAPPLE (GLenum, const GLvoid *); -GLAPI void APIENTRY glDrawElementArrayAPPLE (GLenum, GLint, GLsizei); -GLAPI void APIENTRY glDrawRangeElementArrayAPPLE (GLenum, GLuint, GLuint, GLint, GLsizei); -GLAPI void APIENTRY glMultiDrawElementArrayAPPLE (GLenum, const GLint *, const GLsizei *, GLsizei); -GLAPI void APIENTRY glMultiDrawRangeElementArrayAPPLE (GLenum, GLuint, GLuint, const GLint *, const GLsizei *, GLsizei); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLELEMENTPOINTERAPPLEPROC) (GLenum type, const GLvoid *pointer); -typedef void (APIENTRYP PFNGLDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, GLint first, GLsizei count); -typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count); -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount); -typedef void (APIENTRYP PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, const GLint *first, const GLsizei *count, GLsizei primcount); -#endif - -#ifndef GL_APPLE_fence -#define GL_APPLE_fence 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glGenFencesAPPLE (GLsizei, GLuint *); -GLAPI void APIENTRY glDeleteFencesAPPLE (GLsizei, const GLuint *); -GLAPI void APIENTRY glSetFenceAPPLE (GLuint); -GLAPI GLboolean APIENTRY glIsFenceAPPLE (GLuint); -GLAPI GLboolean APIENTRY glTestFenceAPPLE (GLuint); -GLAPI void APIENTRY glFinishFenceAPPLE (GLuint); -GLAPI GLboolean APIENTRY glTestObjectAPPLE (GLenum, GLuint); -GLAPI void APIENTRY glFinishObjectAPPLE (GLenum, GLint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLGENFENCESAPPLEPROC) (GLsizei n, GLuint *fences); -typedef void (APIENTRYP PFNGLDELETEFENCESAPPLEPROC) (GLsizei n, const GLuint *fences); -typedef void (APIENTRYP PFNGLSETFENCEAPPLEPROC) (GLuint fence); -typedef GLboolean (APIENTRYP PFNGLISFENCEAPPLEPROC) (GLuint fence); -typedef GLboolean (APIENTRYP PFNGLTESTFENCEAPPLEPROC) (GLuint fence); -typedef void (APIENTRYP PFNGLFINISHFENCEAPPLEPROC) (GLuint fence); -typedef GLboolean (APIENTRYP PFNGLTESTOBJECTAPPLEPROC) (GLenum object, GLuint name); -typedef void (APIENTRYP PFNGLFINISHOBJECTAPPLEPROC) (GLenum object, GLint name); -#endif - -#ifndef GL_APPLE_vertex_array_object -#define GL_APPLE_vertex_array_object 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBindVertexArrayAPPLE (GLuint); -GLAPI void APIENTRY glDeleteVertexArraysAPPLE (GLsizei, const GLuint *); -GLAPI void APIENTRY glGenVertexArraysAPPLE (GLsizei, GLuint *); -GLAPI GLboolean APIENTRY glIsVertexArrayAPPLE (GLuint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBINDVERTEXARRAYAPPLEPROC) (GLuint array); -typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSAPPLEPROC) (GLsizei n, const GLuint *arrays); -typedef void (APIENTRYP PFNGLGENVERTEXARRAYSAPPLEPROC) (GLsizei n, GLuint *arrays); -typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYAPPLEPROC) (GLuint array); -#endif - -#ifndef GL_APPLE_vertex_array_range -#define GL_APPLE_vertex_array_range 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glVertexArrayRangeAPPLE (GLsizei, GLvoid *); -GLAPI void APIENTRY glFlushVertexArrayRangeAPPLE (GLsizei, GLvoid *); -GLAPI void APIENTRY glVertexArrayParameteriAPPLE (GLenum, GLint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, GLvoid *pointer); -typedef void (APIENTRYP PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, GLvoid *pointer); -typedef void (APIENTRYP PFNGLVERTEXARRAYPARAMETERIAPPLEPROC) (GLenum pname, GLint param); -#endif - -#ifndef GL_APPLE_ycbcr_422 -#define GL_APPLE_ycbcr_422 1 -#endif - -#ifndef GL_S3_s3tc -#define GL_S3_s3tc 1 -#endif - -#ifndef GL_ATI_draw_buffers -#define GL_ATI_draw_buffers 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDrawBuffersATI (GLsizei, const GLenum *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLDRAWBUFFERSATIPROC) (GLsizei n, const GLenum *bufs); -#endif - -#ifndef GL_ATI_pixel_format_float -#define GL_ATI_pixel_format_float 1 -/* This is really a WGL extension, but defines some associated GL enums. - * ATI does not export "GL_ATI_pixel_format_float" in the GL_EXTENSIONS string. - */ -#endif - -#ifndef GL_ATI_texture_env_combine3 -#define GL_ATI_texture_env_combine3 1 -#endif - -#ifndef GL_ATI_texture_float -#define GL_ATI_texture_float 1 -#endif - -#ifndef GL_NV_float_buffer -#define GL_NV_float_buffer 1 -#endif - -#ifndef GL_NV_fragment_program -#define GL_NV_fragment_program 1 -/* Some NV_fragment_program entry points are shared with ARB_vertex_program. */ -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glProgramNamedParameter4fNV (GLuint, GLsizei, const GLubyte *, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glProgramNamedParameter4dNV (GLuint, GLsizei, const GLubyte *, GLdouble, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glProgramNamedParameter4fvNV (GLuint, GLsizei, const GLubyte *, const GLfloat *); -GLAPI void APIENTRY glProgramNamedParameter4dvNV (GLuint, GLsizei, const GLubyte *, const GLdouble *); -GLAPI void APIENTRY glGetProgramNamedParameterfvNV (GLuint, GLsizei, const GLubyte *, GLfloat *); -GLAPI void APIENTRY glGetProgramNamedParameterdvNV (GLuint, GLsizei, const GLubyte *, GLdouble *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4FNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4DNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, const GLfloat *v); -typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, const GLdouble *v); -typedef void (APIENTRYP PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat *params); -typedef void (APIENTRYP PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLdouble *params); -#endif - -#ifndef GL_NV_half_float -#define GL_NV_half_float 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glVertex2hNV (GLhalfNV, GLhalfNV); -GLAPI void APIENTRY glVertex2hvNV (const GLhalfNV *); -GLAPI void APIENTRY glVertex3hNV (GLhalfNV, GLhalfNV, GLhalfNV); -GLAPI void APIENTRY glVertex3hvNV (const GLhalfNV *); -GLAPI void APIENTRY glVertex4hNV (GLhalfNV, GLhalfNV, GLhalfNV, GLhalfNV); -GLAPI void APIENTRY glVertex4hvNV (const GLhalfNV *); -GLAPI void APIENTRY glNormal3hNV (GLhalfNV, GLhalfNV, GLhalfNV); -GLAPI void APIENTRY glNormal3hvNV (const GLhalfNV *); -GLAPI void APIENTRY glColor3hNV (GLhalfNV, GLhalfNV, GLhalfNV); -GLAPI void APIENTRY glColor3hvNV (const GLhalfNV *); -GLAPI void APIENTRY glColor4hNV (GLhalfNV, GLhalfNV, GLhalfNV, GLhalfNV); -GLAPI void APIENTRY glColor4hvNV (const GLhalfNV *); -GLAPI void APIENTRY glTexCoord1hNV (GLhalfNV); -GLAPI void APIENTRY glTexCoord1hvNV (const GLhalfNV *); -GLAPI void APIENTRY glTexCoord2hNV (GLhalfNV, GLhalfNV); -GLAPI void APIENTRY glTexCoord2hvNV (const GLhalfNV *); -GLAPI void APIENTRY glTexCoord3hNV (GLhalfNV, GLhalfNV, GLhalfNV); -GLAPI void APIENTRY glTexCoord3hvNV (const GLhalfNV *); -GLAPI void APIENTRY glTexCoord4hNV (GLhalfNV, GLhalfNV, GLhalfNV, GLhalfNV); -GLAPI void APIENTRY glTexCoord4hvNV (const GLhalfNV *); -GLAPI void APIENTRY glMultiTexCoord1hNV (GLenum, GLhalfNV); -GLAPI void APIENTRY glMultiTexCoord1hvNV (GLenum, const GLhalfNV *); -GLAPI void APIENTRY glMultiTexCoord2hNV (GLenum, GLhalfNV, GLhalfNV); -GLAPI void APIENTRY glMultiTexCoord2hvNV (GLenum, const GLhalfNV *); -GLAPI void APIENTRY glMultiTexCoord3hNV (GLenum, GLhalfNV, GLhalfNV, GLhalfNV); -GLAPI void APIENTRY glMultiTexCoord3hvNV (GLenum, const GLhalfNV *); -GLAPI void APIENTRY glMultiTexCoord4hNV (GLenum, GLhalfNV, GLhalfNV, GLhalfNV, GLhalfNV); -GLAPI void APIENTRY glMultiTexCoord4hvNV (GLenum, const GLhalfNV *); -GLAPI void APIENTRY glFogCoordhNV (GLhalfNV); -GLAPI void APIENTRY glFogCoordhvNV (const GLhalfNV *); -GLAPI void APIENTRY glSecondaryColor3hNV (GLhalfNV, GLhalfNV, GLhalfNV); -GLAPI void APIENTRY glSecondaryColor3hvNV (const GLhalfNV *); -GLAPI void APIENTRY glVertexWeighthNV (GLhalfNV); -GLAPI void APIENTRY glVertexWeighthvNV (const GLhalfNV *); -GLAPI void APIENTRY glVertexAttrib1hNV (GLuint, GLhalfNV); -GLAPI void APIENTRY glVertexAttrib1hvNV (GLuint, const GLhalfNV *); -GLAPI void APIENTRY glVertexAttrib2hNV (GLuint, GLhalfNV, GLhalfNV); -GLAPI void APIENTRY glVertexAttrib2hvNV (GLuint, const GLhalfNV *); -GLAPI void APIENTRY glVertexAttrib3hNV (GLuint, GLhalfNV, GLhalfNV, GLhalfNV); -GLAPI void APIENTRY glVertexAttrib3hvNV (GLuint, const GLhalfNV *); -GLAPI void APIENTRY glVertexAttrib4hNV (GLuint, GLhalfNV, GLhalfNV, GLhalfNV, GLhalfNV); -GLAPI void APIENTRY glVertexAttrib4hvNV (GLuint, const GLhalfNV *); -GLAPI void APIENTRY glVertexAttribs1hvNV (GLuint, GLsizei, const GLhalfNV *); -GLAPI void APIENTRY glVertexAttribs2hvNV (GLuint, GLsizei, const GLhalfNV *); -GLAPI void APIENTRY glVertexAttribs3hvNV (GLuint, GLsizei, const GLhalfNV *); -GLAPI void APIENTRY glVertexAttribs4hvNV (GLuint, GLsizei, const GLhalfNV *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLVERTEX2HNVPROC) (GLhalfNV x, GLhalfNV y); -typedef void (APIENTRYP PFNGLVERTEX2HVNVPROC) (const GLhalfNV *v); -typedef void (APIENTRYP PFNGLVERTEX3HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z); -typedef void (APIENTRYP PFNGLVERTEX3HVNVPROC) (const GLhalfNV *v); -typedef void (APIENTRYP PFNGLVERTEX4HNVPROC) (GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w); -typedef void (APIENTRYP PFNGLVERTEX4HVNVPROC) (const GLhalfNV *v); -typedef void (APIENTRYP PFNGLNORMAL3HNVPROC) (GLhalfNV nx, GLhalfNV ny, GLhalfNV nz); -typedef void (APIENTRYP PFNGLNORMAL3HVNVPROC) (const GLhalfNV *v); -typedef void (APIENTRYP PFNGLCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue); -typedef void (APIENTRYP PFNGLCOLOR3HVNVPROC) (const GLhalfNV *v); -typedef void (APIENTRYP PFNGLCOLOR4HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue, GLhalfNV alpha); -typedef void (APIENTRYP PFNGLCOLOR4HVNVPROC) (const GLhalfNV *v); -typedef void (APIENTRYP PFNGLTEXCOORD1HNVPROC) (GLhalfNV s); -typedef void (APIENTRYP PFNGLTEXCOORD1HVNVPROC) (const GLhalfNV *v); -typedef void (APIENTRYP PFNGLTEXCOORD2HNVPROC) (GLhalfNV s, GLhalfNV t); -typedef void (APIENTRYP PFNGLTEXCOORD2HVNVPROC) (const GLhalfNV *v); -typedef void (APIENTRYP PFNGLTEXCOORD3HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r); -typedef void (APIENTRYP PFNGLTEXCOORD3HVNVPROC) (const GLhalfNV *v); -typedef void (APIENTRYP PFNGLTEXCOORD4HNVPROC) (GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q); -typedef void (APIENTRYP PFNGLTEXCOORD4HVNVPROC) (const GLhalfNV *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1HNVPROC) (GLenum target, GLhalfNV s); -typedef void (APIENTRYP PFNGLMULTITEXCOORD1HVNVPROC) (GLenum target, const GLhalfNV *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t); -typedef void (APIENTRYP PFNGLMULTITEXCOORD2HVNVPROC) (GLenum target, const GLhalfNV *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r); -typedef void (APIENTRYP PFNGLMULTITEXCOORD3HVNVPROC) (GLenum target, const GLhalfNV *v); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4HNVPROC) (GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q); -typedef void (APIENTRYP PFNGLMULTITEXCOORD4HVNVPROC) (GLenum target, const GLhalfNV *v); -typedef void (APIENTRYP PFNGLFOGCOORDHNVPROC) (GLhalfNV fog); -typedef void (APIENTRYP PFNGLFOGCOORDHVNVPROC) (const GLhalfNV *fog); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3HNVPROC) (GLhalfNV red, GLhalfNV green, GLhalfNV blue); -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3HVNVPROC) (const GLhalfNV *v); -typedef void (APIENTRYP PFNGLVERTEXWEIGHTHNVPROC) (GLhalfNV weight); -typedef void (APIENTRYP PFNGLVERTEXWEIGHTHVNVPROC) (const GLhalfNV *weight); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1HNVPROC) (GLuint index, GLhalfNV x); -typedef void (APIENTRYP PFNGLVERTEXATTRIB1HVNVPROC) (GLuint index, const GLhalfNV *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y); -typedef void (APIENTRYP PFNGLVERTEXATTRIB2HVNVPROC) (GLuint index, const GLhalfNV *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z); -typedef void (APIENTRYP PFNGLVERTEXATTRIB3HVNVPROC) (GLuint index, const GLhalfNV *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4HNVPROC) (GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w); -typedef void (APIENTRYP PFNGLVERTEXATTRIB4HVNVPROC) (GLuint index, const GLhalfNV *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS1HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS2HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS3HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBS4HVNVPROC) (GLuint index, GLsizei n, const GLhalfNV *v); -#endif - -#ifndef GL_NV_pixel_data_range -#define GL_NV_pixel_data_range 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glPixelDataRangeNV (GLenum, GLsizei, GLvoid *); -GLAPI void APIENTRY glFlushPixelDataRangeNV (GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLPIXELDATARANGENVPROC) (GLenum target, GLsizei length, GLvoid *pointer); -typedef void (APIENTRYP PFNGLFLUSHPIXELDATARANGENVPROC) (GLenum target); -#endif - -#ifndef GL_NV_primitive_restart -#define GL_NV_primitive_restart 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glPrimitiveRestartNV (void); -GLAPI void APIENTRY glPrimitiveRestartIndexNV (GLuint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLPRIMITIVERESTARTNVPROC) (void); -typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXNVPROC) (GLuint index); -#endif - -#ifndef GL_NV_texture_expand_normal -#define GL_NV_texture_expand_normal 1 -#endif - -#ifndef GL_NV_vertex_program2 -#define GL_NV_vertex_program2 1 -#endif - -#ifndef GL_ATI_map_object_buffer -#define GL_ATI_map_object_buffer 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI GLvoid* APIENTRY glMapObjectBufferATI (GLuint); -GLAPI void APIENTRY glUnmapObjectBufferATI (GLuint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef GLvoid* (APIENTRYP PFNGLMAPOBJECTBUFFERATIPROC) (GLuint buffer); -typedef void (APIENTRYP PFNGLUNMAPOBJECTBUFFERATIPROC) (GLuint buffer); -#endif - -#ifndef GL_ATI_separate_stencil -#define GL_ATI_separate_stencil 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glStencilOpSeparateATI (GLenum, GLenum, GLenum, GLenum); -GLAPI void APIENTRY glStencilFuncSeparateATI (GLenum, GLenum, GLint, GLuint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEATIPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); -typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEATIPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); -#endif - -#ifndef GL_ATI_vertex_attrib_array_object -#define GL_ATI_vertex_attrib_array_object 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glVertexAttribArrayObjectATI (GLuint, GLint, GLenum, GLboolean, GLsizei, GLuint, GLuint); -GLAPI void APIENTRY glGetVertexAttribArrayObjectfvATI (GLuint, GLenum, GLfloat *); -GLAPI void APIENTRY glGetVertexAttribArrayObjectivATI (GLuint, GLenum, GLint *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLVERTEXATTRIBARRAYOBJECTATIPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC) (GLuint index, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC) (GLuint index, GLenum pname, GLint *params); -#endif - -#ifndef GL_OES_read_format -#define GL_OES_read_format 1 -#endif - -#ifndef GL_EXT_depth_bounds_test -#define GL_EXT_depth_bounds_test 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDepthBoundsEXT (GLclampd, GLclampd); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLDEPTHBOUNDSEXTPROC) (GLclampd zmin, GLclampd zmax); -#endif - -#ifndef GL_EXT_texture_mirror_clamp -#define GL_EXT_texture_mirror_clamp 1 -#endif - -#ifndef GL_EXT_blend_equation_separate -#define GL_EXT_blend_equation_separate 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBlendEquationSeparateEXT (GLenum, GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEEXTPROC) (GLenum modeRGB, GLenum modeAlpha); -#endif - -#ifndef GL_MESA_pack_invert -#define GL_MESA_pack_invert 1 -#endif - -#ifndef GL_MESA_ycbcr_texture -#define GL_MESA_ycbcr_texture 1 -#endif - -#ifndef GL_EXT_pixel_buffer_object -#define GL_EXT_pixel_buffer_object 1 -#endif - -#ifndef GL_NV_fragment_program_option -#define GL_NV_fragment_program_option 1 -#endif - -#ifndef GL_NV_fragment_program2 -#define GL_NV_fragment_program2 1 -#endif - -#ifndef GL_NV_vertex_program2_option -#define GL_NV_vertex_program2_option 1 -#endif - -#ifndef GL_NV_vertex_program3 -#define GL_NV_vertex_program3 1 -#endif - -#ifndef GL_EXT_framebuffer_object -#define GL_EXT_framebuffer_object 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI GLboolean APIENTRY glIsRenderbufferEXT (GLuint); -GLAPI void APIENTRY glBindRenderbufferEXT (GLenum, GLuint); -GLAPI void APIENTRY glDeleteRenderbuffersEXT (GLsizei, const GLuint *); -GLAPI void APIENTRY glGenRenderbuffersEXT (GLsizei, GLuint *); -GLAPI void APIENTRY glRenderbufferStorageEXT (GLenum, GLenum, GLsizei, GLsizei); -GLAPI void APIENTRY glGetRenderbufferParameterivEXT (GLenum, GLenum, GLint *); -GLAPI GLboolean APIENTRY glIsFramebufferEXT (GLuint); -GLAPI void APIENTRY glBindFramebufferEXT (GLenum, GLuint); -GLAPI void APIENTRY glDeleteFramebuffersEXT (GLsizei, const GLuint *); -GLAPI void APIENTRY glGenFramebuffersEXT (GLsizei, GLuint *); -GLAPI GLenum APIENTRY glCheckFramebufferStatusEXT (GLenum); -GLAPI void APIENTRY glFramebufferTexture1DEXT (GLenum, GLenum, GLenum, GLuint, GLint); -GLAPI void APIENTRY glFramebufferTexture2DEXT (GLenum, GLenum, GLenum, GLuint, GLint); -GLAPI void APIENTRY glFramebufferTexture3DEXT (GLenum, GLenum, GLenum, GLuint, GLint, GLint); -GLAPI void APIENTRY glFramebufferRenderbufferEXT (GLenum, GLenum, GLenum, GLuint); -GLAPI void APIENTRY glGetFramebufferAttachmentParameterivEXT (GLenum, GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGenerateMipmapEXT (GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFEREXTPROC) (GLuint renderbuffer); -typedef void (APIENTRYP PFNGLBINDRENDERBUFFEREXTPROC) (GLenum target, GLuint renderbuffer); -typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSEXTPROC) (GLsizei n, const GLuint *renderbuffers); -typedef void (APIENTRYP PFNGLGENRENDERBUFFERSEXTPROC) (GLsizei n, GLuint *renderbuffers); -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); -typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFEREXTPROC) (GLuint framebuffer); -typedef void (APIENTRYP PFNGLBINDFRAMEBUFFEREXTPROC) (GLenum target, GLuint framebuffer); -typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSEXTPROC) (GLsizei n, const GLuint *framebuffers); -typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSEXTPROC) (GLsizei n, GLuint *framebuffers); -typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC) (GLenum target); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); -typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGENERATEMIPMAPEXTPROC) (GLenum target); -#endif - -#ifndef GL_GREMEDY_string_marker -#define GL_GREMEDY_string_marker 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glStringMarkerGREMEDY (GLsizei, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLSTRINGMARKERGREMEDYPROC) (GLsizei len, const GLvoid *string); -#endif - -#ifndef GL_EXT_packed_depth_stencil -#define GL_EXT_packed_depth_stencil 1 -#endif - -#ifndef GL_EXT_stencil_clear_tag -#define GL_EXT_stencil_clear_tag 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glStencilClearTagEXT (GLsizei, GLuint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLSTENCILCLEARTAGEXTPROC) (GLsizei stencilTagBits, GLuint stencilClearTag); -#endif - -#ifndef GL_EXT_texture_sRGB -#define GL_EXT_texture_sRGB 1 -#endif - -#ifndef GL_EXT_framebuffer_blit -#define GL_EXT_framebuffer_blit 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBlitFramebufferEXT (GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBLITFRAMEBUFFEREXTPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -#endif - -#ifndef GL_EXT_framebuffer_multisample -#define GL_EXT_framebuffer_multisample 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glRenderbufferStorageMultisampleEXT (GLenum, GLsizei, GLenum, GLsizei, GLsizei); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -#endif - -#ifndef GL_MESAX_texture_stack -#define GL_MESAX_texture_stack 1 -#endif - -#ifndef GL_EXT_timer_query -#define GL_EXT_timer_query 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glGetQueryObjecti64vEXT (GLuint, GLenum, GLint64EXT *); -GLAPI void APIENTRY glGetQueryObjectui64vEXT (GLuint, GLenum, GLuint64EXT *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VEXTPROC) (GLuint id, GLenum pname, GLint64EXT *params); -typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VEXTPROC) (GLuint id, GLenum pname, GLuint64EXT *params); -#endif - -#ifndef GL_EXT_gpu_program_parameters -#define GL_EXT_gpu_program_parameters 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glProgramEnvParameters4fvEXT (GLenum, GLuint, GLsizei, const GLfloat *); -GLAPI void APIENTRY glProgramLocalParameters4fvEXT (GLenum, GLuint, GLsizei, const GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *params); -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *params); -#endif - -#ifndef GL_APPLE_flush_buffer_range -#define GL_APPLE_flush_buffer_range 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBufferParameteriAPPLE (GLenum, GLenum, GLint); -GLAPI void APIENTRY glFlushMappedBufferRangeAPPLE (GLenum, GLintptr, GLsizeiptr); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBUFFERPARAMETERIAPPLEPROC) (GLenum target, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC) (GLenum target, GLintptr offset, GLsizeiptr size); -#endif - -#ifndef GL_NV_gpu_program4 -#define GL_NV_gpu_program4 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glProgramLocalParameterI4iNV (GLenum, GLuint, GLint, GLint, GLint, GLint); -GLAPI void APIENTRY glProgramLocalParameterI4ivNV (GLenum, GLuint, const GLint *); -GLAPI void APIENTRY glProgramLocalParametersI4ivNV (GLenum, GLuint, GLsizei, const GLint *); -GLAPI void APIENTRY glProgramLocalParameterI4uiNV (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint); -GLAPI void APIENTRY glProgramLocalParameterI4uivNV (GLenum, GLuint, const GLuint *); -GLAPI void APIENTRY glProgramLocalParametersI4uivNV (GLenum, GLuint, GLsizei, const GLuint *); -GLAPI void APIENTRY glProgramEnvParameterI4iNV (GLenum, GLuint, GLint, GLint, GLint, GLint); -GLAPI void APIENTRY glProgramEnvParameterI4ivNV (GLenum, GLuint, const GLint *); -GLAPI void APIENTRY glProgramEnvParametersI4ivNV (GLenum, GLuint, GLsizei, const GLint *); -GLAPI void APIENTRY glProgramEnvParameterI4uiNV (GLenum, GLuint, GLuint, GLuint, GLuint, GLuint); -GLAPI void APIENTRY glProgramEnvParameterI4uivNV (GLenum, GLuint, const GLuint *); -GLAPI void APIENTRY glProgramEnvParametersI4uivNV (GLenum, GLuint, GLsizei, const GLuint *); -GLAPI void APIENTRY glGetProgramLocalParameterIivNV (GLenum, GLuint, GLint *); -GLAPI void APIENTRY glGetProgramLocalParameterIuivNV (GLenum, GLuint, GLuint *); -GLAPI void APIENTRY glGetProgramEnvParameterIivNV (GLenum, GLuint, GLint *); -GLAPI void APIENTRY glGetProgramEnvParameterIuivNV (GLenum, GLuint, GLuint *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint *params); -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint *params); -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint *params); -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint *params); -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint *params); -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint *params); -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint *params); -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint *params); -typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERIIVNVPROC) (GLenum target, GLuint index, GLint *params); -typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERIUIVNVPROC) (GLenum target, GLuint index, GLuint *params); -typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERIIVNVPROC) (GLenum target, GLuint index, GLint *params); -typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERIUIVNVPROC) (GLenum target, GLuint index, GLuint *params); -#endif - -#ifndef GL_NV_geometry_program4 -#define GL_NV_geometry_program4 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glProgramVertexLimitNV (GLenum, GLint); -GLAPI void APIENTRY glFramebufferTextureEXT (GLenum, GLenum, GLuint, GLint); -GLAPI void APIENTRY glFramebufferTextureLayerEXT (GLenum, GLenum, GLuint, GLint, GLint); -GLAPI void APIENTRY glFramebufferTextureFaceEXT (GLenum, GLenum, GLuint, GLint, GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLPROGRAMVERTEXLIMITNVPROC) (GLenum target, GLint limit); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYEREXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREFACEEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); -#endif - -#ifndef GL_EXT_geometry_shader4 -#define GL_EXT_geometry_shader4 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glProgramParameteriEXT (GLuint, GLenum, GLint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIEXTPROC) (GLuint program, GLenum pname, GLint value); -#endif - -#ifndef GL_NV_vertex_program4 -#define GL_NV_vertex_program4 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glVertexAttribI1iEXT (GLuint, GLint); -GLAPI void APIENTRY glVertexAttribI2iEXT (GLuint, GLint, GLint); -GLAPI void APIENTRY glVertexAttribI3iEXT (GLuint, GLint, GLint, GLint); -GLAPI void APIENTRY glVertexAttribI4iEXT (GLuint, GLint, GLint, GLint, GLint); -GLAPI void APIENTRY glVertexAttribI1uiEXT (GLuint, GLuint); -GLAPI void APIENTRY glVertexAttribI2uiEXT (GLuint, GLuint, GLuint); -GLAPI void APIENTRY glVertexAttribI3uiEXT (GLuint, GLuint, GLuint, GLuint); -GLAPI void APIENTRY glVertexAttribI4uiEXT (GLuint, GLuint, GLuint, GLuint, GLuint); -GLAPI void APIENTRY glVertexAttribI1ivEXT (GLuint, const GLint *); -GLAPI void APIENTRY glVertexAttribI2ivEXT (GLuint, const GLint *); -GLAPI void APIENTRY glVertexAttribI3ivEXT (GLuint, const GLint *); -GLAPI void APIENTRY glVertexAttribI4ivEXT (GLuint, const GLint *); -GLAPI void APIENTRY glVertexAttribI1uivEXT (GLuint, const GLuint *); -GLAPI void APIENTRY glVertexAttribI2uivEXT (GLuint, const GLuint *); -GLAPI void APIENTRY glVertexAttribI3uivEXT (GLuint, const GLuint *); -GLAPI void APIENTRY glVertexAttribI4uivEXT (GLuint, const GLuint *); -GLAPI void APIENTRY glVertexAttribI4bvEXT (GLuint, const GLbyte *); -GLAPI void APIENTRY glVertexAttribI4svEXT (GLuint, const GLshort *); -GLAPI void APIENTRY glVertexAttribI4ubvEXT (GLuint, const GLubyte *); -GLAPI void APIENTRY glVertexAttribI4usvEXT (GLuint, const GLushort *); -GLAPI void APIENTRY glVertexAttribIPointerEXT (GLuint, GLint, GLenum, GLsizei, const GLvoid *); -GLAPI void APIENTRY glGetVertexAttribIivEXT (GLuint, GLenum, GLint *); -GLAPI void APIENTRY glGetVertexAttribIuivEXT (GLuint, GLenum, GLuint *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IEXTPROC) (GLuint index, GLint x); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IEXTPROC) (GLuint index, GLint x, GLint y); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IEXTPROC) (GLuint index, GLint x, GLint y, GLint z); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IEXTPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIEXTPROC) (GLuint index, GLuint x); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIEXTPROC) (GLuint index, GLuint x, GLuint y); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVEXTPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVEXTPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVEXTPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVEXTPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVEXTPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVEXTPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVEXTPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVEXTPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVEXTPROC) (GLuint index, const GLbyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVEXTPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVEXTPROC) (GLuint index, const GLubyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVEXTPROC) (GLuint index, const GLushort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTEREXTPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVEXTPROC) (GLuint index, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVEXTPROC) (GLuint index, GLenum pname, GLuint *params); -#endif - -#ifndef GL_EXT_gpu_shader4 -#define GL_EXT_gpu_shader4 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glGetUniformuivEXT (GLuint, GLint, GLuint *); -GLAPI void APIENTRY glBindFragDataLocationEXT (GLuint, GLuint, const GLchar *); -GLAPI GLint APIENTRY glGetFragDataLocationEXT (GLuint, const GLchar *); -GLAPI void APIENTRY glUniform1uiEXT (GLint, GLuint); -GLAPI void APIENTRY glUniform2uiEXT (GLint, GLuint, GLuint); -GLAPI void APIENTRY glUniform3uiEXT (GLint, GLuint, GLuint, GLuint); -GLAPI void APIENTRY glUniform4uiEXT (GLint, GLuint, GLuint, GLuint, GLuint); -GLAPI void APIENTRY glUniform1uivEXT (GLint, GLsizei, const GLuint *); -GLAPI void APIENTRY glUniform2uivEXT (GLint, GLsizei, const GLuint *); -GLAPI void APIENTRY glUniform3uivEXT (GLint, GLsizei, const GLuint *); -GLAPI void APIENTRY glUniform4uivEXT (GLint, GLsizei, const GLuint *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLGETUNIFORMUIVEXTPROC) (GLuint program, GLint location, GLuint *params); -typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONEXTPROC) (GLuint program, GLuint color, const GLchar *name); -typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONEXTPROC) (GLuint program, const GLchar *name); -typedef void (APIENTRYP PFNGLUNIFORM1UIEXTPROC) (GLint location, GLuint v0); -typedef void (APIENTRYP PFNGLUNIFORM2UIEXTPROC) (GLint location, GLuint v0, GLuint v1); -typedef void (APIENTRYP PFNGLUNIFORM3UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2); -typedef void (APIENTRYP PFNGLUNIFORM4UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -typedef void (APIENTRYP PFNGLUNIFORM1UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLUNIFORM2UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLUNIFORM3UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLUNIFORM4UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); -#endif - -#ifndef GL_EXT_draw_instanced -#define GL_EXT_draw_instanced 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDrawArraysInstancedEXT (GLenum, GLint, GLsizei, GLsizei); -GLAPI void APIENTRY glDrawElementsInstancedEXT (GLenum, GLsizei, GLenum, const GLvoid *, GLsizei); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDEXTPROC) (GLenum mode, GLint start, GLsizei count, GLsizei primcount); -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDEXTPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount); -#endif - -#ifndef GL_EXT_packed_float -#define GL_EXT_packed_float 1 -#endif - -#ifndef GL_EXT_texture_array -#define GL_EXT_texture_array 1 -#endif - -#ifndef GL_EXT_texture_buffer_object -#define GL_EXT_texture_buffer_object 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTexBufferEXT (GLenum, GLenum, GLuint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLTEXBUFFEREXTPROC) (GLenum target, GLenum internalformat, GLuint buffer); -#endif - -#ifndef GL_EXT_texture_compression_latc -#define GL_EXT_texture_compression_latc 1 -#endif - -#ifndef GL_EXT_texture_compression_rgtc -#define GL_EXT_texture_compression_rgtc 1 -#endif - -#ifndef GL_EXT_texture_shared_exponent -#define GL_EXT_texture_shared_exponent 1 -#endif - -#ifndef GL_NV_depth_buffer_float -#define GL_NV_depth_buffer_float 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glDepthRangedNV (GLdouble, GLdouble); -GLAPI void APIENTRY glClearDepthdNV (GLdouble); -GLAPI void APIENTRY glDepthBoundsdNV (GLdouble, GLdouble); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLDEPTHRANGEDNVPROC) (GLdouble zNear, GLdouble zFar); -typedef void (APIENTRYP PFNGLCLEARDEPTHDNVPROC) (GLdouble depth); -typedef void (APIENTRYP PFNGLDEPTHBOUNDSDNVPROC) (GLdouble zmin, GLdouble zmax); -#endif - -#ifndef GL_NV_fragment_program4 -#define GL_NV_fragment_program4 1 -#endif - -#ifndef GL_NV_framebuffer_multisample_coverage -#define GL_NV_framebuffer_multisample_coverage 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glRenderbufferStorageMultisampleCoverageNV (GLenum, GLsizei, GLsizei, GLenum, GLsizei, GLsizei); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); -#endif - -#ifndef GL_EXT_framebuffer_sRGB -#define GL_EXT_framebuffer_sRGB 1 -#endif - -#ifndef GL_NV_geometry_shader4 -#define GL_NV_geometry_shader4 1 -#endif - -#ifndef GL_NV_parameter_buffer_object -#define GL_NV_parameter_buffer_object 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glProgramBufferParametersfvNV (GLenum, GLuint, GLuint, GLsizei, const GLfloat *); -GLAPI void APIENTRY glProgramBufferParametersIivNV (GLenum, GLuint, GLuint, GLsizei, const GLint *); -GLAPI void APIENTRY glProgramBufferParametersIuivNV (GLenum, GLuint, GLuint, GLsizei, const GLuint *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSFVNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLfloat *params); -typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSIIVNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLint *params); -typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSIUIVNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLuint *params); -#endif - -#ifndef GL_EXT_draw_buffers2 -#define GL_EXT_draw_buffers2 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glColorMaskIndexedEXT (GLuint, GLboolean, GLboolean, GLboolean, GLboolean); -GLAPI void APIENTRY glGetBooleanIndexedvEXT (GLenum, GLuint, GLboolean *); -GLAPI void APIENTRY glGetIntegerIndexedvEXT (GLenum, GLuint, GLint *); -GLAPI void APIENTRY glEnableIndexedEXT (GLenum, GLuint); -GLAPI void APIENTRY glDisableIndexedEXT (GLenum, GLuint); -GLAPI GLboolean APIENTRY glIsEnabledIndexedEXT (GLenum, GLuint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLCOLORMASKINDEXEDEXTPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); -typedef void (APIENTRYP PFNGLGETBOOLEANINDEXEDVEXTPROC) (GLenum target, GLuint index, GLboolean *data); -typedef void (APIENTRYP PFNGLGETINTEGERINDEXEDVEXTPROC) (GLenum target, GLuint index, GLint *data); -typedef void (APIENTRYP PFNGLENABLEINDEXEDEXTPROC) (GLenum target, GLuint index); -typedef void (APIENTRYP PFNGLDISABLEINDEXEDEXTPROC) (GLenum target, GLuint index); -typedef GLboolean (APIENTRYP PFNGLISENABLEDINDEXEDEXTPROC) (GLenum target, GLuint index); -#endif - -#ifndef GL_NV_transform_feedback -#define GL_NV_transform_feedback 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBeginTransformFeedbackNV (GLenum); -GLAPI void APIENTRY glEndTransformFeedbackNV (void); -GLAPI void APIENTRY glTransformFeedbackAttribsNV (GLuint, const GLint *, GLenum); -GLAPI void APIENTRY glBindBufferRangeNV (GLenum, GLuint, GLuint, GLintptr, GLsizeiptr); -GLAPI void APIENTRY glBindBufferOffsetNV (GLenum, GLuint, GLuint, GLintptr); -GLAPI void APIENTRY glBindBufferBaseNV (GLenum, GLuint, GLuint); -GLAPI void APIENTRY glTransformFeedbackVaryingsNV (GLuint, GLsizei, const GLint *, GLenum); -GLAPI void APIENTRY glActiveVaryingNV (GLuint, const GLchar *); -GLAPI GLint APIENTRY glGetVaryingLocationNV (GLuint, const GLchar *); -GLAPI void APIENTRY glGetActiveVaryingNV (GLuint, GLuint, GLsizei, GLsizei *, GLsizei *, GLenum *, GLchar *); -GLAPI void APIENTRY glGetTransformFeedbackVaryingNV (GLuint, GLuint, GLint *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKNVPROC) (GLenum primitiveMode); -typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKNVPROC) (void); -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKATTRIBSNVPROC) (GLuint count, const GLint *attribs, GLenum bufferMode); -typedef void (APIENTRYP PFNGLBINDBUFFERRANGENVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); -typedef void (APIENTRYP PFNGLBINDBUFFEROFFSETNVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset); -typedef void (APIENTRYP PFNGLBINDBUFFERBASENVPROC) (GLenum target, GLuint index, GLuint buffer); -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSNVPROC) (GLuint program, GLsizei count, const GLint *locations, GLenum bufferMode); -typedef void (APIENTRYP PFNGLACTIVEVARYINGNVPROC) (GLuint program, const GLchar *name); -typedef GLint (APIENTRYP PFNGLGETVARYINGLOCATIONNVPROC) (GLuint program, const GLchar *name); -typedef void (APIENTRYP PFNGLGETACTIVEVARYINGNVPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); -typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGNVPROC) (GLuint program, GLuint index, GLint *location); -#endif - -#ifndef GL_EXT_bindable_uniform -#define GL_EXT_bindable_uniform 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glUniformBufferEXT (GLuint, GLint, GLuint); -GLAPI GLint APIENTRY glGetUniformBufferSizeEXT (GLuint, GLint); -GLAPI GLintptr APIENTRY glGetUniformOffsetEXT (GLuint, GLint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLUNIFORMBUFFEREXTPROC) (GLuint program, GLint location, GLuint buffer); -typedef GLint (APIENTRYP PFNGLGETUNIFORMBUFFERSIZEEXTPROC) (GLuint program, GLint location); -typedef GLintptr (APIENTRYP PFNGLGETUNIFORMOFFSETEXTPROC) (GLuint program, GLint location); -#endif - -#ifndef GL_EXT_texture_integer -#define GL_EXT_texture_integer 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glTexParameterIivEXT (GLenum, GLenum, const GLint *); -GLAPI void APIENTRY glTexParameterIuivEXT (GLenum, GLenum, const GLuint *); -GLAPI void APIENTRY glGetTexParameterIivEXT (GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetTexParameterIuivEXT (GLenum, GLenum, GLuint *); -GLAPI void APIENTRY glClearColorIiEXT (GLint, GLint, GLint, GLint); -GLAPI void APIENTRY glClearColorIuiEXT (GLuint, GLuint, GLuint, GLuint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, const GLuint *params); -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, GLuint *params); -typedef void (APIENTRYP PFNGLCLEARCOLORIIEXTPROC) (GLint red, GLint green, GLint blue, GLint alpha); -typedef void (APIENTRYP PFNGLCLEARCOLORIUIEXTPROC) (GLuint red, GLuint green, GLuint blue, GLuint alpha); -#endif - -#ifndef GL_GREMEDY_frame_terminator -#define GL_GREMEDY_frame_terminator 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glFrameTerminatorGREMEDY (void); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLFRAMETERMINATORGREMEDYPROC) (void); -#endif - -#ifndef GL_NV_conditional_render -#define GL_NV_conditional_render 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBeginConditionalRenderNV (GLuint, GLenum); -GLAPI void APIENTRY glEndConditionalRenderNV (void); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERNVPROC) (GLuint id, GLenum mode); -typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERNVPROC) (void); -#endif - -#ifndef GL_NV_present_video -#define GL_NV_present_video 1 -#endif - -#ifndef GL_EXT_transform_feedback -#define GL_EXT_transform_feedback 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glBeginTransformFeedbackEXT (GLenum); -GLAPI void APIENTRY glEndTransformFeedbackEXT (void); -GLAPI void APIENTRY glBindBufferRangeEXT (GLenum, GLuint, GLuint, GLintptr, GLsizeiptr); -GLAPI void APIENTRY glBindBufferOffsetEXT (GLenum, GLuint, GLuint, GLintptr); -GLAPI void APIENTRY glBindBufferBaseEXT (GLenum, GLuint, GLuint); -GLAPI void APIENTRY glTransformFeedbackVaryingsEXT (GLuint, GLsizei, const GLint *, GLenum); -GLAPI void APIENTRY glGetTransformFeedbackVaryingEXT (GLuint, GLuint, GLint *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKEXTPROC) (GLenum primitiveMode); -typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKEXTPROC) (void); -typedef void (APIENTRYP PFNGLBINDBUFFERRANGEEXTPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); -typedef void (APIENTRYP PFNGLBINDBUFFEROFFSETEXTPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset); -typedef void (APIENTRYP PFNGLBINDBUFFERBASEEXTPROC) (GLenum target, GLuint index, GLuint buffer); -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSEXTPROC) (GLuint program, GLsizei count, const GLint *locations, GLenum bufferMode); -typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGEXTPROC) (GLuint program, GLuint index, GLint *location); -#endif - -#ifndef GL_EXT_direct_state_access -#define GL_EXT_direct_state_access 1 -#ifdef GL_GLEXT_PROTOTYPES -GLAPI void APIENTRY glClientAttribDefaultEXT (GLbitfield); -GLAPI void APIENTRY glPushClientAttribDefaultEXT (GLbitfield); -GLAPI void APIENTRY glMatrixLoadfEXT (GLenum, const GLfloat *); -GLAPI void APIENTRY glMatrixLoaddEXT (GLenum, const GLdouble *); -GLAPI void APIENTRY glMatrixMultfEXT (GLenum, const GLfloat *); -GLAPI void APIENTRY glMatrixMultdEXT (GLenum, const GLdouble *); -GLAPI void APIENTRY glMatrixLoadIdentityEXT (GLenum); -GLAPI void APIENTRY glMatrixRotatefEXT (GLenum, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glMatrixRotatedEXT (GLenum, GLdouble, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glMatrixScalefEXT (GLenum, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glMatrixScaledEXT (GLenum, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glMatrixTranslatefEXT (GLenum, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glMatrixTranslatedEXT (GLenum, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glMatrixFrustumEXT (GLenum, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glMatrixOrthoEXT (GLenum, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glMatrixPopEXT (GLenum); -GLAPI void APIENTRY glMatrixPushEXT (GLenum); -GLAPI void APIENTRY glMatrixLoadTransposefEXT (GLenum, const GLfloat *); -GLAPI void APIENTRY glMatrixLoadTransposedEXT (GLenum, const GLdouble *); -GLAPI void APIENTRY glMatrixMultTransposefEXT (GLenum, const GLfloat *); -GLAPI void APIENTRY glMatrixMultTransposedEXT (GLenum, const GLdouble *); -GLAPI void APIENTRY glTextureParameterfEXT (GLuint, GLenum, GLenum, GLfloat); -GLAPI void APIENTRY glTextureParameterfvEXT (GLuint, GLenum, GLenum, const GLfloat *); -GLAPI void APIENTRY glTextureParameteriEXT (GLuint, GLenum, GLenum, GLint); -GLAPI void APIENTRY glTextureParameterivEXT (GLuint, GLenum, GLenum, const GLint *); -GLAPI void APIENTRY glTextureImage1DEXT (GLuint, GLenum, GLint, GLenum, GLsizei, GLint, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glTextureImage2DEXT (GLuint, GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glTextureSubImage1DEXT (GLuint, GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glTextureSubImage2DEXT (GLuint, GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glCopyTextureImage1DEXT (GLuint, GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint); -GLAPI void APIENTRY glCopyTextureImage2DEXT (GLuint, GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint); -GLAPI void APIENTRY glCopyTextureSubImage1DEXT (GLuint, GLenum, GLint, GLint, GLint, GLint, GLsizei); -GLAPI void APIENTRY glCopyTextureSubImage2DEXT (GLuint, GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); -GLAPI void APIENTRY glGetTextureImageEXT (GLuint, GLenum, GLint, GLenum, GLenum, GLvoid *); -GLAPI void APIENTRY glGetTextureParameterfvEXT (GLuint, GLenum, GLenum, GLfloat *); -GLAPI void APIENTRY glGetTextureParameterivEXT (GLuint, GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetTextureLevelParameterfvEXT (GLuint, GLenum, GLint, GLenum, GLfloat *); -GLAPI void APIENTRY glGetTextureLevelParameterivEXT (GLuint, GLenum, GLint, GLenum, GLint *); -GLAPI void APIENTRY glTextureImage3DEXT (GLuint, GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glTextureSubImage3DEXT (GLuint, GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glCopyTextureSubImage3DEXT (GLuint, GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); -GLAPI void APIENTRY glMultiTexParameterfEXT (GLenum, GLenum, GLenum, GLfloat); -GLAPI void APIENTRY glMultiTexParameterfvEXT (GLenum, GLenum, GLenum, const GLfloat *); -GLAPI void APIENTRY glMultiTexParameteriEXT (GLenum, GLenum, GLenum, GLint); -GLAPI void APIENTRY glMultiTexParameterivEXT (GLenum, GLenum, GLenum, const GLint *); -GLAPI void APIENTRY glMultiTexImage1DEXT (GLenum, GLenum, GLint, GLenum, GLsizei, GLint, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glMultiTexImage2DEXT (GLenum, GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glMultiTexSubImage1DEXT (GLenum, GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glMultiTexSubImage2DEXT (GLenum, GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glCopyMultiTexImage1DEXT (GLenum, GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint); -GLAPI void APIENTRY glCopyMultiTexImage2DEXT (GLenum, GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint); -GLAPI void APIENTRY glCopyMultiTexSubImage1DEXT (GLenum, GLenum, GLint, GLint, GLint, GLint, GLsizei); -GLAPI void APIENTRY glCopyMultiTexSubImage2DEXT (GLenum, GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); -GLAPI void APIENTRY glGetMultiTexImageEXT (GLenum, GLenum, GLint, GLenum, GLenum, GLvoid *); -GLAPI void APIENTRY glGetMultiTexParameterfvEXT (GLenum, GLenum, GLenum, GLfloat *); -GLAPI void APIENTRY glGetMultiTexParameterivEXT (GLenum, GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetMultiTexLevelParameterfvEXT (GLenum, GLenum, GLint, GLenum, GLfloat *); -GLAPI void APIENTRY glGetMultiTexLevelParameterivEXT (GLenum, GLenum, GLint, GLenum, GLint *); -GLAPI void APIENTRY glMultiTexImage3DEXT (GLenum, GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glMultiTexSubImage3DEXT (GLenum, GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -GLAPI void APIENTRY glCopyMultiTexSubImage3DEXT (GLenum, GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); -GLAPI void APIENTRY glBindMultiTextureEXT (GLenum, GLenum, GLuint); -GLAPI void APIENTRY glEnableClientStateIndexedEXT (GLenum, GLuint); -GLAPI void APIENTRY glDisableClientStateIndexedEXT (GLenum, GLuint); -GLAPI void APIENTRY glMultiTexCoordPointerEXT (GLenum, GLint, GLenum, GLsizei, const GLvoid *); -GLAPI void APIENTRY glMultiTexEnvfEXT (GLenum, GLenum, GLenum, GLfloat); -GLAPI void APIENTRY glMultiTexEnvfvEXT (GLenum, GLenum, GLenum, const GLfloat *); -GLAPI void APIENTRY glMultiTexEnviEXT (GLenum, GLenum, GLenum, GLint); -GLAPI void APIENTRY glMultiTexEnvivEXT (GLenum, GLenum, GLenum, const GLint *); -GLAPI void APIENTRY glMultiTexGendEXT (GLenum, GLenum, GLenum, GLdouble); -GLAPI void APIENTRY glMultiTexGendvEXT (GLenum, GLenum, GLenum, const GLdouble *); -GLAPI void APIENTRY glMultiTexGenfEXT (GLenum, GLenum, GLenum, GLfloat); -GLAPI void APIENTRY glMultiTexGenfvEXT (GLenum, GLenum, GLenum, const GLfloat *); -GLAPI void APIENTRY glMultiTexGeniEXT (GLenum, GLenum, GLenum, GLint); -GLAPI void APIENTRY glMultiTexGenivEXT (GLenum, GLenum, GLenum, const GLint *); -GLAPI void APIENTRY glGetMultiTexEnvfvEXT (GLenum, GLenum, GLenum, GLfloat *); -GLAPI void APIENTRY glGetMultiTexEnvivEXT (GLenum, GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetMultiTexGendvEXT (GLenum, GLenum, GLenum, GLdouble *); -GLAPI void APIENTRY glGetMultiTexGenfvEXT (GLenum, GLenum, GLenum, GLfloat *); -GLAPI void APIENTRY glGetMultiTexGenivEXT (GLenum, GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetFloatIndexedvEXT (GLenum, GLuint, GLfloat *); -GLAPI void APIENTRY glGetDoubleIndexedvEXT (GLenum, GLuint, GLdouble *); -GLAPI void APIENTRY glGetPointerIndexedvEXT (GLenum, GLuint, GLvoid* *); -GLAPI void APIENTRY glCompressedTextureImage3DEXT (GLuint, GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); -GLAPI void APIENTRY glCompressedTextureImage2DEXT (GLuint, GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); -GLAPI void APIENTRY glCompressedTextureImage1DEXT (GLuint, GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const GLvoid *); -GLAPI void APIENTRY glCompressedTextureSubImage3DEXT (GLuint, GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *); -GLAPI void APIENTRY glCompressedTextureSubImage2DEXT (GLuint, GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *); -GLAPI void APIENTRY glCompressedTextureSubImage1DEXT (GLuint, GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid *); -GLAPI void APIENTRY glGetCompressedTextureImageEXT (GLuint, GLenum, GLint, GLvoid *); -GLAPI void APIENTRY glCompressedMultiTexImage3DEXT (GLenum, GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); -GLAPI void APIENTRY glCompressedMultiTexImage2DEXT (GLenum, GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); -GLAPI void APIENTRY glCompressedMultiTexImage1DEXT (GLenum, GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const GLvoid *); -GLAPI void APIENTRY glCompressedMultiTexSubImage3DEXT (GLenum, GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *); -GLAPI void APIENTRY glCompressedMultiTexSubImage2DEXT (GLenum, GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *); -GLAPI void APIENTRY glCompressedMultiTexSubImage1DEXT (GLenum, GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid *); -GLAPI void APIENTRY glGetCompressedMultiTexImageEXT (GLenum, GLenum, GLint, GLvoid *); -GLAPI void APIENTRY glNamedProgramStringEXT (GLuint, GLenum, GLenum, GLsizei, const GLvoid *); -GLAPI void APIENTRY glNamedProgramLocalParameter4dEXT (GLuint, GLenum, GLuint, GLdouble, GLdouble, GLdouble, GLdouble); -GLAPI void APIENTRY glNamedProgramLocalParameter4dvEXT (GLuint, GLenum, GLuint, const GLdouble *); -GLAPI void APIENTRY glNamedProgramLocalParameter4fEXT (GLuint, GLenum, GLuint, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glNamedProgramLocalParameter4fvEXT (GLuint, GLenum, GLuint, const GLfloat *); -GLAPI void APIENTRY glGetNamedProgramLocalParameterdvEXT (GLuint, GLenum, GLuint, GLdouble *); -GLAPI void APIENTRY glGetNamedProgramLocalParameterfvEXT (GLuint, GLenum, GLuint, GLfloat *); -GLAPI void APIENTRY glGetNamedProgramivEXT (GLuint, GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetNamedProgramStringEXT (GLuint, GLenum, GLenum, GLvoid *); -GLAPI void APIENTRY glNamedProgramLocalParameters4fvEXT (GLuint, GLenum, GLuint, GLsizei, const GLfloat *); -GLAPI void APIENTRY glNamedProgramLocalParameterI4iEXT (GLuint, GLenum, GLuint, GLint, GLint, GLint, GLint); -GLAPI void APIENTRY glNamedProgramLocalParameterI4ivEXT (GLuint, GLenum, GLuint, const GLint *); -GLAPI void APIENTRY glNamedProgramLocalParametersI4ivEXT (GLuint, GLenum, GLuint, GLsizei, const GLint *); -GLAPI void APIENTRY glNamedProgramLocalParameterI4uiEXT (GLuint, GLenum, GLuint, GLuint, GLuint, GLuint, GLuint); -GLAPI void APIENTRY glNamedProgramLocalParameterI4uivEXT (GLuint, GLenum, GLuint, const GLuint *); -GLAPI void APIENTRY glNamedProgramLocalParametersI4uivEXT (GLuint, GLenum, GLuint, GLsizei, const GLuint *); -GLAPI void APIENTRY glGetNamedProgramLocalParameterIivEXT (GLuint, GLenum, GLuint, GLint *); -GLAPI void APIENTRY glGetNamedProgramLocalParameterIuivEXT (GLuint, GLenum, GLuint, GLuint *); -GLAPI void APIENTRY glTextureParameterIivEXT (GLuint, GLenum, GLenum, const GLint *); -GLAPI void APIENTRY glTextureParameterIuivEXT (GLuint, GLenum, GLenum, const GLuint *); -GLAPI void APIENTRY glGetTextureParameterIivEXT (GLuint, GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetTextureParameterIuivEXT (GLuint, GLenum, GLenum, GLuint *); -GLAPI void APIENTRY glMultiTexParameterIivEXT (GLenum, GLenum, GLenum, const GLint *); -GLAPI void APIENTRY glMultiTexParameterIuivEXT (GLenum, GLenum, GLenum, const GLuint *); -GLAPI void APIENTRY glGetMultiTexParameterIivEXT (GLenum, GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGetMultiTexParameterIuivEXT (GLenum, GLenum, GLenum, GLuint *); -GLAPI void APIENTRY glProgramUniform1fEXT (GLuint, GLint, GLfloat); -GLAPI void APIENTRY glProgramUniform2fEXT (GLuint, GLint, GLfloat, GLfloat); -GLAPI void APIENTRY glProgramUniform3fEXT (GLuint, GLint, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glProgramUniform4fEXT (GLuint, GLint, GLfloat, GLfloat, GLfloat, GLfloat); -GLAPI void APIENTRY glProgramUniform1iEXT (GLuint, GLint, GLint); -GLAPI void APIENTRY glProgramUniform2iEXT (GLuint, GLint, GLint, GLint); -GLAPI void APIENTRY glProgramUniform3iEXT (GLuint, GLint, GLint, GLint, GLint); -GLAPI void APIENTRY glProgramUniform4iEXT (GLuint, GLint, GLint, GLint, GLint, GLint); -GLAPI void APIENTRY glProgramUniform1fvEXT (GLuint, GLint, GLsizei, const GLfloat *); -GLAPI void APIENTRY glProgramUniform2fvEXT (GLuint, GLint, GLsizei, const GLfloat *); -GLAPI void APIENTRY glProgramUniform3fvEXT (GLuint, GLint, GLsizei, const GLfloat *); -GLAPI void APIENTRY glProgramUniform4fvEXT (GLuint, GLint, GLsizei, const GLfloat *); -GLAPI void APIENTRY glProgramUniform1ivEXT (GLuint, GLint, GLsizei, const GLint *); -GLAPI void APIENTRY glProgramUniform2ivEXT (GLuint, GLint, GLsizei, const GLint *); -GLAPI void APIENTRY glProgramUniform3ivEXT (GLuint, GLint, GLsizei, const GLint *); -GLAPI void APIENTRY glProgramUniform4ivEXT (GLuint, GLint, GLsizei, const GLint *); -GLAPI void APIENTRY glProgramUniformMatrix2fvEXT (GLuint, GLint, GLsizei, GLboolean, const GLfloat *); -GLAPI void APIENTRY glProgramUniformMatrix3fvEXT (GLuint, GLint, GLsizei, GLboolean, const GLfloat *); -GLAPI void APIENTRY glProgramUniformMatrix4fvEXT (GLuint, GLint, GLsizei, GLboolean, const GLfloat *); -GLAPI void APIENTRY glProgramUniformMatrix2x3fvEXT (GLuint, GLint, GLsizei, GLboolean, const GLfloat *); -GLAPI void APIENTRY glProgramUniformMatrix3x2fvEXT (GLuint, GLint, GLsizei, GLboolean, const GLfloat *); -GLAPI void APIENTRY glProgramUniformMatrix2x4fvEXT (GLuint, GLint, GLsizei, GLboolean, const GLfloat *); -GLAPI void APIENTRY glProgramUniformMatrix4x2fvEXT (GLuint, GLint, GLsizei, GLboolean, const GLfloat *); -GLAPI void APIENTRY glProgramUniformMatrix3x4fvEXT (GLuint, GLint, GLsizei, GLboolean, const GLfloat *); -GLAPI void APIENTRY glProgramUniformMatrix4x3fvEXT (GLuint, GLint, GLsizei, GLboolean, const GLfloat *); -GLAPI void APIENTRY glProgramUniform1uiEXT (GLuint, GLint, GLuint); -GLAPI void APIENTRY glProgramUniform2uiEXT (GLuint, GLint, GLuint, GLuint); -GLAPI void APIENTRY glProgramUniform3uiEXT (GLuint, GLint, GLuint, GLuint, GLuint); -GLAPI void APIENTRY glProgramUniform4uiEXT (GLuint, GLint, GLuint, GLuint, GLuint, GLuint); -GLAPI void APIENTRY glProgramUniform1uivEXT (GLuint, GLint, GLsizei, const GLuint *); -GLAPI void APIENTRY glProgramUniform2uivEXT (GLuint, GLint, GLsizei, const GLuint *); -GLAPI void APIENTRY glProgramUniform3uivEXT (GLuint, GLint, GLsizei, const GLuint *); -GLAPI void APIENTRY glProgramUniform4uivEXT (GLuint, GLint, GLsizei, const GLuint *); -GLAPI void APIENTRY glNamedBufferDataEXT (GLuint, GLsizeiptr, const GLvoid *, GLenum); -GLAPI void APIENTRY glNamedBufferSubDataEXT (GLuint, GLintptr, GLsizeiptr, const GLvoid *); -GLAPI GLvoid* APIENTRY glMapNamedBufferEXT (GLuint, GLenum); -GLAPI GLboolean APIENTRY glUnmapNamedBufferEXT (GLuint); -GLAPI void APIENTRY glGetNamedBufferParameterivEXT (GLuint, GLenum, GLint *); -GLAPI void APIENTRY glGetNamedBufferPointervEXT (GLuint, GLenum, GLvoid* *); -GLAPI void APIENTRY glGetNamedBufferSubDataEXT (GLuint, GLintptr, GLsizeiptr, GLvoid *); -GLAPI void APIENTRY glTextureBufferEXT (GLuint, GLenum, GLenum, GLuint); -GLAPI void APIENTRY glMultiTexBufferEXT (GLenum, GLenum, GLenum, GLuint); -GLAPI void APIENTRY glNamedRenderbufferStorageEXT (GLuint, GLenum, GLsizei, GLsizei); -GLAPI void APIENTRY glGetNamedRenderbufferParameterivEXT (GLuint, GLenum, GLint *); -GLAPI GLenum APIENTRY glCheckNamedFramebufferStatusEXT (GLuint, GLenum); -GLAPI void APIENTRY glNamedFramebufferTexture1DEXT (GLuint, GLenum, GLenum, GLuint, GLint); -GLAPI void APIENTRY glNamedFramebufferTexture2DEXT (GLuint, GLenum, GLenum, GLuint, GLint); -GLAPI void APIENTRY glNamedFramebufferTexture3DEXT (GLuint, GLenum, GLenum, GLuint, GLint, GLint); -GLAPI void APIENTRY glNamedFramebufferRenderbufferEXT (GLuint, GLenum, GLenum, GLuint); -GLAPI void APIENTRY glGetNamedFramebufferAttachmentParameterivEXT (GLuint, GLenum, GLenum, GLint *); -GLAPI void APIENTRY glGenerateTextureMipmapEXT (GLuint, GLenum); -GLAPI void APIENTRY glGenerateMultiTexMipmapEXT (GLenum, GLenum); -GLAPI void APIENTRY glFramebufferDrawBufferEXT (GLuint, GLenum); -GLAPI void APIENTRY glFramebufferDrawBuffersEXT (GLuint, GLsizei, const GLenum *); -GLAPI void APIENTRY glFramebufferReadBufferEXT (GLuint, GLenum); -GLAPI void APIENTRY glGetFramebufferParameterivEXT (GLuint, GLenum, GLint *); -GLAPI void APIENTRY glNamedRenderbufferStorageMultisampleEXT (GLuint, GLsizei, GLenum, GLsizei, GLsizei); -GLAPI void APIENTRY glNamedRenderbufferStorageMultisampleCoverageEXT (GLuint, GLsizei, GLsizei, GLenum, GLsizei, GLsizei); -GLAPI void APIENTRY glNamedFramebufferTextureEXT (GLuint, GLenum, GLuint, GLint); -GLAPI void APIENTRY glNamedFramebufferTextureLayerEXT (GLuint, GLenum, GLuint, GLint, GLint); -GLAPI void APIENTRY glNamedFramebufferTextureFaceEXT (GLuint, GLenum, GLuint, GLint, GLenum); -GLAPI void APIENTRY glTextureRenderbufferEXT (GLuint, GLenum, GLuint); -GLAPI void APIENTRY glMultiTexRenderbufferEXT (GLenum, GLenum, GLuint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRYP PFNGLCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask); -typedef void (APIENTRYP PFNGLPUSHCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask); -typedef void (APIENTRYP PFNGLMATRIXLOADFEXTPROC) (GLenum mode, const GLfloat *m); -typedef void (APIENTRYP PFNGLMATRIXLOADDEXTPROC) (GLenum mode, const GLdouble *m); -typedef void (APIENTRYP PFNGLMATRIXMULTFEXTPROC) (GLenum mode, const GLfloat *m); -typedef void (APIENTRYP PFNGLMATRIXMULTDEXTPROC) (GLenum mode, const GLdouble *m); -typedef void (APIENTRYP PFNGLMATRIXLOADIDENTITYEXTPROC) (GLenum mode); -typedef void (APIENTRYP PFNGLMATRIXROTATEFEXTPROC) (GLenum mode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLMATRIXROTATEDEXTPROC) (GLenum mode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLMATRIXSCALEFEXTPROC) (GLenum mode, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLMATRIXSCALEDEXTPROC) (GLenum mode, GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLMATRIXTRANSLATEFEXTPROC) (GLenum mode, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRYP PFNGLMATRIXTRANSLATEDEXTPROC) (GLenum mode, GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLMATRIXFRUSTUMEXTPROC) (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); -typedef void (APIENTRYP PFNGLMATRIXORTHOEXTPROC) (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); -typedef void (APIENTRYP PFNGLMATRIXPOPEXTPROC) (GLenum mode); -typedef void (APIENTRYP PFNGLMATRIXPUSHEXTPROC) (GLenum mode); -typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSEFEXTPROC) (GLenum mode, const GLfloat *m); -typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSEDEXTPROC) (GLenum mode, const GLdouble *m); -typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSEFEXTPROC) (GLenum mode, const GLfloat *m); -typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSEDEXTPROC) (GLenum mode, const GLdouble *m); -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRYP PFNGLTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRYP PFNGLCOPYTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -typedef void (APIENTRYP PFNGLCOPYTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLGETTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels); -typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLMULTITEXPARAMETERFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRYP PFNGLMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRYP PFNGLCOPYMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -typedef void (APIENTRYP PFNGLCOPYMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLGETMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels); -typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETMULTITEXLEVELPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETMULTITEXLEVELPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLBINDMULTITEXTUREEXTPROC) (GLenum texunit, GLenum target, GLuint texture); -typedef void (APIENTRYP PFNGLENABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index); -typedef void (APIENTRYP PFNGLDISABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index); -typedef void (APIENTRYP PFNGLMULTITEXCOORDPOINTEREXTPROC) (GLenum texunit, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); -typedef void (APIENTRYP PFNGLMULTITEXENVFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLMULTITEXENVIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLMULTITEXGENDEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble param); -typedef void (APIENTRYP PFNGLMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLdouble *params); -typedef void (APIENTRYP PFNGLMULTITEXGENFEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLMULTITEXGENIEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLGETMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble *params); -typedef void (APIENTRYP PFNGLGETMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETFLOATINDEXEDVEXTPROC) (GLenum target, GLuint index, GLfloat *data); -typedef void (APIENTRYP PFNGLGETDOUBLEINDEXEDVEXTPROC) (GLenum target, GLuint index, GLdouble *data); -typedef void (APIENTRYP PFNGLGETPOINTERINDEXEDVEXTPROC) (GLenum target, GLuint index, GLvoid* *data); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *bits); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *bits); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *bits); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *bits); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *bits); -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *bits); -typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint lod, GLvoid *img); -typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *bits); -typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *bits); -typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *bits); -typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *bits); -typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *bits); -typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *bits); -typedef void (APIENTRYP PFNGLGETCOMPRESSEDMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint lod, GLvoid *img); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum format, GLsizei len, const GLvoid *string); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4DEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4DVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLdouble *params); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4FEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4FVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLfloat *params); -typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERDVEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble *params); -typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERFVEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat *params); -typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMIVEXTPROC) (GLuint program, GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum pname, GLvoid *string); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat *params); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4IEXTPROC) (GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLint *params); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERSI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLint *params); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLuint *params); -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERSI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint *params); -typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERIIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLint *params); -typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERIUIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint *params); -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLuint *params); -typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLuint *params); -typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLuint *params); -typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLuint *params); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FEXTPROC) (GLuint program, GLint location, GLfloat v0); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IEXTPROC) (GLuint program, GLint location, GLint v0); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIEXTPROC) (GLuint program, GLint location, GLuint v0); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLsizeiptr size, const GLvoid *data, GLenum usage); -typedef void (APIENTRYP PFNGLNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, const GLvoid *data); -typedef GLvoid* (APIENTRYP PFNGLMAPNAMEDBUFFEREXTPROC) (GLuint buffer, GLenum access); -typedef GLboolean (APIENTRYP PFNGLUNMAPNAMEDBUFFEREXTPROC) (GLuint buffer); -typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERIVEXTPROC) (GLuint buffer, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPOINTERVEXTPROC) (GLuint buffer, GLenum pname, GLvoid* *params); -typedef void (APIENTRYP PFNGLGETNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, GLvoid *data); -typedef void (APIENTRYP PFNGLTEXTUREBUFFEREXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer); -typedef void (APIENTRYP PFNGLMULTITEXBUFFEREXTPROC) (GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer); -typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEEXTPROC) (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLGETNAMEDRENDERBUFFERPARAMETERIVEXTPROC) (GLuint renderbuffer, GLenum pname, GLint *params); -typedef GLenum (APIENTRYP PFNGLCHECKNAMEDFRAMEBUFFERSTATUSEXTPROC) (GLuint framebuffer, GLenum target); -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE1DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE2DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE3DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERRENDERBUFFEREXTPROC) (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGENERATETEXTUREMIPMAPEXTPROC) (GLuint texture, GLenum target); -typedef void (APIENTRYP PFNGLGENERATEMULTITEXMIPMAPEXTPROC) (GLenum texunit, GLenum target); -typedef void (APIENTRYP PFNGLFRAMEBUFFERDRAWBUFFEREXTPROC) (GLuint framebuffer, GLenum mode); -typedef void (APIENTRYP PFNGLFRAMEBUFFERDRAWBUFFERSEXTPROC) (GLuint framebuffer, GLsizei n, const GLenum *bufs); -typedef void (APIENTRYP PFNGLFRAMEBUFFERREADBUFFEREXTPROC) (GLuint framebuffer, GLenum mode); -typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXTPROC) (GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURELAYEREXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREFACEEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face); -typedef void (APIENTRYP PFNGLTEXTURERENDERBUFFEREXTPROC) (GLuint texture, GLenum target, GLuint renderbuffer); -typedef void (APIENTRYP PFNGLMULTITEXRENDERBUFFEREXTPROC) (GLenum texunit, GLenum target, GLuint renderbuffer); -#endif - -#ifndef GL_EXT_vertex_array_bgra -#define GL_EXT_vertex_array_bgra 1 -#endif - - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/atmosphere.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/atmosphere.h deleted file mode 100644 index 0d7307b44..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/atmosphere.h +++ /dev/null @@ -1,100 +0,0 @@ -/* -*- c -*- */ -#ifndef INCLUDED_LIB3DS_ATMOSPHERE_H -#define INCLUDED_LIB3DS_ATMOSPHERE_H -/* - * The 3D Studio File Format Library - * Copyright (C) 1996-2007 by Jan Eric Kyprianidis - * All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - * License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id: atmosphere.h,v 1.8 2007/06/20 17:04:08 jeh Exp $ - */ - -#ifndef INCLUDED_LIB3DS_TYPES_H -#include "types.h" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * Fog atmosphere settings - * \ingroup atmosphere - */ -typedef struct Lib3dsFog { - Lib3dsBool use; - Lib3dsRgb col; - Lib3dsBool fog_background; - Lib3dsFloat near_plane; - Lib3dsFloat near_density; - Lib3dsFloat far_plane; - Lib3dsFloat far_density; -} Lib3dsFog; - -/** - * Layer fog atmosphere flags - * \ingroup atmosphere - */ -typedef enum Lib3dsLayerFogFlags { - LIB3DS_BOTTOM_FALL_OFF =0x00000001, - LIB3DS_TOP_FALL_OFF =0x00000002, - LIB3DS_FOG_BACKGROUND =0x00100000 -} Lib3dsLayerFogFlags; - -/** - * Layer fog atmosphere settings - * \ingroup atmosphere - */ -typedef struct Lib3dsLayerFog { - Lib3dsBool use; - Lib3dsDword flags; - Lib3dsRgb col; - Lib3dsFloat near_y; - Lib3dsFloat far_y; - Lib3dsFloat density; -} Lib3dsLayerFog; - -/** - * Distance cue atmosphere settings - * \ingroup atmosphere - */ -typedef struct Lib3dsDistanceCue { - Lib3dsBool use; - Lib3dsBool cue_background; - Lib3dsFloat near_plane; - Lib3dsFloat near_dimming; - Lib3dsFloat far_plane; - Lib3dsFloat far_dimming; -} Lib3dsDistanceCue; - -/** - * Atmosphere settings - * \ingroup atmosphere - */ -struct Lib3dsAtmosphere { - Lib3dsFog fog; - Lib3dsLayerFog layer_fog; - Lib3dsDistanceCue dist_cue; -}; - -extern LIB3DSAPI Lib3dsBool lib3ds_atmosphere_read(Lib3dsAtmosphere *atmosphere, Lib3dsIo *io); -extern LIB3DSAPI Lib3dsBool lib3ds_atmosphere_write(Lib3dsAtmosphere *atmosphere, Lib3dsIo *io); - -#ifdef __cplusplus -} -#endif -#endif diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/background.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/background.h deleted file mode 100644 index b9c31c9bb..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/background.h +++ /dev/null @@ -1,85 +0,0 @@ -/* -*- c -*- */ -#ifndef INCLUDED_LIB3DS_BACKGROUND_H -#define INCLUDED_LIB3DS_BACKGROUND_H -/* - * The 3D Studio File Format Library - * Copyright (C) 1996-2007 by Jan Eric Kyprianidis - * All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - * License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id: background.h,v 1.8 2007/06/20 17:04:08 jeh Exp $ - */ - -#ifndef INCLUDED_LIB3DS_TYPES_H -#include "types.h" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * Bitmap background settings - * \ingroup background - */ -typedef struct Lib3dsBitmap { - Lib3dsBool use; - char name[64]; -} Lib3dsBitmap; - -/** - * Solid color background settings - * \ingroup background - */ -typedef struct Lib3dsSolid { - Lib3dsBool use; - Lib3dsRgb col; -} Lib3dsSolid; - -/** - * Gradient background settings - * \ingroup background - */ -typedef struct Lib3dsGradient { - Lib3dsBool use; - Lib3dsFloat percent; - Lib3dsRgb top; - Lib3dsRgb middle; - Lib3dsRgb bottom; -} Lib3dsGradient; - -/** - * Background settings - * \ingroup background - */ -struct Lib3dsBackground { - Lib3dsBitmap bitmap; - Lib3dsSolid solid; - Lib3dsGradient gradient; -}; - -extern LIB3DSAPI Lib3dsBool lib3ds_background_read(Lib3dsBackground *background, Lib3dsIo *io); -extern LIB3DSAPI Lib3dsBool lib3ds_background_write(Lib3dsBackground *background, Lib3dsIo *io); - -#ifdef __cplusplus -} -#endif -#endif - - - - - diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/camera.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/camera.h deleted file mode 100644 index 29f0bf8a1..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/camera.h +++ /dev/null @@ -1,61 +0,0 @@ -/* -*- c -*- */ -#ifndef INCLUDED_LIB3DS_CAMERA_H -#define INCLUDED_LIB3DS_CAMERA_H -/* - * The 3D Studio File Format Library - * Copyright (C) 1996-2007 by Jan Eric Kyprianidis - * All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - * License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id: camera.h,v 1.11 2007/06/20 17:04:08 jeh Exp $ - */ - -#ifndef INCLUDED_LIB3DS_TYPES_H -#include "types.h" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * Camera object - * \ingroup camera - */ -struct Lib3dsCamera { - Lib3dsCamera *next; - char name[64]; - Lib3dsDword object_flags; /*< @see Lib3dsObjectFlags */ - Lib3dsVector position; - Lib3dsVector target; - Lib3dsFloat roll; - Lib3dsFloat fov; - Lib3dsBool see_cone; - Lib3dsFloat near_range; - Lib3dsFloat far_range; -}; - -extern LIB3DSAPI Lib3dsCamera* lib3ds_camera_new(const char *name); -extern LIB3DSAPI void lib3ds_camera_free(Lib3dsCamera *mesh); -extern LIB3DSAPI void lib3ds_camera_dump(Lib3dsCamera *camera); -extern LIB3DSAPI Lib3dsBool lib3ds_camera_read(Lib3dsCamera *camera, Lib3dsIo *io); -extern LIB3DSAPI Lib3dsBool lib3ds_camera_write(Lib3dsCamera *camera, Lib3dsIo *io); - -#ifdef __cplusplus -} -#endif -#endif - diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/chunk.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/chunk.h deleted file mode 100644 index 444725f60..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/chunk.h +++ /dev/null @@ -1,290 +0,0 @@ -/* -*- c -*- */ -#ifndef INCLUDED_LIB3DS_CHUNK_H -#define INCLUDED_LIB3DS_CHUNK_H -/* - * The 3D Studio File Format Library - * Copyright (C) 1996-2007 by Jan Eric Kyprianidis - * All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - * License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id: chunk.h,v 1.16 2007/06/20 17:04:08 jeh Exp $ - */ - -#ifndef INCLUDED_LIB3DS_TYPES_H -#include "types.h" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -typedef enum _Lib3dsChunks { - LIB3DS_NULL_CHUNK =0x0000, - LIB3DS_M3DMAGIC =0x4D4D, /*3DS file*/ - LIB3DS_SMAGIC =0x2D2D, - LIB3DS_LMAGIC =0x2D3D, - LIB3DS_MLIBMAGIC =0x3DAA, /*MLI file*/ - LIB3DS_MATMAGIC =0x3DFF, - LIB3DS_CMAGIC =0xC23D, /*PRJ file*/ - LIB3DS_M3D_VERSION =0x0002, - LIB3DS_M3D_KFVERSION =0x0005, - - LIB3DS_COLOR_F =0x0010, - LIB3DS_COLOR_24 =0x0011, - LIB3DS_LIN_COLOR_24 =0x0012, - LIB3DS_LIN_COLOR_F =0x0013, - LIB3DS_INT_PERCENTAGE =0x0030, - LIB3DS_FLOAT_PERCENTAGE =0x0031, - - LIB3DS_MDATA =0x3D3D, - LIB3DS_MESH_VERSION =0x3D3E, - LIB3DS_MASTER_SCALE =0x0100, - LIB3DS_LO_SHADOW_BIAS =0x1400, - LIB3DS_HI_SHADOW_BIAS =0x1410, - LIB3DS_SHADOW_MAP_SIZE =0x1420, - LIB3DS_SHADOW_SAMPLES =0x1430, - LIB3DS_SHADOW_RANGE =0x1440, - LIB3DS_SHADOW_FILTER =0x1450, - LIB3DS_RAY_BIAS =0x1460, - LIB3DS_O_CONSTS =0x1500, - LIB3DS_AMBIENT_LIGHT =0x2100, - LIB3DS_BIT_MAP =0x1100, - LIB3DS_SOLID_BGND =0x1200, - LIB3DS_V_GRADIENT =0x1300, - LIB3DS_USE_BIT_MAP =0x1101, - LIB3DS_USE_SOLID_BGND =0x1201, - LIB3DS_USE_V_GRADIENT =0x1301, - LIB3DS_FOG =0x2200, - LIB3DS_FOG_BGND =0x2210, - LIB3DS_LAYER_FOG =0x2302, - LIB3DS_DISTANCE_CUE =0x2300, - LIB3DS_DCUE_BGND =0x2310, - LIB3DS_USE_FOG =0x2201, - LIB3DS_USE_LAYER_FOG =0x2303, - LIB3DS_USE_DISTANCE_CUE =0x2301, - - LIB3DS_MAT_ENTRY =0xAFFF, - LIB3DS_MAT_NAME =0xA000, - LIB3DS_MAT_AMBIENT =0xA010, - LIB3DS_MAT_DIFFUSE =0xA020, - LIB3DS_MAT_SPECULAR =0xA030, - LIB3DS_MAT_SHININESS =0xA040, - LIB3DS_MAT_SHIN2PCT =0xA041, - LIB3DS_MAT_TRANSPARENCY =0xA050, - LIB3DS_MAT_XPFALL =0xA052, - LIB3DS_MAT_USE_XPFALL =0xA240, - LIB3DS_MAT_REFBLUR =0xA053, - LIB3DS_MAT_SHADING =0xA100, - LIB3DS_MAT_USE_REFBLUR =0xA250, - LIB3DS_MAT_SELF_ILLUM =0xA080, - LIB3DS_MAT_TWO_SIDE =0xA081, - LIB3DS_MAT_DECAL =0xA082, - LIB3DS_MAT_ADDITIVE =0xA083, - LIB3DS_MAT_SELF_ILPCT =0xA084, - LIB3DS_MAT_WIRE =0xA085, - LIB3DS_MAT_FACEMAP =0xA088, - LIB3DS_MAT_PHONGSOFT =0xA08C, - LIB3DS_MAT_WIREABS =0xA08E, - LIB3DS_MAT_WIRE_SIZE =0xA087, - LIB3DS_MAT_TEXMAP =0xA200, - LIB3DS_MAT_SXP_TEXT_DATA =0xA320, - LIB3DS_MAT_TEXMASK =0xA33E, - LIB3DS_MAT_SXP_TEXTMASK_DATA =0xA32A, - LIB3DS_MAT_TEX2MAP =0xA33A, - LIB3DS_MAT_SXP_TEXT2_DATA =0xA321, - LIB3DS_MAT_TEX2MASK =0xA340, - LIB3DS_MAT_SXP_TEXT2MASK_DATA =0xA32C, - LIB3DS_MAT_OPACMAP =0xA210, - LIB3DS_MAT_SXP_OPAC_DATA =0xA322, - LIB3DS_MAT_OPACMASK =0xA342, - LIB3DS_MAT_SXP_OPACMASK_DATA =0xA32E, - LIB3DS_MAT_BUMPMAP =0xA230, - LIB3DS_MAT_SXP_BUMP_DATA =0xA324, - LIB3DS_MAT_BUMPMASK =0xA344, - LIB3DS_MAT_SXP_BUMPMASK_DATA =0xA330, - LIB3DS_MAT_SPECMAP =0xA204, - LIB3DS_MAT_SXP_SPEC_DATA =0xA325, - LIB3DS_MAT_SPECMASK =0xA348, - LIB3DS_MAT_SXP_SPECMASK_DATA =0xA332, - LIB3DS_MAT_SHINMAP =0xA33C, - LIB3DS_MAT_SXP_SHIN_DATA =0xA326, - LIB3DS_MAT_SHINMASK =0xA346, - LIB3DS_MAT_SXP_SHINMASK_DATA =0xA334, - LIB3DS_MAT_SELFIMAP =0xA33D, - LIB3DS_MAT_SXP_SELFI_DATA =0xA328, - LIB3DS_MAT_SELFIMASK =0xA34A, - LIB3DS_MAT_SXP_SELFIMASK_DATA =0xA336, - LIB3DS_MAT_REFLMAP =0xA220, - LIB3DS_MAT_REFLMASK =0xA34C, - LIB3DS_MAT_SXP_REFLMASK_DATA =0xA338, - LIB3DS_MAT_ACUBIC =0xA310, - LIB3DS_MAT_MAPNAME =0xA300, - LIB3DS_MAT_MAP_TILING =0xA351, - LIB3DS_MAT_MAP_TEXBLUR =0xA353, - LIB3DS_MAT_MAP_USCALE =0xA354, - LIB3DS_MAT_MAP_VSCALE =0xA356, - LIB3DS_MAT_MAP_UOFFSET =0xA358, - LIB3DS_MAT_MAP_VOFFSET =0xA35A, - LIB3DS_MAT_MAP_ANG =0xA35C, - LIB3DS_MAT_MAP_COL1 =0xA360, - LIB3DS_MAT_MAP_COL2 =0xA362, - LIB3DS_MAT_MAP_RCOL =0xA364, - LIB3DS_MAT_MAP_GCOL =0xA366, - LIB3DS_MAT_MAP_BCOL =0xA368, - - LIB3DS_NAMED_OBJECT =0x4000, - LIB3DS_N_DIRECT_LIGHT =0x4600, - LIB3DS_DL_OFF =0x4620, - LIB3DS_DL_OUTER_RANGE =0x465A, - LIB3DS_DL_INNER_RANGE =0x4659, - LIB3DS_DL_MULTIPLIER =0x465B, - LIB3DS_DL_EXCLUDE =0x4654, - LIB3DS_DL_ATTENUATE =0x4625, - LIB3DS_DL_SPOTLIGHT =0x4610, - LIB3DS_DL_SPOT_ROLL =0x4656, - LIB3DS_DL_SHADOWED =0x4630, - LIB3DS_DL_LOCAL_SHADOW2 =0x4641, - LIB3DS_DL_SEE_CONE =0x4650, - LIB3DS_DL_SPOT_RECTANGULAR =0x4651, - LIB3DS_DL_SPOT_ASPECT =0x4657, - LIB3DS_DL_SPOT_PROJECTOR =0x4653, - LIB3DS_DL_SPOT_OVERSHOOT =0x4652, - LIB3DS_DL_RAY_BIAS =0x4658, - LIB3DS_DL_RAYSHAD =0x4627, - LIB3DS_N_CAMERA =0x4700, - LIB3DS_CAM_SEE_CONE =0x4710, - LIB3DS_CAM_RANGES =0x4720, - LIB3DS_OBJ_HIDDEN =0x4010, - LIB3DS_OBJ_VIS_LOFTER =0x4011, - LIB3DS_OBJ_DOESNT_CAST =0x4012, - LIB3DS_OBJ_DONT_RCVSHADOW =0x4017, - LIB3DS_OBJ_MATTE =0x4013, - LIB3DS_OBJ_FAST =0x4014, - LIB3DS_OBJ_PROCEDURAL =0x4015, - LIB3DS_OBJ_FROZEN =0x4016, - LIB3DS_N_TRI_OBJECT =0x4100, - LIB3DS_POINT_ARRAY =0x4110, - LIB3DS_POINT_FLAG_ARRAY =0x4111, - LIB3DS_FACE_ARRAY =0x4120, - LIB3DS_MSH_MAT_GROUP =0x4130, - LIB3DS_SMOOTH_GROUP =0x4150, - LIB3DS_MSH_BOXMAP =0x4190, - LIB3DS_TEX_VERTS =0x4140, - LIB3DS_MESH_MATRIX =0x4160, - LIB3DS_MESH_COLOR =0x4165, - LIB3DS_MESH_TEXTURE_INFO =0x4170, - - LIB3DS_KFDATA =0xB000, - LIB3DS_KFHDR =0xB00A, - LIB3DS_KFSEG =0xB008, - LIB3DS_KFCURTIME =0xB009, - LIB3DS_AMBIENT_NODE_TAG =0xB001, - LIB3DS_OBJECT_NODE_TAG =0xB002, - LIB3DS_CAMERA_NODE_TAG =0xB003, - LIB3DS_TARGET_NODE_TAG =0xB004, - LIB3DS_LIGHT_NODE_TAG =0xB005, - LIB3DS_L_TARGET_NODE_TAG =0xB006, - LIB3DS_SPOTLIGHT_NODE_TAG =0xB007, - LIB3DS_NODE_ID =0xB030, - LIB3DS_NODE_HDR =0xB010, - LIB3DS_PIVOT =0xB013, - LIB3DS_INSTANCE_NAME =0xB011, - LIB3DS_MORPH_SMOOTH =0xB015, - LIB3DS_BOUNDBOX =0xB014, - LIB3DS_POS_TRACK_TAG =0xB020, - LIB3DS_COL_TRACK_TAG =0xB025, - LIB3DS_ROT_TRACK_TAG =0xB021, - LIB3DS_SCL_TRACK_TAG =0xB022, - LIB3DS_MORPH_TRACK_TAG =0xB026, - LIB3DS_FOV_TRACK_TAG =0xB023, - LIB3DS_ROLL_TRACK_TAG =0xB024, - LIB3DS_HOT_TRACK_TAG =0xB027, - LIB3DS_FALL_TRACK_TAG =0xB028, - LIB3DS_HIDE_TRACK_TAG =0xB029, - - LIB3DS_POLY_2D = 0x5000, - LIB3DS_SHAPE_OK = 0x5010, - LIB3DS_SHAPE_NOT_OK = 0x5011, - LIB3DS_SHAPE_HOOK = 0x5020, - LIB3DS_PATH_3D = 0x6000, - LIB3DS_PATH_MATRIX = 0x6005, - LIB3DS_SHAPE_2D = 0x6010, - LIB3DS_M_SCALE = 0x6020, - LIB3DS_M_TWIST = 0x6030, - LIB3DS_M_TEETER = 0x6040, - LIB3DS_M_FIT = 0x6050, - LIB3DS_M_BEVEL = 0x6060, - LIB3DS_XZ_CURVE = 0x6070, - LIB3DS_YZ_CURVE = 0x6080, - LIB3DS_INTERPCT = 0x6090, - LIB3DS_DEFORM_LIMIT = 0x60A0, - - LIB3DS_USE_CONTOUR = 0x6100, - LIB3DS_USE_TWEEN = 0x6110, - LIB3DS_USE_SCALE = 0x6120, - LIB3DS_USE_TWIST = 0x6130, - LIB3DS_USE_TEETER = 0x6140, - LIB3DS_USE_FIT = 0x6150, - LIB3DS_USE_BEVEL = 0x6160, - - LIB3DS_DEFAULT_VIEW = 0x3000, - LIB3DS_VIEW_TOP = 0x3010, - LIB3DS_VIEW_BOTTOM = 0x3020, - LIB3DS_VIEW_LEFT = 0x3030, - LIB3DS_VIEW_RIGHT = 0x3040, - LIB3DS_VIEW_FRONT = 0x3050, - LIB3DS_VIEW_BACK = 0x3060, - LIB3DS_VIEW_USER = 0x3070, - LIB3DS_VIEW_CAMERA = 0x3080, - LIB3DS_VIEW_WINDOW = 0x3090, - - LIB3DS_VIEWPORT_LAYOUT_OLD = 0x7000, - LIB3DS_VIEWPORT_DATA_OLD = 0x7010, - LIB3DS_VIEWPORT_LAYOUT = 0x7001, - LIB3DS_VIEWPORT_DATA = 0x7011, - LIB3DS_VIEWPORT_DATA_3 = 0x7012, - LIB3DS_VIEWPORT_SIZE = 0x7020, - LIB3DS_NETWORK_VIEW = 0x7030 -} Lib3dsChunks; - -typedef struct Lib3dsChunk { - Lib3dsWord chunk; - Lib3dsDword size; - Lib3dsDword end; - Lib3dsDword cur; -} Lib3dsChunk; - -extern LIB3DSAPI void lib3ds_chunk_enable_dump(Lib3dsBool enable, Lib3dsBool unknown); -extern LIB3DSAPI Lib3dsBool lib3ds_chunk_read(Lib3dsChunk *c, Lib3dsIo *io); -extern LIB3DSAPI Lib3dsBool lib3ds_chunk_read_start(Lib3dsChunk *c, Lib3dsWord chunk, Lib3dsIo *io); -extern LIB3DSAPI void lib3ds_chunk_read_tell(Lib3dsChunk *c, Lib3dsIo *io); -extern LIB3DSAPI Lib3dsWord lib3ds_chunk_read_next(Lib3dsChunk *c, Lib3dsIo *io); -extern LIB3DSAPI void lib3ds_chunk_read_reset(Lib3dsChunk *c, Lib3dsIo *io); -extern LIB3DSAPI void lib3ds_chunk_read_end(Lib3dsChunk *c, Lib3dsIo *io); -extern LIB3DSAPI Lib3dsBool lib3ds_chunk_write(Lib3dsChunk *c, Lib3dsIo *io); -extern LIB3DSAPI Lib3dsBool lib3ds_chunk_write_start(Lib3dsChunk *c, Lib3dsIo *io); -extern LIB3DSAPI Lib3dsBool lib3ds_chunk_write_end(Lib3dsChunk *c, Lib3dsIo *io); -extern LIB3DSAPI Lib3dsBool lib3ds_chunk_write_switch(Lib3dsWord chunk, Lib3dsIo *io); -extern LIB3DSAPI const char* lib3ds_chunk_name(Lib3dsWord chunk); -extern LIB3DSAPI void lib3ds_chunk_unknown(Lib3dsWord chunk); -extern LIB3DSAPI void lib3ds_chunk_dump_info(const char *format, ...); - -#ifdef __cplusplus -} -#endif -#endif - - diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/chunktable.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/chunktable.h deleted file mode 100644 index dc71f708b..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/chunktable.h +++ /dev/null @@ -1,264 +0,0 @@ -/* -*- c -*- */ -#ifndef INCLUDED_LIB3DS_CHUNKTABLE_H -#define INCLUDED_LIB3DS_CHUNKTABLE_H -/* - * The 3D Studio File Format Library - * Copyright (C) 1996-2007 by Jan Eric Kyprianidis - * All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - * License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id: chunktable.h,v 1.16 2007/06/20 17:04:08 jeh Exp $ - */ - -#ifndef INCLUDED_LIB3DS_CHUNK_H -#include "chunk.h" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct Lib3dsChunkTable { - Lib3dsDword chunk; - const char* name; -} Lib3dsChunkTable; - -static Lib3dsChunkTable lib3ds_chunk_table[]={ - {LIB3DS_NULL_CHUNK, "LIB3DS_NULL_CHUNK"}, - {LIB3DS_M3DMAGIC, "LIB3DS_M3DMAGIC"}, - {LIB3DS_SMAGIC, "LIB3DS_SMAGIC"}, - {LIB3DS_LMAGIC, "LIB3DS_LMAGIC"}, - {LIB3DS_MLIBMAGIC, "LIB3DS_MLIBMAGIC"}, - {LIB3DS_MATMAGIC, "LIB3DS_MATMAGIC"}, - {LIB3DS_CMAGIC, "LIB3DS_CMAGIC"}, - {LIB3DS_M3D_VERSION, "LIB3DS_M3D_VERSION"}, - {LIB3DS_M3D_KFVERSION, "LIB3DS_M3D_KFVERSION"}, - {LIB3DS_COLOR_F, "LIB3DS_COLOR_F"}, - {LIB3DS_COLOR_24, "LIB3DS_COLOR_24"}, - {LIB3DS_LIN_COLOR_24, "LIB3DS_LIN_COLOR_24"}, - {LIB3DS_LIN_COLOR_F, "LIB3DS_LIN_COLOR_F"}, - {LIB3DS_INT_PERCENTAGE, "LIB3DS_INT_PERCENTAGE"}, - {LIB3DS_FLOAT_PERCENTAGE, "LIB3DS_FLOAT_PERCENTAGE"}, - {LIB3DS_MDATA, "LIB3DS_MDATA"}, - {LIB3DS_MESH_VERSION, "LIB3DS_MESH_VERSION"}, - {LIB3DS_MASTER_SCALE, "LIB3DS_MASTER_SCALE"}, - {LIB3DS_LO_SHADOW_BIAS, "LIB3DS_LO_SHADOW_BIAS"}, - {LIB3DS_HI_SHADOW_BIAS, "LIB3DS_HI_SHADOW_BIAS"}, - {LIB3DS_SHADOW_MAP_SIZE, "LIB3DS_SHADOW_MAP_SIZE"}, - {LIB3DS_SHADOW_SAMPLES, "LIB3DS_SHADOW_SAMPLES"}, - {LIB3DS_SHADOW_RANGE, "LIB3DS_SHADOW_RANGE"}, - {LIB3DS_SHADOW_FILTER, "LIB3DS_SHADOW_FILTER"}, - {LIB3DS_RAY_BIAS, "LIB3DS_RAY_BIAS"}, - {LIB3DS_O_CONSTS, "LIB3DS_O_CONSTS"}, - {LIB3DS_AMBIENT_LIGHT, "LIB3DS_AMBIENT_LIGHT"}, - {LIB3DS_BIT_MAP, "LIB3DS_BIT_MAP"}, - {LIB3DS_SOLID_BGND, "LIB3DS_SOLID_BGND"}, - {LIB3DS_V_GRADIENT, "LIB3DS_V_GRADIENT"}, - {LIB3DS_USE_BIT_MAP, "LIB3DS_USE_BIT_MAP"}, - {LIB3DS_USE_SOLID_BGND, "LIB3DS_USE_SOLID_BGND"}, - {LIB3DS_USE_V_GRADIENT, "LIB3DS_USE_V_GRADIENT"}, - {LIB3DS_FOG, "LIB3DS_FOG"}, - {LIB3DS_FOG_BGND, "LIB3DS_FOG_BGND"}, - {LIB3DS_LAYER_FOG, "LIB3DS_LAYER_FOG"}, - {LIB3DS_DISTANCE_CUE, "LIB3DS_DISTANCE_CUE"}, - {LIB3DS_DCUE_BGND, "LIB3DS_DCUE_BGND"}, - {LIB3DS_USE_FOG, "LIB3DS_USE_FOG"}, - {LIB3DS_USE_LAYER_FOG, "LIB3DS_USE_LAYER_FOG"}, - {LIB3DS_USE_DISTANCE_CUE, "LIB3DS_USE_DISTANCE_CUE"}, - {LIB3DS_MAT_ENTRY, "LIB3DS_MAT_ENTRY"}, - {LIB3DS_MAT_NAME, "LIB3DS_MAT_NAME"}, - {LIB3DS_MAT_AMBIENT, "LIB3DS_MAT_AMBIENT"}, - {LIB3DS_MAT_DIFFUSE, "LIB3DS_MAT_DIFFUSE"}, - {LIB3DS_MAT_SPECULAR, "LIB3DS_MAT_SPECULAR"}, - {LIB3DS_MAT_SHININESS, "LIB3DS_MAT_SHININESS"}, - {LIB3DS_MAT_SHIN2PCT, "LIB3DS_MAT_SHIN2PCT"}, - {LIB3DS_MAT_TRANSPARENCY, "LIB3DS_MAT_TRANSPARENCY"}, - {LIB3DS_MAT_XPFALL, "LIB3DS_MAT_XPFALL"}, - {LIB3DS_MAT_USE_XPFALL, "LIB3DS_MAT_USE_XPFALL"}, - {LIB3DS_MAT_REFBLUR, "LIB3DS_MAT_REFBLUR"}, - {LIB3DS_MAT_SHADING, "LIB3DS_MAT_SHADING"}, - {LIB3DS_MAT_USE_REFBLUR, "LIB3DS_MAT_USE_REFBLUR"}, - {LIB3DS_MAT_SELF_ILLUM, "LIB3DS_MAT_SELF_ILLUM"}, - {LIB3DS_MAT_TWO_SIDE, "LIB3DS_MAT_TWO_SIDE"}, - {LIB3DS_MAT_DECAL, "LIB3DS_MAT_DECAL"}, - {LIB3DS_MAT_ADDITIVE, "LIB3DS_MAT_ADDITIVE"}, - {LIB3DS_MAT_SELF_ILPCT, "LIB3DS_MAT_SELF_ILPCT"}, - {LIB3DS_MAT_WIRE, "LIB3DS_MAT_WIRE"}, - {LIB3DS_MAT_FACEMAP, "LIB3DS_MAT_FACEMAP"}, - {LIB3DS_MAT_PHONGSOFT, "LIB3DS_MAT_PHONGSOFT"}, - {LIB3DS_MAT_WIREABS, "LIB3DS_MAT_WIREABS"}, - {LIB3DS_MAT_WIRE_SIZE, "LIB3DS_MAT_WIRE_SIZE"}, - {LIB3DS_MAT_TEXMAP, "LIB3DS_MAT_TEXMAP"}, - {LIB3DS_MAT_SXP_TEXT_DATA, "LIB3DS_MAT_SXP_TEXT_DATA"}, - {LIB3DS_MAT_TEXMASK, "LIB3DS_MAT_TEXMASK"}, - {LIB3DS_MAT_SXP_TEXTMASK_DATA, "LIB3DS_MAT_SXP_TEXTMASK_DATA"}, - {LIB3DS_MAT_TEX2MAP, "LIB3DS_MAT_TEX2MAP"}, - {LIB3DS_MAT_SXP_TEXT2_DATA, "LIB3DS_MAT_SXP_TEXT2_DATA"}, - {LIB3DS_MAT_TEX2MASK, "LIB3DS_MAT_TEX2MASK"}, - {LIB3DS_MAT_SXP_TEXT2MASK_DATA, "LIB3DS_MAT_SXP_TEXT2MASK_DATA"}, - {LIB3DS_MAT_OPACMAP, "LIB3DS_MAT_OPACMAP"}, - {LIB3DS_MAT_SXP_OPAC_DATA, "LIB3DS_MAT_SXP_OPAC_DATA"}, - {LIB3DS_MAT_OPACMASK, "LIB3DS_MAT_OPACMASK"}, - {LIB3DS_MAT_SXP_OPACMASK_DATA, "LIB3DS_MAT_SXP_OPACMASK_DATA"}, - {LIB3DS_MAT_BUMPMAP, "LIB3DS_MAT_BUMPMAP"}, - {LIB3DS_MAT_SXP_BUMP_DATA, "LIB3DS_MAT_SXP_BUMP_DATA"}, - {LIB3DS_MAT_BUMPMASK, "LIB3DS_MAT_BUMPMASK"}, - {LIB3DS_MAT_SXP_BUMPMASK_DATA, "LIB3DS_MAT_SXP_BUMPMASK_DATA"}, - {LIB3DS_MAT_SPECMAP, "LIB3DS_MAT_SPECMAP"}, - {LIB3DS_MAT_SXP_SPEC_DATA, "LIB3DS_MAT_SXP_SPEC_DATA"}, - {LIB3DS_MAT_SPECMASK, "LIB3DS_MAT_SPECMASK"}, - {LIB3DS_MAT_SXP_SPECMASK_DATA, "LIB3DS_MAT_SXP_SPECMASK_DATA"}, - {LIB3DS_MAT_SHINMAP, "LIB3DS_MAT_SHINMAP"}, - {LIB3DS_MAT_SXP_SHIN_DATA, "LIB3DS_MAT_SXP_SHIN_DATA"}, - {LIB3DS_MAT_SHINMASK, "LIB3DS_MAT_SHINMASK"}, - {LIB3DS_MAT_SXP_SHINMASK_DATA, "LIB3DS_MAT_SXP_SHINMASK_DATA"}, - {LIB3DS_MAT_SELFIMAP, "LIB3DS_MAT_SELFIMAP"}, - {LIB3DS_MAT_SXP_SELFI_DATA, "LIB3DS_MAT_SXP_SELFI_DATA"}, - {LIB3DS_MAT_SELFIMASK, "LIB3DS_MAT_SELFIMASK"}, - {LIB3DS_MAT_SXP_SELFIMASK_DATA, "LIB3DS_MAT_SXP_SELFIMASK_DATA"}, - {LIB3DS_MAT_REFLMAP, "LIB3DS_MAT_REFLMAP"}, - {LIB3DS_MAT_REFLMASK, "LIB3DS_MAT_REFLMASK"}, - {LIB3DS_MAT_SXP_REFLMASK_DATA, "LIB3DS_MAT_SXP_REFLMASK_DATA"}, - {LIB3DS_MAT_ACUBIC, "LIB3DS_MAT_ACUBIC"}, - {LIB3DS_MAT_MAPNAME, "LIB3DS_MAT_MAPNAME"}, - {LIB3DS_MAT_MAP_TILING, "LIB3DS_MAT_MAP_TILING"}, - {LIB3DS_MAT_MAP_TEXBLUR, "LIB3DS_MAT_MAP_TEXBLUR"}, - {LIB3DS_MAT_MAP_USCALE, "LIB3DS_MAT_MAP_USCALE"}, - {LIB3DS_MAT_MAP_VSCALE, "LIB3DS_MAT_MAP_VSCALE"}, - {LIB3DS_MAT_MAP_UOFFSET, "LIB3DS_MAT_MAP_UOFFSET"}, - {LIB3DS_MAT_MAP_VOFFSET, "LIB3DS_MAT_MAP_VOFFSET"}, - {LIB3DS_MAT_MAP_ANG, "LIB3DS_MAT_MAP_ANG"}, - {LIB3DS_MAT_MAP_COL1, "LIB3DS_MAT_MAP_COL1"}, - {LIB3DS_MAT_MAP_COL2, "LIB3DS_MAT_MAP_COL2"}, - {LIB3DS_MAT_MAP_RCOL, "LIB3DS_MAT_MAP_RCOL"}, - {LIB3DS_MAT_MAP_GCOL, "LIB3DS_MAT_MAP_GCOL"}, - {LIB3DS_MAT_MAP_BCOL, "LIB3DS_MAT_MAP_BCOL"}, - {LIB3DS_NAMED_OBJECT, "LIB3DS_NAMED_OBJECT"}, - {LIB3DS_N_DIRECT_LIGHT, "LIB3DS_N_DIRECT_LIGHT"}, - {LIB3DS_DL_OFF, "LIB3DS_DL_OFF"}, - {LIB3DS_DL_OUTER_RANGE, "LIB3DS_DL_OUTER_RANGE"}, - {LIB3DS_DL_INNER_RANGE, "LIB3DS_DL_INNER_RANGE"}, - {LIB3DS_DL_MULTIPLIER, "LIB3DS_DL_MULTIPLIER"}, - {LIB3DS_DL_EXCLUDE, "LIB3DS_DL_EXCLUDE"}, - {LIB3DS_DL_ATTENUATE, "LIB3DS_DL_ATTENUATE"}, - {LIB3DS_DL_SPOTLIGHT, "LIB3DS_DL_SPOTLIGHT"}, - {LIB3DS_DL_SPOT_ROLL, "LIB3DS_DL_SPOT_ROLL"}, - {LIB3DS_DL_SHADOWED, "LIB3DS_DL_SHADOWED"}, - {LIB3DS_DL_LOCAL_SHADOW2, "LIB3DS_DL_LOCAL_SHADOW2"}, - {LIB3DS_DL_SEE_CONE, "LIB3DS_DL_SEE_CONE"}, - {LIB3DS_DL_SPOT_RECTANGULAR, "LIB3DS_DL_SPOT_RECTANGULAR"}, - {LIB3DS_DL_SPOT_ASPECT, "LIB3DS_DL_SPOT_ASPECT"}, - {LIB3DS_DL_SPOT_PROJECTOR, "LIB3DS_DL_SPOT_PROJECTOR"}, - {LIB3DS_DL_SPOT_OVERSHOOT, "LIB3DS_DL_SPOT_OVERSHOOT"}, - {LIB3DS_DL_RAY_BIAS, "LIB3DS_DL_RAY_BIAS"}, - {LIB3DS_DL_RAYSHAD, "LIB3DS_DL_RAYSHAD"}, - {LIB3DS_N_CAMERA, "LIB3DS_N_CAMERA"}, - {LIB3DS_CAM_SEE_CONE, "LIB3DS_CAM_SEE_CONE"}, - {LIB3DS_CAM_RANGES, "LIB3DS_CAM_RANGES"}, - {LIB3DS_OBJ_HIDDEN, "LIB3DS_OBJ_HIDDEN"}, - {LIB3DS_OBJ_VIS_LOFTER, "LIB3DS_OBJ_VIS_LOFTER"}, - {LIB3DS_OBJ_DOESNT_CAST, "LIB3DS_OBJ_DOESNT_CAST"}, - {LIB3DS_OBJ_DONT_RCVSHADOW, "LIB3DS_OBJ_DONT_RCVSHADOW"}, - {LIB3DS_OBJ_MATTE, "LIB3DS_OBJ_MATTE"}, - {LIB3DS_OBJ_FAST, "LIB3DS_OBJ_FAST"}, - {LIB3DS_OBJ_PROCEDURAL, "LIB3DS_OBJ_PROCEDURAL"}, - {LIB3DS_OBJ_FROZEN, "LIB3DS_OBJ_FROZEN"}, - {LIB3DS_N_TRI_OBJECT, "LIB3DS_N_TRI_OBJECT"}, - {LIB3DS_POINT_ARRAY, "LIB3DS_POINT_ARRAY"}, - {LIB3DS_POINT_FLAG_ARRAY, "LIB3DS_POINT_FLAG_ARRAY"}, - {LIB3DS_FACE_ARRAY, "LIB3DS_FACE_ARRAY"}, - {LIB3DS_MSH_MAT_GROUP, "LIB3DS_MSH_MAT_GROUP"}, - {LIB3DS_SMOOTH_GROUP, "LIB3DS_SMOOTH_GROUP"}, - {LIB3DS_MSH_BOXMAP, "LIB3DS_MSH_BOXMAP"}, - {LIB3DS_TEX_VERTS, "LIB3DS_TEX_VERTS"}, - {LIB3DS_MESH_MATRIX, "LIB3DS_MESH_MATRIX"}, - {LIB3DS_MESH_COLOR, "LIB3DS_MESH_COLOR"}, - {LIB3DS_MESH_TEXTURE_INFO, "LIB3DS_MESH_TEXTURE_INFO"}, - {LIB3DS_KFDATA, "LIB3DS_KFDATA"}, - {LIB3DS_KFHDR, "LIB3DS_KFHDR"}, - {LIB3DS_KFSEG, "LIB3DS_KFSEG"}, - {LIB3DS_KFCURTIME, "LIB3DS_KFCURTIME"}, - {LIB3DS_AMBIENT_NODE_TAG, "LIB3DS_AMBIENT_NODE_TAG"}, - {LIB3DS_OBJECT_NODE_TAG, "LIB3DS_OBJECT_NODE_TAG"}, - {LIB3DS_CAMERA_NODE_TAG, "LIB3DS_CAMERA_NODE_TAG"}, - {LIB3DS_TARGET_NODE_TAG, "LIB3DS_TARGET_NODE_TAG"}, - {LIB3DS_LIGHT_NODE_TAG, "LIB3DS_LIGHT_NODE_TAG"}, - {LIB3DS_L_TARGET_NODE_TAG, "LIB3DS_L_TARGET_NODE_TAG"}, - {LIB3DS_SPOTLIGHT_NODE_TAG, "LIB3DS_SPOTLIGHT_NODE_TAG"}, - {LIB3DS_NODE_ID, "LIB3DS_NODE_ID"}, - {LIB3DS_NODE_HDR, "LIB3DS_NODE_HDR"}, - {LIB3DS_PIVOT, "LIB3DS_PIVOT"}, - {LIB3DS_INSTANCE_NAME, "LIB3DS_INSTANCE_NAME"}, - {LIB3DS_MORPH_SMOOTH, "LIB3DS_MORPH_SMOOTH"}, - {LIB3DS_BOUNDBOX, "LIB3DS_BOUNDBOX"}, - {LIB3DS_POS_TRACK_TAG, "LIB3DS_POS_TRACK_TAG"}, - {LIB3DS_COL_TRACK_TAG, "LIB3DS_COL_TRACK_TAG"}, - {LIB3DS_ROT_TRACK_TAG, "LIB3DS_ROT_TRACK_TAG"}, - {LIB3DS_SCL_TRACK_TAG, "LIB3DS_SCL_TRACK_TAG"}, - {LIB3DS_MORPH_TRACK_TAG, "LIB3DS_MORPH_TRACK_TAG"}, - {LIB3DS_FOV_TRACK_TAG, "LIB3DS_FOV_TRACK_TAG"}, - {LIB3DS_ROLL_TRACK_TAG, "LIB3DS_ROLL_TRACK_TAG"}, - {LIB3DS_HOT_TRACK_TAG, "LIB3DS_HOT_TRACK_TAG"}, - {LIB3DS_FALL_TRACK_TAG, "LIB3DS_FALL_TRACK_TAG"}, - {LIB3DS_HIDE_TRACK_TAG, "LIB3DS_HIDE_TRACK_TAG"}, - {LIB3DS_POLY_2D, "LIB3DS_POLY_2D"}, - {LIB3DS_SHAPE_OK, "LIB3DS_SHAPE_OK"}, - {LIB3DS_SHAPE_NOT_OK, "LIB3DS_SHAPE_NOT_OK"}, - {LIB3DS_SHAPE_HOOK, "LIB3DS_SHAPE_HOOK"}, - {LIB3DS_PATH_3D, "LIB3DS_PATH_3D"}, - {LIB3DS_PATH_MATRIX, "LIB3DS_PATH_MATRIX"}, - {LIB3DS_SHAPE_2D, "LIB3DS_SHAPE_2D"}, - {LIB3DS_M_SCALE, "LIB3DS_M_SCALE"}, - {LIB3DS_M_TWIST, "LIB3DS_M_TWIST"}, - {LIB3DS_M_TEETER, "LIB3DS_M_TEETER"}, - {LIB3DS_M_FIT, "LIB3DS_M_FIT"}, - {LIB3DS_M_BEVEL, "LIB3DS_M_BEVEL"}, - {LIB3DS_XZ_CURVE, "LIB3DS_XZ_CURVE"}, - {LIB3DS_YZ_CURVE, "LIB3DS_YZ_CURVE"}, - {LIB3DS_INTERPCT, "LIB3DS_INTERPCT"}, - {LIB3DS_DEFORM_LIMIT, "LIB3DS_DEFORM_LIMIT"}, - {LIB3DS_USE_CONTOUR, "LIB3DS_USE_CONTOUR"}, - {LIB3DS_USE_TWEEN, "LIB3DS_USE_TWEEN"}, - {LIB3DS_USE_SCALE, "LIB3DS_USE_SCALE"}, - {LIB3DS_USE_TWIST, "LIB3DS_USE_TWIST"}, - {LIB3DS_USE_TEETER, "LIB3DS_USE_TEETER"}, - {LIB3DS_USE_FIT, "LIB3DS_USE_FIT"}, - {LIB3DS_USE_BEVEL, "LIB3DS_USE_BEVEL"}, - {LIB3DS_DEFAULT_VIEW, "LIB3DS_DEFAULT_VIEW"}, - {LIB3DS_VIEW_TOP, "LIB3DS_VIEW_TOP"}, - {LIB3DS_VIEW_BOTTOM, "LIB3DS_VIEW_BOTTOM"}, - {LIB3DS_VIEW_LEFT, "LIB3DS_VIEW_LEFT"}, - {LIB3DS_VIEW_RIGHT, "LIB3DS_VIEW_RIGHT"}, - {LIB3DS_VIEW_FRONT, "LIB3DS_VIEW_FRONT"}, - {LIB3DS_VIEW_BACK, "LIB3DS_VIEW_BACK"}, - {LIB3DS_VIEW_USER, "LIB3DS_VIEW_USER"}, - {LIB3DS_VIEW_CAMERA, "LIB3DS_VIEW_CAMERA"}, - {LIB3DS_VIEW_WINDOW, "LIB3DS_VIEW_WINDOW"}, - {LIB3DS_VIEWPORT_LAYOUT_OLD, "LIB3DS_VIEWPORT_LAYOUT_OLD"}, - {LIB3DS_VIEWPORT_DATA_OLD, "LIB3DS_VIEWPORT_DATA_OLD"}, - {LIB3DS_VIEWPORT_LAYOUT, "LIB3DS_VIEWPORT_LAYOUT"}, - {LIB3DS_VIEWPORT_DATA, "LIB3DS_VIEWPORT_DATA"}, - {LIB3DS_VIEWPORT_DATA_3, "LIB3DS_VIEWPORT_DATA_3"}, - {LIB3DS_VIEWPORT_SIZE, "LIB3DS_VIEWPORT_SIZE"}, - {LIB3DS_NETWORK_VIEW, "LIB3DS_NETWORK_VIEW"}, - {0,0} -}; - -#ifdef __cplusplus -} -#endif -#endif - diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/ease.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/ease.h deleted file mode 100644 index a21261819..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/ease.h +++ /dev/null @@ -1,41 +0,0 @@ -/* -*- c -*- */ -#ifndef INCLUDED_LIB3DS_EASE_H -#define INCLUDED_LIB3DS_EASE_H -/* - * The 3D Studio File Format Library - * Copyright (C) 1996-2007 by Jan Eric Kyprianidis - * All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - * License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id: ease.h,v 1.6 2007/06/14 09:59:10 jeh Exp $ - */ - -#ifndef INCLUDED_LIB3DS_TYPES_H -#include "types.h" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -extern LIB3DSAPI Lib3dsFloat lib3ds_ease(Lib3dsFloat fp, Lib3dsFloat fc, - Lib3dsFloat fn, Lib3dsFloat ease_from, Lib3dsFloat ease_to); - -#ifdef __cplusplus -} -#endif -#endif - diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/file.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/file.h deleted file mode 100644 index ebe10e1c4..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/file.h +++ /dev/null @@ -1,106 +0,0 @@ -/* -*- c -*- */ -#ifndef INCLUDED_LIB3DS_FILE_H -#define INCLUDED_LIB3DS_FILE_H -/* - * The 3D Studio File Format Library - * Copyright (C) 1996-2007 by Jan Eric Kyprianidis - * All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - * License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id: file.h,v 1.24 2007/06/20 17:04:08 jeh Exp $ - */ - -#ifndef INCLUDED_LIB3DS_BACKGROUND_H -#include "background.h" -#endif -#ifndef INCLUDED_LIB3DS_ATMOSPHERE_H -#include "atmosphere.h" -#endif -#ifndef INCLUDED_LIB3DS_SHADOW_H -#include "shadow.h" -#endif -#ifndef INCLUDED_LIB3DS_VIEWPORT_H -#include "viewport.h" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * 3DS file structure - * \ingroup file - */ -struct Lib3dsFile { - Lib3dsDword mesh_version; - Lib3dsWord keyf_revision; - char name[12+1]; - Lib3dsFloat master_scale; - Lib3dsVector construction_plane; - Lib3dsRgb ambient; - Lib3dsShadow shadow; - Lib3dsBackground background; - Lib3dsAtmosphere atmosphere; - Lib3dsViewport viewport; - Lib3dsViewport viewport_keyf; - Lib3dsIntd frames; - Lib3dsIntd segment_from; - Lib3dsIntd segment_to; - Lib3dsIntd current_frame; - Lib3dsMaterial *materials; - Lib3dsMesh *meshes; - Lib3dsCamera *cameras; - Lib3dsLight *lights; - Lib3dsNode *nodes; -}; - -extern LIB3DSAPI Lib3dsFile* lib3ds_file_load(const char *filename); -extern LIB3DSAPI Lib3dsBool lib3ds_file_save(Lib3dsFile *file, const char *filename); -extern LIB3DSAPI Lib3dsFile* lib3ds_file_new(); -extern LIB3DSAPI void lib3ds_file_free(Lib3dsFile *file); -extern LIB3DSAPI void lib3ds_file_eval(Lib3dsFile *file, Lib3dsFloat t); -extern LIB3DSAPI Lib3dsBool lib3ds_file_read(Lib3dsFile *file, Lib3dsIo *io); -extern LIB3DSAPI Lib3dsBool lib3ds_file_write(Lib3dsFile *file, Lib3dsIo *io); -extern LIB3DSAPI void lib3ds_file_insert_material(Lib3dsFile *file, Lib3dsMaterial *material); -extern LIB3DSAPI void lib3ds_file_remove_material(Lib3dsFile *file, Lib3dsMaterial *material); -extern LIB3DSAPI Lib3dsMaterial* lib3ds_file_material_by_name(Lib3dsFile *file, const char *name); -extern LIB3DSAPI void lib3ds_file_dump_materials(Lib3dsFile *file); -extern LIB3DSAPI void lib3ds_file_insert_mesh(Lib3dsFile *file, Lib3dsMesh *mesh); -extern LIB3DSAPI void lib3ds_file_remove_mesh(Lib3dsFile *file, Lib3dsMesh *mesh); -extern LIB3DSAPI Lib3dsMesh* lib3ds_file_mesh_by_name(Lib3dsFile *file, const char *name); -extern LIB3DSAPI void lib3ds_file_dump_meshes(Lib3dsFile *file); -extern LIB3DSAPI void lib3ds_file_dump_instances(Lib3dsFile *file); -extern LIB3DSAPI void lib3ds_file_insert_camera(Lib3dsFile *file, Lib3dsCamera *camera); -extern LIB3DSAPI void lib3ds_file_remove_camera(Lib3dsFile *file, Lib3dsCamera *camera); -extern LIB3DSAPI Lib3dsCamera* lib3ds_file_camera_by_name(Lib3dsFile *file, const char *name); -extern LIB3DSAPI void lib3ds_file_dump_cameras(Lib3dsFile *file); -extern LIB3DSAPI void lib3ds_file_insert_light(Lib3dsFile *file, Lib3dsLight *light); -extern LIB3DSAPI void lib3ds_file_remove_light(Lib3dsFile *file, Lib3dsLight *light); -extern LIB3DSAPI Lib3dsLight* lib3ds_file_light_by_name(Lib3dsFile *file, const char *name); -extern LIB3DSAPI void lib3ds_file_dump_lights(Lib3dsFile *file); -extern LIB3DSAPI Lib3dsNode* lib3ds_file_node_by_name(Lib3dsFile *file, const char* name, Lib3dsNodeTypes type); -extern LIB3DSAPI Lib3dsNode* lib3ds_file_node_by_id(Lib3dsFile *file, Lib3dsWord node_id); -extern LIB3DSAPI void lib3ds_file_insert_node(Lib3dsFile *file, Lib3dsNode *node); -extern LIB3DSAPI Lib3dsBool lib3ds_file_remove_node(Lib3dsFile *file, Lib3dsNode *node); -extern LIB3DSAPI void lib3ds_file_bounding_box_of_objects(Lib3dsFile *file, Lib3dsBool include_meshes, Lib3dsBool include_cameras, Lib3dsBool include_lights, Lib3dsVector bmin, Lib3dsVector bmax); -extern LIB3DSAPI void lib3ds_file_bounding_box_of_nodes(Lib3dsFile *file, Lib3dsBool include_meshes, Lib3dsBool include_cameras, Lib3dsBool include_lights, Lib3dsVector bmin, Lib3dsVector bmax); -extern LIB3DSAPI void lib3ds_file_dump_nodes(Lib3dsFile *file); - -#ifdef __cplusplus -} -#endif -#endif - diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/io.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/io.h deleted file mode 100644 index dfbed72a4..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/io.h +++ /dev/null @@ -1,82 +0,0 @@ -/* -*- c -*- */ -#ifndef INCLUDED_LIB3DS_IO_H -#define INCLUDED_LIB3DS_IO_H -/* - * The 3D Studio File Format Library - * Copyright (C) 1996-2007 by Jan Eric Kyprianidis - * All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - * License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id: io.h,v 1.6 2007/06/20 17:04:08 jeh Exp $ - */ - -#ifndef INCLUDED_LIB3DS_TYPES_H -#include "types.h" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -typedef enum Lib3dsIoSeek { - LIB3DS_SEEK_SET =0, - LIB3DS_SEEK_CUR =1, - LIB3DS_SEEK_END =2 -} Lib3dsIoSeek; - -typedef Lib3dsBool (*Lib3dsIoErrorFunc)(void *self); -typedef long (*Lib3dsIoSeekFunc)(void *self, long offset, Lib3dsIoSeek origin); -typedef long (*Lib3dsIoTellFunc)(void *self); -typedef size_t (*Lib3dsIoReadFunc)(void *self, void *buffer, size_t size); -typedef size_t (*Lib3dsIoWriteFunc)(void *self, const void *buffer, size_t size); - -extern LIB3DSAPI Lib3dsIo* lib3ds_io_new(void *self, Lib3dsIoErrorFunc error_func, - Lib3dsIoSeekFunc seek_func, Lib3dsIoTellFunc tell_func, - Lib3dsIoReadFunc read_func, Lib3dsIoWriteFunc write_func); -extern LIB3DSAPI void lib3ds_io_free(Lib3dsIo *io); -extern LIB3DSAPI Lib3dsBool lib3ds_io_error(Lib3dsIo *io); -extern LIB3DSAPI long lib3ds_io_seek(Lib3dsIo *io, long offset, Lib3dsIoSeek origin); -extern LIB3DSAPI long lib3ds_io_tell(Lib3dsIo *io); -extern LIB3DSAPI size_t lib3ds_io_read(Lib3dsIo *io, void *buffer, size_t size); -extern LIB3DSAPI size_t lib3ds_io_write(Lib3dsIo *io, const void *buffer, size_t size); - -extern LIB3DSAPI Lib3dsByte lib3ds_io_read_byte(Lib3dsIo *io); -extern LIB3DSAPI Lib3dsWord lib3ds_io_read_word(Lib3dsIo *io); -extern LIB3DSAPI Lib3dsDword lib3ds_io_read_dword(Lib3dsIo *io); -extern LIB3DSAPI Lib3dsIntb lib3ds_io_read_intb(Lib3dsIo *io); -extern LIB3DSAPI Lib3dsIntw lib3ds_io_read_intw(Lib3dsIo *io); -extern LIB3DSAPI Lib3dsIntd lib3ds_io_read_intd(Lib3dsIo *io); -extern LIB3DSAPI Lib3dsFloat lib3ds_io_read_float(Lib3dsIo *io); -extern LIB3DSAPI Lib3dsBool lib3ds_io_read_vector(Lib3dsIo *io, Lib3dsVector v); -extern LIB3DSAPI Lib3dsBool lib3ds_io_read_rgb(Lib3dsIo *io, Lib3dsRgb rgb); -extern LIB3DSAPI Lib3dsBool lib3ds_io_read_string(Lib3dsIo *io, char *s, int buflen); - -extern LIB3DSAPI Lib3dsBool lib3ds_io_write_byte(Lib3dsIo *io, Lib3dsByte b); -extern LIB3DSAPI Lib3dsBool lib3ds_io_write_word(Lib3dsIo *io, Lib3dsWord w); -extern LIB3DSAPI Lib3dsBool lib3ds_io_write_dword(Lib3dsIo *io, Lib3dsDword d); -extern LIB3DSAPI Lib3dsBool lib3ds_io_write_intb(Lib3dsIo *io, Lib3dsIntb b); -extern LIB3DSAPI Lib3dsBool lib3ds_io_write_intw(Lib3dsIo *io, Lib3dsIntw w); -extern LIB3DSAPI Lib3dsBool lib3ds_io_write_intd(Lib3dsIo *io, Lib3dsIntd d); -extern LIB3DSAPI Lib3dsBool lib3ds_io_write_float(Lib3dsIo *io, Lib3dsFloat l); -extern LIB3DSAPI Lib3dsBool lib3ds_io_write_vector(Lib3dsIo *io, Lib3dsVector v); -extern LIB3DSAPI Lib3dsBool lib3ds_io_write_rgb(Lib3dsIo *io, Lib3dsRgb rgb); -extern LIB3DSAPI Lib3dsBool lib3ds_io_write_string(Lib3dsIo *io, const char *s); - -#ifdef __cplusplus -} -#endif -#endif - diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/light.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/light.h deleted file mode 100644 index b86181ddc..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/light.h +++ /dev/null @@ -1,79 +0,0 @@ -/* -*- c -*- */ -#ifndef INCLUDED_LIB3DS_LIGHT_H -#define INCLUDED_LIB3DS_LIGHT_H -/* - * The 3D Studio File Format Library - * Copyright (C) 1996-2007 by Jan Eric Kyprianidis - * All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - * License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id: light.h,v 1.13 2007/06/20 17:04:08 jeh Exp $ - */ - -#ifndef INCLUDED_LIB3DS_TYPES_H -#include "types.h" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * Light - * \ingroup light - */ -struct Lib3dsLight { - Lib3dsLight *next; - char name[64]; - Lib3dsDword object_flags; /*< @see Lib3dsObjectFlags */ - Lib3dsBool spot_light; - Lib3dsBool see_cone; - Lib3dsRgb color; - Lib3dsVector position; - Lib3dsVector spot; - Lib3dsFloat roll; - Lib3dsBool off; - Lib3dsFloat outer_range; - Lib3dsFloat inner_range; - Lib3dsFloat multiplier; - /*const char** excludes;*/ - Lib3dsFloat attenuation; - Lib3dsBool rectangular_spot; - Lib3dsBool shadowed; - Lib3dsFloat shadow_bias; - Lib3dsFloat shadow_filter; - Lib3dsIntw shadow_size; - Lib3dsFloat spot_aspect; - Lib3dsBool use_projector; - char projector[64]; - Lib3dsIntd spot_overshoot; - Lib3dsBool ray_shadows; - Lib3dsFloat ray_bias; - Lib3dsFloat hot_spot; - Lib3dsFloat fall_off; -}; - -extern LIB3DSAPI Lib3dsLight* lib3ds_light_new(const char *name); -extern LIB3DSAPI void lib3ds_light_free(Lib3dsLight *mesh); -extern LIB3DSAPI void lib3ds_light_dump(Lib3dsLight *light); -extern LIB3DSAPI Lib3dsBool lib3ds_light_read(Lib3dsLight *light, Lib3dsIo *io); -extern LIB3DSAPI Lib3dsBool lib3ds_light_write(Lib3dsLight *light, Lib3dsIo *io); - -#ifdef __cplusplus -} -#endif -#endif - diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/material.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/material.h deleted file mode 100644 index abc11506d..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/material.h +++ /dev/null @@ -1,170 +0,0 @@ -/* -*- c -*- */ -#ifndef INCLUDED_LIB3DS_MATERIAL_H -#define INCLUDED_LIB3DS_MATERIAL_H -/* - * The 3D Studio File Format Library - * Copyright (C) 1996-2007 by Jan Eric Kyprianidis - * All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - * License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id: material.h,v 1.18 2007/06/20 17:04:08 jeh Exp $ - */ - -#ifndef INCLUDED_LIB3DS_TYPES_H -#include "types.h" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * \ingroup material - */ -typedef enum Lib3dsTextureMapFlags { - LIB3DS_DECALE =0x0001, - LIB3DS_MIRROR =0x0002, - LIB3DS_NEGATE =0x0008, - LIB3DS_NO_TILE =0x0010, - LIB3DS_SUMMED_AREA =0x0020, - LIB3DS_ALPHA_SOURCE =0x0040, - LIB3DS_TINT =0x0080, - LIB3DS_IGNORE_ALPHA =0x0100, - LIB3DS_RGB_TINT =0x0200 -} Lib3dsTextureMapFlags; - -/** - * Mateial texture map - * \ingroup material - */ -typedef struct Lib3dsTextureMap { - Lib3dsUserData user; - char name[64]; - Lib3dsDword flags; - Lib3dsFloat percent; - Lib3dsFloat blur; - Lib3dsFloat scale[2]; - Lib3dsFloat offset[2]; - Lib3dsFloat rotation; - Lib3dsRgb tint_1; - Lib3dsRgb tint_2; - Lib3dsRgb tint_r; - Lib3dsRgb tint_g; - Lib3dsRgb tint_b; -} Lib3dsTextureMap; - -/** - * \ingroup material - */ -typedef enum Lib3dsAutoReflMapFlags { - LIB3DS_USE_REFL_MAP =0x0001, - LIB3DS_READ_FIRST_FRAME_ONLY =0x0004, - LIB3DS_FLAT_MIRROR =0x0008 -} Lib3dsAutoReflectionMapFlags; - -/** - * \ingroup material - */ -typedef enum Lib3dsAutoReflMapAntiAliasLevel { - LIB3DS_ANTI_ALIAS_NONE =0, - LIB3DS_ANTI_ALIAS_LOW =1, - LIB3DS_ANTI_ALIAS_MEDIUM =2, - LIB3DS_ANTI_ALIAS_HIGH =3 -} Lib3dsAutoReflMapAntiAliasLevel; - -/** - * Auto reflection map settings - * \ingroup material - */ -typedef struct Lib3dsAutoReflMap { - Lib3dsDword flags; - Lib3dsIntd level; - Lib3dsIntd size; - Lib3dsIntd frame_step; -} Lib3dsAutoReflMap; - -/** - * \ingroup material - */ -typedef enum Lib3dsMaterialShading { - LIB3DS_WIRE_FRAME =0, - LIB3DS_FLAT =1, - LIB3DS_GOURAUD =2, - LIB3DS_PHONG =3, - LIB3DS_METAL =4 -} Lib3dsMaterialShading; - -/** - * Material - * \ingroup material - */ -struct Lib3dsMaterial { - Lib3dsUserData user; /*! Arbitrary user data */ - Lib3dsMaterial *next; - char name[64]; /*! Material name */ - Lib3dsRgba ambient; /*! Material ambient reflectivity */ - Lib3dsRgba diffuse; /*! Material diffuse reflectivity */ - Lib3dsRgba specular; /*! Material specular reflectivity */ - Lib3dsFloat shininess; /*! Material specular exponent */ - Lib3dsFloat shin_strength; - Lib3dsBool use_blur; - Lib3dsFloat blur; - Lib3dsFloat transparency; - Lib3dsFloat falloff; - Lib3dsBool additive; - Lib3dsFloat self_ilpct; - Lib3dsBool use_falloff; - Lib3dsBool self_illum; - Lib3dsIntw shading; - Lib3dsBool soften; - Lib3dsBool face_map; - Lib3dsBool two_sided; /*! Material visible from back */ - Lib3dsBool map_decal; - Lib3dsBool use_wire; - Lib3dsBool use_wire_abs; - Lib3dsFloat wire_size; - Lib3dsTextureMap texture1_map; - Lib3dsTextureMap texture1_mask; - Lib3dsTextureMap texture2_map; - Lib3dsTextureMap texture2_mask; - Lib3dsTextureMap opacity_map; - Lib3dsTextureMap opacity_mask; - Lib3dsTextureMap bump_map; - Lib3dsTextureMap bump_mask; - Lib3dsTextureMap specular_map; - Lib3dsTextureMap specular_mask; - Lib3dsTextureMap shininess_map; - Lib3dsTextureMap shininess_mask; - Lib3dsTextureMap self_illum_map; - Lib3dsTextureMap self_illum_mask; - Lib3dsTextureMap reflection_map; - Lib3dsTextureMap reflection_mask; - Lib3dsAutoReflMap autorefl_map; -}; - -extern LIB3DSAPI Lib3dsMaterial* lib3ds_material_new(); -extern LIB3DSAPI void lib3ds_material_free(Lib3dsMaterial *material); -extern LIB3DSAPI void lib3ds_material_dump(Lib3dsMaterial *material); -extern LIB3DSAPI Lib3dsBool lib3ds_material_read(Lib3dsMaterial *material, Lib3dsIo *io); -extern LIB3DSAPI Lib3dsBool lib3ds_material_write(Lib3dsMaterial *material, Lib3dsIo *io); - -#ifdef __cplusplus -} -#endif -#endif - - - diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/matrix.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/matrix.h deleted file mode 100644 index ce95726a4..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/matrix.h +++ /dev/null @@ -1,63 +0,0 @@ -/* -*- c -*- */ -#ifndef INCLUDED_LIB3DS_MATRIX_H -#define INCLUDED_LIB3DS_MATRIX_H -/* - * The 3D Studio File Format Library - * Copyright (C) 1996-2007 by Jan Eric Kyprianidis - * All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - * License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id: matrix.h,v 1.8 2007/06/18 06:11:32 jeh Exp $ - */ - -#ifndef INCLUDED_LIB3DS_TYPES_H -#include "types.h" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -extern LIB3DSAPI void lib3ds_matrix_zero(Lib3dsMatrix m); -extern LIB3DSAPI void lib3ds_matrix_identity(Lib3dsMatrix m); -extern LIB3DSAPI void lib3ds_matrix_copy(Lib3dsMatrix dest, Lib3dsMatrix src); -extern LIB3DSAPI void lib3ds_matrix_neg(Lib3dsMatrix m); -extern LIB3DSAPI void lib3ds_matrix_abs(Lib3dsMatrix m); -extern LIB3DSAPI void lib3ds_matrix_transpose(Lib3dsMatrix m); -extern LIB3DSAPI void _lib3ds_matrix_add(Lib3dsMatrix m, Lib3dsMatrix a, Lib3dsMatrix b); -extern LIB3DSAPI void _lib3ds_matrix_sub(Lib3dsMatrix m, Lib3dsMatrix a, Lib3dsMatrix b); -extern LIB3DSAPI void lib3ds_matrix_mult(Lib3dsMatrix m, Lib3dsMatrix n); -extern LIB3DSAPI void lib3ds_matrix_scalar(Lib3dsMatrix m, Lib3dsFloat k); -extern LIB3DSAPI Lib3dsFloat lib3ds_matrix_det(Lib3dsMatrix m); -extern LIB3DSAPI void lib3ds_matrix_adjoint(Lib3dsMatrix m); -extern LIB3DSAPI Lib3dsBool lib3ds_matrix_inv(Lib3dsMatrix m); -extern LIB3DSAPI void lib3ds_matrix_translate_xyz(Lib3dsMatrix m, Lib3dsFloat x, Lib3dsFloat y, Lib3dsFloat z); -extern LIB3DSAPI void lib3ds_matrix_translate(Lib3dsMatrix m, Lib3dsVector t); -extern LIB3DSAPI void lib3ds_matrix_scale_xyz(Lib3dsMatrix m, Lib3dsFloat x, Lib3dsFloat y, Lib3dsFloat z); -extern LIB3DSAPI void lib3ds_matrix_scale(Lib3dsMatrix m, Lib3dsVector s); -extern LIB3DSAPI void lib3ds_matrix_rotate_x(Lib3dsMatrix m, Lib3dsFloat phi); -extern LIB3DSAPI void lib3ds_matrix_rotate_y(Lib3dsMatrix m, Lib3dsFloat phi); -extern LIB3DSAPI void lib3ds_matrix_rotate_z(Lib3dsMatrix m, Lib3dsFloat phi); -extern LIB3DSAPI void lib3ds_matrix_rotate(Lib3dsMatrix m, Lib3dsQuat q); -extern LIB3DSAPI void lib3ds_matrix_rotate_axis(Lib3dsMatrix m, Lib3dsVector axis, Lib3dsFloat angle); -extern LIB3DSAPI void lib3ds_matrix_camera(Lib3dsMatrix matrix, Lib3dsVector pos, Lib3dsVector tgt, Lib3dsFloat roll); -extern LIB3DSAPI void lib3ds_matrix_dump(Lib3dsMatrix matrix); - -#ifdef __cplusplus -} -#endif -#endif - diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/mesh.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/mesh.h deleted file mode 100644 index dd75399cc..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/mesh.h +++ /dev/null @@ -1,157 +0,0 @@ -/* -*- c -*- */ -#ifndef INCLUDED_LIB3DS_MESH_H -#define INCLUDED_LIB3DS_MESH_H -/* - * The 3D Studio File Format Library - * Copyright (C) 1996-2007 by Jan Eric Kyprianidis - * All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - * License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id: mesh.h,v 1.20 2007/06/20 17:04:08 jeh Exp $ - */ - -#ifndef INCLUDED_LIB3DS_TYPES_H -#include "types.h" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * Triangular mesh point - * \ingroup mesh - */ -typedef struct Lib3dsPoint { - Lib3dsVector pos; -} Lib3dsPoint; - -/** - * Triangular mesh face - * \ingroup mesh - * \sa Lib3dsFaceFlag - */ -struct Lib3dsFace { - Lib3dsUserData user; /*! Arbitrary user data */ - char material[64]; /*! Material name */ - Lib3dsWord points[3]; /*! Indices into mesh points list */ - Lib3dsWord flags; /*! See Lib3dsFaceFlag, below */ - Lib3dsDword smoothing; /*! Bitmask; each bit identifies a group */ - Lib3dsVector normal; -}; - - -/** - * Vertex flags - * Meaning of _Lib3dsFace::flags. ABC are points of the current face - * (A: is 1st vertex, B is 2nd vertex, C is 3rd vertex) - */ -typedef enum { - LIB3DS_FACE_FLAG_VIS_AC = 0x1, /*!< Bit 0: Edge visibility AC */ - LIB3DS_FACE_FLAG_VIS_BC = 0x2, /*!< Bit 1: Edge visibility BC */ - LIB3DS_FACE_FLAG_VIS_AB = 0x4, /*!< Bit 2: Edge visibility AB */ - LIB3DS_FACE_FLAG_WRAP_U = 0x8, /*!< Bit 3: Face is at tex U wrap seam */ - LIB3DS_FACE_FLAG_WRAP_V = 0x10, /*!< Bit 4: Face is at tex V wrap seam */ - LIB3DS_FACE_FLAG_UNK7 = 0x80, /* Bit 5-8: Unused ? */ - LIB3DS_FACE_FLAG_UNK10 = 0x400, /* Bit 9-10: Random ? */ - /* Bit 11-12: Unused ? */ - LIB3DS_FACE_FLAG_SELECT_3 = (1<<13), /*!< Bit 13: Selection of the face in selection 3*/ - LIB3DS_FACE_FLAG_SELECT_2 = (1<<14), /*!< Bit 14: Selection of the face in selection 2*/ - LIB3DS_FACE_FLAG_SELECT_1 = (1<<15), /*!< Bit 15: Selection of the face in selection 1*/ -} Lib3dsFaceFlag; - -/** - * Triangular mesh box mapping settings - * \ingroup mesh - */ -struct Lib3dsBoxMap { - char front[64]; - char back[64]; - char left[64]; - char right[64]; - char top[64]; - char bottom[64]; -}; - -/** - * Texture projection type - * \ingroup tracks - */ -typedef enum { - LIB3DS_MAP_NONE =0xFFFF, - LIB3DS_MAP_PLANAR =0, - LIB3DS_MAP_CYLINDRICAL =1, - LIB3DS_MAP_SPHERICAL =2 -} Lib3dsMapType; - -/** - * Triangular mesh texture mapping data - * \ingroup mesh - */ -struct Lib3dsMapData { - Lib3dsWord maptype; - Lib3dsVector pos; - Lib3dsMatrix matrix; - Lib3dsFloat scale; - Lib3dsFloat tile[2]; - Lib3dsFloat planar_size[2]; - Lib3dsFloat cylinder_height; -}; - -/** - * Triangular mesh object - * \ingroup mesh - */ -struct Lib3dsMesh { - Lib3dsUserData user; /*< Arbitrary user data */ - Lib3dsMesh *next; - char name[64]; /*< Mesh name. Don't use more than 8 characters */ - Lib3dsDword object_flags; /*< @see Lib3dsObjectFlags */ - Lib3dsByte color; - Lib3dsMatrix matrix; /*< Transformation matrix for mesh data */ - Lib3dsDword points; /*< Number of points in point list */ - Lib3dsPoint *pointL; /*< Point list */ - Lib3dsDword flags; /*< Number of flags in per-point flags list */ - Lib3dsWord *flagL; /*< Per-point flags list */ - Lib3dsDword texels; /*< Number of U-V texture coordinates */ - Lib3dsTexel *texelL; /*< U-V texture coordinates */ - Lib3dsDword faces; /*< Number of faces in face list */ - Lib3dsFace *faceL; /*< Face list */ - Lib3dsBoxMap box_map; - Lib3dsMapData map_data; -}; - -extern LIB3DSAPI Lib3dsMesh* lib3ds_mesh_new(const char *name); -extern LIB3DSAPI void lib3ds_mesh_free(Lib3dsMesh *mesh); -extern LIB3DSAPI Lib3dsBool lib3ds_mesh_new_point_list(Lib3dsMesh *mesh, Lib3dsDword points); -extern LIB3DSAPI void lib3ds_mesh_free_point_list(Lib3dsMesh *mesh); -extern LIB3DSAPI Lib3dsBool lib3ds_mesh_new_flag_list(Lib3dsMesh *mesh, Lib3dsDword flags); -extern LIB3DSAPI void lib3ds_mesh_free_flag_list(Lib3dsMesh *mesh); -extern LIB3DSAPI Lib3dsBool lib3ds_mesh_new_texel_list(Lib3dsMesh *mesh, Lib3dsDword texels); -extern LIB3DSAPI void lib3ds_mesh_free_texel_list(Lib3dsMesh *mesh); -extern LIB3DSAPI Lib3dsBool lib3ds_mesh_new_face_list(Lib3dsMesh *mesh, Lib3dsDword flags); -extern LIB3DSAPI void lib3ds_mesh_free_face_list(Lib3dsMesh *mesh); -extern LIB3DSAPI void lib3ds_mesh_bounding_box(Lib3dsMesh *mesh, Lib3dsVector bmin, Lib3dsVector bmax); -extern LIB3DSAPI void lib3ds_mesh_calculate_normals(Lib3dsMesh *mesh, Lib3dsVector *normalL); -extern LIB3DSAPI void lib3ds_mesh_dump(Lib3dsMesh *mesh); -extern LIB3DSAPI Lib3dsBool lib3ds_mesh_read(Lib3dsMesh *mesh, Lib3dsIo *io); -extern LIB3DSAPI Lib3dsBool lib3ds_mesh_write(Lib3dsMesh *mesh, Lib3dsIo *io); - -#ifdef __cplusplus -} -#endif -#endif - diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/node.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/node.h deleted file mode 100644 index 41197b203..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/node.h +++ /dev/null @@ -1,188 +0,0 @@ -/* -*- c -*- */ -#ifndef INCLUDED_LIB3DS_NODE_H -#define INCLUDED_LIB3DS_NODE_H -/* - * The 3D Studio File Format Library - * Copyright (C) 1996-2007 by Jan Eric Kyprianidis - * All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - * License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id: node.h,v 1.12 2007/06/20 17:04:09 jeh Exp $ - */ - -#ifndef INCLUDED_LIB3DS_TRACKS_H -#include "tracks.h" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * Scene graph ambient color node data - * \ingroup node - */ -typedef struct Lib3dsAmbientData { - Lib3dsRgb col; - Lib3dsLin3Track col_track; -} Lib3dsAmbientData; - -/** - * Scene graph object instance node data - * \ingroup node - */ -typedef struct Lib3dsObjectData { - Lib3dsVector pivot; - char instance[64]; - Lib3dsVector bbox_min; - Lib3dsVector bbox_max; - Lib3dsVector pos; - Lib3dsLin3Track pos_track; - Lib3dsQuat rot; - Lib3dsQuatTrack rot_track; - Lib3dsVector scl; - Lib3dsLin3Track scl_track; - Lib3dsFloat morph_smooth; - char morph[64]; - Lib3dsMorphTrack morph_track; - Lib3dsBool hide; - Lib3dsBoolTrack hide_track; -} Lib3dsObjectData; - -/** - * Scene graph camera node data - * \ingroup node - */ -typedef struct Lib3dsCameraData { - Lib3dsVector pos; - Lib3dsLin3Track pos_track; - Lib3dsFloat fov; - Lib3dsLin1Track fov_track; - Lib3dsFloat roll; - Lib3dsLin1Track roll_track; -} Lib3dsCameraData; - -/** - * Scene graph camera target node data - * \ingroup node - */ -typedef struct Lib3dsTargetData { - Lib3dsVector pos; - Lib3dsLin3Track pos_track; -} Lib3dsTargetData; - -/** - * Scene graph light node data - * \ingroup node - */ -typedef struct Lib3dsLightData { - Lib3dsVector pos; - Lib3dsLin3Track pos_track; - Lib3dsRgb col; - Lib3dsLin3Track col_track; - Lib3dsFloat hotspot; - Lib3dsLin1Track hotspot_track; - Lib3dsFloat falloff; - Lib3dsLin1Track falloff_track; - Lib3dsFloat roll; - Lib3dsLin1Track roll_track; -} Lib3dsLightData; - -/** - * Scene graph spotlight target node data - * \ingroup node - */ -typedef struct Lib3dsSpotData { - Lib3dsVector pos; - Lib3dsLin3Track pos_track; -} Lib3dsSpotData; - -/** - * Scene graph node data union - * \ingroup node - */ -typedef union Lib3dsNodeData { - Lib3dsAmbientData ambient; - Lib3dsObjectData object; - Lib3dsCameraData camera; - Lib3dsTargetData target; - Lib3dsLightData light; - Lib3dsSpotData spot; -} Lib3dsNodeData; - -/*! - * \ingroup node - */ -#define LIB3DS_NO_PARENT 65535 - -/** - * Scene graph node - * \ingroup node - */ -struct Lib3dsNode { - Lib3dsUserData user; - Lib3dsNode *next; - Lib3dsNode *childs; - Lib3dsNode *parent; - Lib3dsNodeTypes type; - Lib3dsWord node_id; - char name[64]; - Lib3dsWord flags1; - Lib3dsWord flags2; - Lib3dsWord parent_id; - Lib3dsMatrix matrix; - Lib3dsNodeData data; -}; - -/** - * Node flags #1 - * \ingroup node - */ -typedef enum { - LIB3DS_HIDDEN = 0x800 -} Lib3dsNodeFlags1; - -/** - * Node flags #2 - * \ingroup node - */ -typedef enum { - LIB3DS_SHOW_PATH = 0x1, - LIB3DS_SMOOTHING = 0x2, - LIB3DS_MOTION_BLUR = 0x10, - LIB3DS_MORPH_MATERIALS = 0x40 -} Lib3dsNodeFlags2; - -extern LIB3DSAPI Lib3dsNode* lib3ds_node_new_ambient(); -extern LIB3DSAPI Lib3dsNode* lib3ds_node_new_object(); -extern LIB3DSAPI Lib3dsNode* lib3ds_node_new_camera(); -extern LIB3DSAPI Lib3dsNode* lib3ds_node_new_target(); -extern LIB3DSAPI Lib3dsNode* lib3ds_node_new_light(); -extern LIB3DSAPI Lib3dsNode* lib3ds_node_new_spot(); -extern LIB3DSAPI void lib3ds_node_free(Lib3dsNode *node); -extern LIB3DSAPI void lib3ds_node_eval(Lib3dsNode *node, Lib3dsFloat t); -extern LIB3DSAPI Lib3dsNode* lib3ds_node_by_name(Lib3dsNode *node, const char* name, - Lib3dsNodeTypes type); -extern LIB3DSAPI Lib3dsNode* lib3ds_node_by_id(Lib3dsNode *node, Lib3dsWord node_id); -extern LIB3DSAPI void lib3ds_node_dump(Lib3dsNode *node, Lib3dsIntd level); -extern LIB3DSAPI Lib3dsBool lib3ds_node_read(Lib3dsNode *node, Lib3dsFile *file, Lib3dsIo *io); -extern LIB3DSAPI Lib3dsBool lib3ds_node_write(Lib3dsNode *node, Lib3dsFile *file, Lib3dsIo *io); - -#ifdef __cplusplus -} -#endif -#endif - diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/quat.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/quat.h deleted file mode 100644 index 8ae0c7420..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/quat.h +++ /dev/null @@ -1,61 +0,0 @@ -/* -*- c -*- */ -#ifndef INCLUDED_LIB3DS_QUAT_H -#define INCLUDED_LIB3DS_QUAT_H -/* - * The 3D Studio File Format Library - * Copyright (C) 1996-2007 by Jan Eric Kyprianidis - * All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - * License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id: quat.h,v 1.7 2007/06/14 09:59:10 jeh Exp $ - */ - -#ifndef INCLUDED_LIB3DS_TYPES_H -#include "types.h" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -extern LIB3DSAPI void lib3ds_quat_zero(Lib3dsQuat c); -extern LIB3DSAPI void lib3ds_quat_identity(Lib3dsQuat c); -extern LIB3DSAPI void lib3ds_quat_copy(Lib3dsQuat dest, Lib3dsQuat src); -extern LIB3DSAPI void lib3ds_quat_axis_angle(Lib3dsQuat c, Lib3dsVector axis, Lib3dsFloat angle); -extern LIB3DSAPI void lib3ds_quat_neg(Lib3dsQuat c); -extern LIB3DSAPI void lib3ds_quat_abs(Lib3dsQuat c); -extern LIB3DSAPI void lib3ds_quat_cnj(Lib3dsQuat c); -extern LIB3DSAPI void lib3ds_quat_mul(Lib3dsQuat c, Lib3dsQuat a, Lib3dsQuat b); -extern LIB3DSAPI void lib3ds_quat_scalar(Lib3dsQuat c, Lib3dsFloat k); -extern LIB3DSAPI void lib3ds_quat_normalize(Lib3dsQuat c); -extern LIB3DSAPI void lib3ds_quat_inv(Lib3dsQuat c); -extern LIB3DSAPI Lib3dsFloat lib3ds_quat_dot(Lib3dsQuat a, Lib3dsQuat b); -extern LIB3DSAPI Lib3dsFloat lib3ds_quat_squared(Lib3dsQuat c); -extern LIB3DSAPI Lib3dsFloat lib3ds_quat_length(Lib3dsQuat c); -extern LIB3DSAPI void lib3ds_quat_ln(Lib3dsQuat c); -extern LIB3DSAPI void lib3ds_quat_ln_dif(Lib3dsQuat c, Lib3dsQuat a, Lib3dsQuat b); -extern LIB3DSAPI void lib3ds_quat_exp(Lib3dsQuat c); -extern LIB3DSAPI void lib3ds_quat_slerp(Lib3dsQuat c, Lib3dsQuat a, Lib3dsQuat b, Lib3dsFloat t); -extern LIB3DSAPI void lib3ds_quat_squad(Lib3dsQuat c, Lib3dsQuat a, Lib3dsQuat p, Lib3dsQuat q, - Lib3dsQuat b, Lib3dsFloat t); -extern LIB3DSAPI void lib3ds_quat_tangent(Lib3dsQuat c, Lib3dsQuat p, Lib3dsQuat q, Lib3dsQuat n); -extern LIB3DSAPI void lib3ds_quat_dump(Lib3dsQuat q); - -#ifdef __cplusplus -} -#endif -#endif - diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/shadow.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/shadow.h deleted file mode 100644 index 4f28c8d58..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/shadow.h +++ /dev/null @@ -1,59 +0,0 @@ -/* -*- c -*- */ -#ifndef INCLUDED_LIB3DS_SHADOW_H -#define INCLUDED_LIB3DS_SHADOW_H -/* - * The 3D Studio File Format Library - * Copyright (C) 1996-2007 by Jan Eric Kyprianidis - * All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - * License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id: shadow.h,v 1.11 2007/06/20 17:04:09 jeh Exp $ - */ - -#ifndef INCLUDED_LIB3DS_TYPES_H -#include "types.h" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * Shadow map settings - * \ingroup shadow - */ -struct Lib3dsShadow { - Lib3dsIntw map_size; - Lib3dsFloat lo_bias; - Lib3dsFloat hi_bias; - Lib3dsIntw samples; - Lib3dsIntd range; - Lib3dsFloat filter; - Lib3dsFloat ray_bias; -}; - -extern LIB3DSAPI Lib3dsBool lib3ds_shadow_read(Lib3dsShadow *shadow, Lib3dsIo *io); -extern LIB3DSAPI Lib3dsBool lib3ds_shadow_write(Lib3dsShadow *shadow, Lib3dsIo *io); - -#ifdef __cplusplus -} -#endif -#endif - - - - - diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/tcb.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/tcb.h deleted file mode 100644 index d125bc4ad..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/tcb.h +++ /dev/null @@ -1,62 +0,0 @@ -/* -*- c -*- */ -#ifndef INCLUDED_LIB3DS_TCB_H -#define INCLUDED_LIB3DS_TCB_H -/* - * The 3D Studio File Format Library - * Copyright (C) 1996-2007 by Jan Eric Kyprianidis - * All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - * License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id: tcb.h,v 1.11 2007/06/20 17:04:09 jeh Exp $ - */ - -#ifndef INCLUDED_LIB3DS_TYPES_H -#include "types.h" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -typedef enum Lib3dsTcbFlags{ - LIB3DS_USE_TENSION =0x0001, - LIB3DS_USE_CONTINUITY =0x0002, - LIB3DS_USE_BIAS =0x0004, - LIB3DS_USE_EASE_TO =0x0008, - LIB3DS_USE_EASE_FROM =0x0010 -} Lib3dsTcbFlags; - -typedef struct Lib3dsTcb { - Lib3dsIntd frame; - Lib3dsWord flags; - Lib3dsFloat tens; - Lib3dsFloat cont; - Lib3dsFloat bias; - Lib3dsFloat ease_to; - Lib3dsFloat ease_from; -} Lib3dsTcb; - -extern LIB3DSAPI void lib3ds_tcb(Lib3dsTcb *p, Lib3dsTcb *pc, Lib3dsTcb *c, - Lib3dsTcb *nc, Lib3dsTcb *n, Lib3dsFloat *ksm, Lib3dsFloat *ksp, - Lib3dsFloat *kdm, Lib3dsFloat *kdp); -extern LIB3DSAPI Lib3dsBool lib3ds_tcb_read(Lib3dsTcb *tcb, Lib3dsIo *io); -extern LIB3DSAPI Lib3dsBool lib3ds_tcb_write(Lib3dsTcb *tcb, Lib3dsIo *io); - -#ifdef __cplusplus -} -#endif -#endif - diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/tracks.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/tracks.h deleted file mode 100644 index a5be8f5cf..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/tracks.h +++ /dev/null @@ -1,209 +0,0 @@ -/* -*- c -*- */ -#ifndef INCLUDED_LIB3DS_TRACKS_H -#define INCLUDED_LIB3DS_TRACKS_H -/* - * The 3D Studio File Format Library - * Copyright (C) 1996-2007 by Jan Eric Kyprianidis - * All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - * License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id: tracks.h,v 1.11 2007/06/20 17:04:09 jeh Exp $ - */ - -#ifndef INCLUDED_LIB3DS_TCB_H -#include "tcb.h" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * Track flags - * \ingroup tracks - */ -typedef enum { - LIB3DS_REPEAT =0x0001, - LIB3DS_SMOOTH =0x0002, - LIB3DS_LOCK_X =0x0008, - LIB3DS_LOCK_Y =0x0010, - LIB3DS_LOCK_Z =0x0020, - LIB3DS_UNLINK_X =0x0100, - LIB3DS_UNLINK_Y =0x0200, - LIB3DS_UNLINK_Z =0x0400 -} Lib3dsTrackFlags; - -/** - * Boolean track key - * \ingroup tracks - */ -struct Lib3dsBoolKey { - Lib3dsTcb tcb; - Lib3dsBoolKey *next; -}; - -/** - * Boolean track - * \ingroup tracks - */ -struct Lib3dsBoolTrack { - Lib3dsDword flags; - Lib3dsBoolKey *keyL; -}; - -/** - * Floating-point track key - * \ingroup tracks - */ -struct Lib3dsLin1Key { - Lib3dsTcb tcb; - Lib3dsLin1Key *next; - Lib3dsFloat value; - Lib3dsFloat dd; - Lib3dsFloat ds; -}; - -/** - * Floating-point track - * \ingroup tracks - */ -struct Lib3dsLin1Track { - Lib3dsDword flags; - Lib3dsLin1Key *keyL; -}; - -/** - * Vector track key - * \ingroup tracks - */ -struct Lib3dsLin3Key { - Lib3dsTcb tcb; - Lib3dsLin3Key *next; - Lib3dsVector value; - Lib3dsVector dd; - Lib3dsVector ds; -}; - -/** - * Vector track - * \ingroup tracks - */ -struct Lib3dsLin3Track { - Lib3dsDword flags; - Lib3dsLin3Key *keyL; -}; - -/** - * Rotation track key - * \ingroup tracks - */ -struct Lib3dsQuatKey { - Lib3dsTcb tcb; - Lib3dsQuatKey *next; - Lib3dsVector axis; - Lib3dsFloat angle; - Lib3dsQuat q; - Lib3dsQuat dd; - Lib3dsQuat ds; -}; - -/** - * Rotation track - * \ingroup tracks - */ -struct Lib3dsQuatTrack { - Lib3dsDword flags; - Lib3dsQuatKey *keyL; -}; - -/** - * Morph track key - * \ingroup tracks - */ -struct Lib3dsMorphKey { - Lib3dsTcb tcb; - Lib3dsMorphKey *next; - char name[64]; -}; - -/** - * Morph track - * \ingroup tracks - */ -struct Lib3dsMorphTrack { - Lib3dsDword flags; - Lib3dsMorphKey *keyL; -}; - -extern LIB3DSAPI Lib3dsBoolKey* lib3ds_bool_key_new(); -extern LIB3DSAPI void lib3ds_bool_key_free(Lib3dsBoolKey* key); -extern LIB3DSAPI void lib3ds_bool_track_free_keys(Lib3dsBoolTrack *track); -extern LIB3DSAPI void lib3ds_bool_track_insert(Lib3dsBoolTrack *track, Lib3dsBoolKey* key); -extern LIB3DSAPI void lib3ds_bool_track_remove(Lib3dsBoolTrack *track, Lib3dsIntd frame); -extern LIB3DSAPI void lib3ds_bool_track_eval(Lib3dsBoolTrack *track, Lib3dsBool *p, Lib3dsFloat t); -extern LIB3DSAPI Lib3dsBool lib3ds_bool_track_read(Lib3dsBoolTrack *track, Lib3dsIo *io); -extern LIB3DSAPI Lib3dsBool lib3ds_bool_track_write(Lib3dsBoolTrack *track, Lib3dsIo *io); - -extern LIB3DSAPI Lib3dsLin1Key* lib3ds_lin1_key_new(); -extern LIB3DSAPI void lib3ds_lin1_key_free(Lib3dsLin1Key* key); -extern LIB3DSAPI void lib3ds_lin1_track_free_keys(Lib3dsLin1Track *track); -extern LIB3DSAPI void lib3ds_lin1_key_setup(Lib3dsLin1Key *p, Lib3dsLin1Key *cp, Lib3dsLin1Key *c, - Lib3dsLin1Key *cn, Lib3dsLin1Key *n); -extern LIB3DSAPI void lib3ds_lin1_track_setup(Lib3dsLin1Track *track); -extern LIB3DSAPI void lib3ds_lin1_track_insert(Lib3dsLin1Track *track, Lib3dsLin1Key *key); -extern LIB3DSAPI void lib3ds_lin1_track_remove(Lib3dsLin1Track *track, Lib3dsIntd frame); -extern LIB3DSAPI void lib3ds_lin1_track_eval(Lib3dsLin1Track *track, Lib3dsFloat *p, Lib3dsFloat t); -extern LIB3DSAPI Lib3dsBool lib3ds_lin1_track_read(Lib3dsLin1Track *track, Lib3dsIo *io); -extern LIB3DSAPI Lib3dsBool lib3ds_lin1_track_write(Lib3dsLin1Track *track, Lib3dsIo *io); - -extern LIB3DSAPI Lib3dsLin3Key* lib3ds_lin3_key_new(); -extern LIB3DSAPI void lib3ds_lin3_key_free(Lib3dsLin3Key* key); -extern LIB3DSAPI void lib3ds_lin3_track_free_keys(Lib3dsLin3Track *track); -extern LIB3DSAPI void lib3ds_lin3_key_setup(Lib3dsLin3Key *p, Lib3dsLin3Key *cp, Lib3dsLin3Key *c, - Lib3dsLin3Key *cn, Lib3dsLin3Key *n); -extern LIB3DSAPI void lib3ds_lin3_track_setup(Lib3dsLin3Track *track); -extern LIB3DSAPI void lib3ds_lin3_track_insert(Lib3dsLin3Track *track, Lib3dsLin3Key *key); -extern LIB3DSAPI void lib3ds_lin3_track_remove(Lib3dsLin3Track *track, Lib3dsIntd frame); -extern LIB3DSAPI void lib3ds_lin3_track_eval(Lib3dsLin3Track *track, Lib3dsVector p, Lib3dsFloat t); -extern LIB3DSAPI Lib3dsBool lib3ds_lin3_track_read(Lib3dsLin3Track *track, Lib3dsIo *io); -extern LIB3DSAPI Lib3dsBool lib3ds_lin3_track_write(Lib3dsLin3Track *track, Lib3dsIo *io); - -extern LIB3DSAPI Lib3dsQuatKey* lib3ds_quat_key_new(); -extern LIB3DSAPI void lib3ds_quat_key_free(Lib3dsQuatKey* key); -extern LIB3DSAPI void lib3ds_quat_track_free_keys(Lib3dsQuatTrack *track); -extern LIB3DSAPI void lib3ds_quat_key_setup(Lib3dsQuatKey *p, Lib3dsQuatKey *cp, Lib3dsQuatKey *c, - Lib3dsQuatKey *cn, Lib3dsQuatKey *n); -extern LIB3DSAPI void lib3ds_quat_track_setup(Lib3dsQuatTrack *track); -extern LIB3DSAPI void lib3ds_quat_track_insert(Lib3dsQuatTrack *track, Lib3dsQuatKey *key); -extern LIB3DSAPI void lib3ds_quat_track_remove(Lib3dsQuatTrack *track, Lib3dsIntd frame); -extern LIB3DSAPI void lib3ds_quat_track_eval(Lib3dsQuatTrack *track, Lib3dsQuat p, Lib3dsFloat t); -extern LIB3DSAPI Lib3dsBool lib3ds_quat_track_read(Lib3dsQuatTrack *track, Lib3dsIo *io); -extern LIB3DSAPI Lib3dsBool lib3ds_quat_track_write(Lib3dsQuatTrack *track, Lib3dsIo *io); - -extern LIB3DSAPI Lib3dsMorphKey* lib3ds_morph_key_new(); -extern LIB3DSAPI void lib3ds_morph_key_free(Lib3dsMorphKey* key); -extern LIB3DSAPI void lib3ds_morph_track_free_keys(Lib3dsMorphTrack *track); -extern LIB3DSAPI void lib3ds_morph_track_insert(Lib3dsMorphTrack *track, Lib3dsMorphKey *key); -extern LIB3DSAPI void lib3ds_morph_track_remove(Lib3dsMorphTrack *track, Lib3dsIntd frame); -extern LIB3DSAPI void lib3ds_morph_track_eval(Lib3dsMorphTrack *track, char *p, Lib3dsFloat t); -extern LIB3DSAPI Lib3dsBool lib3ds_morph_track_read(Lib3dsMorphTrack *track, Lib3dsIo *io); -extern LIB3DSAPI Lib3dsBool lib3ds_morph_track_write(Lib3dsMorphTrack *track, Lib3dsIo *io); - -#ifdef __cplusplus -} -#endif -#endif - diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/types.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/types.h deleted file mode 100644 index 1aedd337f..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/types.h +++ /dev/null @@ -1,155 +0,0 @@ -/* -*- c -*- */ -#ifndef INCLUDED_LIB3DS_TYPES_H -#define INCLUDED_LIB3DS_TYPES_H -/* - * The 3D Studio File Format Library - * Copyright (C) 1996-2007 by Jan Eric Kyprianidis - * All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - * License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id: types.h,v 1.25 2007/06/21 08:36:41 jeh Exp $ - */ -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef _MSC_VER -#ifdef LIB3DS_EXPORTS -#define LIB3DSAPI __declspec(dllexport) -#else -#define LIB3DSAPI __declspec(dllimport) -#endif -#else -#define LIB3DSAPI -#endif - -#define LIB3DS_TRUE 1 -#define LIB3DS_FALSE 0 - -#ifdef _MSC_VER -typedef __int32 Lib3dsBool; -typedef unsigned __int8 Lib3dsByte; -typedef unsigned __int16 Lib3dsWord; -typedef unsigned __int32 Lib3dsDword; -typedef signed __int8 Lib3dsIntb; -typedef signed __int16 Lib3dsIntw; -typedef signed __int16 Lib3dsIntd; -#else -#include -typedef int32_t Lib3dsBool; -typedef uint8_t Lib3dsByte; -typedef uint16_t Lib3dsWord; -typedef uint32_t Lib3dsDword; -typedef int8_t Lib3dsIntb; -typedef int16_t Lib3dsIntw; -typedef int32_t Lib3dsIntd; -#endif - -typedef float Lib3dsFloat; -typedef double Lib3dsDouble; - -typedef float Lib3dsVector[3]; -typedef float Lib3dsTexel[2]; -typedef float Lib3dsQuat[4]; -typedef float Lib3dsMatrix[4][4]; -typedef float Lib3dsRgb[3]; -typedef float Lib3dsRgba[4]; - -#define LIB3DS_EPSILON (1e-8) -#define LIB3DS_PI 3.14159265358979323846 -#define LIB3DS_TWOPI (2.0*LIB3DS_PI) -#define LIB3DS_HALFPI (LIB3DS_PI/2.0) -#define LIB3DS_RAD_TO_DEG(x) ((180.0/LIB3DS_PI)*(x)) -#define LIB3DS_DEG_TO_RAD(x) ((LIB3DS_PI/180.0)*(x)) - -#include - -#ifdef _DEBUG - #ifndef ASSERT - #include - #define ASSERT(__expr) assert(__expr) - #endif - #define LIB3DS_ERROR_LOG \ - {printf("\t***LIB3DS_ERROR_LOG*** %s : %d\n", __FILE__, __LINE__);} -#else - #ifndef ASSERT - #define ASSERT(__expr) - #endif - #define LIB3DS_ERROR_LOG -#endif - -typedef struct Lib3dsIo Lib3dsIo; -typedef struct Lib3dsFile Lib3dsFile; -typedef struct Lib3dsBackground Lib3dsBackground; -typedef struct Lib3dsAtmosphere Lib3dsAtmosphere; -typedef struct Lib3dsShadow Lib3dsShadow; -typedef struct Lib3dsViewport Lib3dsViewport; -typedef struct Lib3dsMaterial Lib3dsMaterial; -typedef struct Lib3dsFace Lib3dsFace; -typedef struct Lib3dsBoxMap Lib3dsBoxMap; -typedef struct Lib3dsMapData Lib3dsMapData; -typedef struct Lib3dsMesh Lib3dsMesh; -typedef struct Lib3dsCamera Lib3dsCamera; -typedef struct Lib3dsLight Lib3dsLight; -typedef struct Lib3dsBoolKey Lib3dsBoolKey; -typedef struct Lib3dsBoolTrack Lib3dsBoolTrack; -typedef struct Lib3dsLin1Key Lib3dsLin1Key; -typedef struct Lib3dsLin1Track Lib3dsLin1Track; -typedef struct Lib3dsLin3Key Lib3dsLin3Key; -typedef struct Lib3dsLin3Track Lib3dsLin3Track; -typedef struct Lib3dsQuatKey Lib3dsQuatKey; -typedef struct Lib3dsQuatTrack Lib3dsQuatTrack; -typedef struct Lib3dsMorphKey Lib3dsMorphKey; -typedef struct Lib3dsMorphTrack Lib3dsMorphTrack; - -typedef enum Lib3dsNodeTypes { - LIB3DS_UNKNOWN_NODE =0, - LIB3DS_AMBIENT_NODE =1, - LIB3DS_OBJECT_NODE =2, - LIB3DS_CAMERA_NODE =3, - LIB3DS_TARGET_NODE =4, - LIB3DS_LIGHT_NODE =5, - LIB3DS_SPOT_NODE =6 -} Lib3dsNodeTypes; - -typedef struct Lib3dsNode Lib3dsNode; - -typedef enum Lib3dsObjectFlags { - LIB3DS_OBJECT_HIDDEN =0x01, - LIB3DS_OBJECT_VIS_LOFTER =0x02, - LIB3DS_OBJECT_DOESNT_CAST =0x04, - LIB3DS_OBJECT_MATTE =0x08, - LIB3DS_OBJECT_DONT_RCVSHADOW =0x10, - LIB3DS_OBJECT_FAST =0x20, - LIB3DS_OBJECT_FROZEN =0x40 -} Lib3dsObjectFlags; - -typedef union Lib3dsUserData { - void *p; - Lib3dsIntd i; - Lib3dsDword d; - Lib3dsFloat f; - Lib3dsMaterial *material; - Lib3dsMesh *mesh; - Lib3dsCamera *camera; - Lib3dsLight *light; - Lib3dsNode *node; -} Lib3dsUserData; - -#ifdef __cplusplus -} -#endif -#endif diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/vector.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/vector.h deleted file mode 100644 index 87347e2c8..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/vector.h +++ /dev/null @@ -1,58 +0,0 @@ -/* -*- c -*- */ -#ifndef INCLUDED_LIB3DS_VECTOR_H -#define INCLUDED_LIB3DS_VECTOR_H -/* - * The 3D Studio File Format Library - * Copyright (C) 1996-2007 by Jan Eric Kyprianidis - * All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - * License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id: vector.h,v 1.7 2007/06/14 09:59:10 jeh Exp $ - */ - -#ifndef INCLUDED_LIB3DS_TYPES_H -#include "types.h" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -extern LIB3DSAPI void lib3ds_vector_zero(Lib3dsVector c); -extern LIB3DSAPI void lib3ds_vector_copy(Lib3dsVector dest, Lib3dsVector src); -extern LIB3DSAPI void lib3ds_vector_neg(Lib3dsVector c); -extern LIB3DSAPI void lib3ds_vector_add(Lib3dsVector c, Lib3dsVector a, Lib3dsVector b); -extern LIB3DSAPI void lib3ds_vector_sub(Lib3dsVector c, Lib3dsVector a, Lib3dsVector b); -extern LIB3DSAPI void lib3ds_vector_scalar(Lib3dsVector c, Lib3dsFloat k); -extern LIB3DSAPI void lib3ds_vector_cross(Lib3dsVector c, Lib3dsVector a, Lib3dsVector b); -extern LIB3DSAPI Lib3dsFloat lib3ds_vector_dot(Lib3dsVector a, Lib3dsVector b); -extern LIB3DSAPI Lib3dsFloat lib3ds_vector_squared(Lib3dsVector c); -extern LIB3DSAPI Lib3dsFloat lib3ds_vector_length(Lib3dsVector c); -extern LIB3DSAPI void lib3ds_vector_normalize(Lib3dsVector c); -extern LIB3DSAPI void lib3ds_vector_normal(Lib3dsVector n, Lib3dsVector a, - Lib3dsVector b, Lib3dsVector c); -extern LIB3DSAPI void lib3ds_vector_transform(Lib3dsVector c, Lib3dsMatrix m, Lib3dsVector a); -extern LIB3DSAPI void lib3ds_vector_cubic(Lib3dsVector c, Lib3dsVector a, Lib3dsVector p, - Lib3dsVector q, Lib3dsVector b, Lib3dsFloat t); -extern LIB3DSAPI void lib3ds_vector_min(Lib3dsVector c, Lib3dsVector a); -extern LIB3DSAPI void lib3ds_vector_max(Lib3dsVector c, Lib3dsVector a); -extern LIB3DSAPI void lib3ds_vector_dump(Lib3dsVector c); - -#ifdef __cplusplus -} -#endif -#endif - diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/viewport.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/viewport.h deleted file mode 100644 index f1de433a0..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/lib3ds/viewport.h +++ /dev/null @@ -1,137 +0,0 @@ -/* -*- c -*- */ -#ifndef INCLUDED_LIB3DS_VIEWPORT_H -#define INCLUDED_LIB3DS_VIEWPORT_H -/* - * The 3D Studio File Format Library - * Copyright (C) 1996-2007 by Jan Eric Kyprianidis - * All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public - * License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id: viewport.h,v 1.8 2007/06/20 17:04:09 jeh Exp $ - */ - -#ifndef INCLUDED_LIB3DS_TYPES_H -#include "types.h" -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * Layout view types - * \ingroup viewport - */ -typedef enum Lib3dsViewType { - LIB3DS_VIEW_TYPE_NOT_USED =0, - LIB3DS_VIEW_TYPE_TOP =1, - LIB3DS_VIEW_TYPE_BOTTOM =2, - LIB3DS_VIEW_TYPE_LEFT =3, - LIB3DS_VIEW_TYPE_RIGHT =4, - LIB3DS_VIEW_TYPE_FRONT =5, - LIB3DS_VIEW_TYPE_BACK =6, - LIB3DS_VIEW_TYPE_USER =7, - LIB3DS_VIEW_TYPE_SPOTLIGHT =18, - LIB3DS_VIEW_TYPE_CAMERA =65535 -} Lib3dsViewType; - -/** - * Layout view settings - * \ingroup viewport - */ -typedef struct Lib3dsView { - Lib3dsWord type; - Lib3dsWord axis_lock; - Lib3dsIntw position[2]; - Lib3dsIntw size[2]; - Lib3dsFloat zoom; - Lib3dsVector center; - Lib3dsFloat horiz_angle; - Lib3dsFloat vert_angle; - char camera[11]; -} Lib3dsView; - -/** - * Layout styles - * \ingroup viewport - */ -typedef enum Lib3dsLayoutStyle { - LIB3DS_LAYOUT_SINGLE =0, - LIB3DS_LAYOUT_TWO_PANE_VERT_SPLIT =1, - LIB3DS_LAYOUT_TWO_PANE_HORIZ_SPLIT =2, - LIB3DS_LAYOUT_FOUR_PANE =3, - LIB3DS_LAYOUT_THREE_PANE_LEFT_SPLIT =4, - LIB3DS_LAYOUT_THREE_PANE_BOTTOM_SPLIT =5, - LIB3DS_LAYOUT_THREE_PANE_RIGHT_SPLIT =6, - LIB3DS_LAYOUT_THREE_PANE_TOP_SPLIT =7, - LIB3DS_LAYOUT_THREE_PANE_VERT_SPLIT =8, - LIB3DS_LAYOUT_THREE_PANE_HORIZ_SPLIT =9, - LIB3DS_LAYOUT_FOUR_PANE_LEFT_SPLIT =10, - LIB3DS_LAYOUT_FOUR_PANE_RIGHT_SPLIT =11 -} Lib3dsLayoutStyle; - -/** - * Viewport layout settings - * \ingroup viewport - */ -typedef struct Lib3dsLayout { - Lib3dsWord style; - Lib3dsIntw active; - Lib3dsIntw swap; - Lib3dsIntw swap_prior; - Lib3dsIntw swap_view; - Lib3dsWord position[2]; - Lib3dsWord size[2]; - Lib3dsDword views; - Lib3dsView *viewL; -} Lib3dsLayout; - -/** - * Default view settings - * \ingroup viewport - */ -typedef struct Lib3dsDefaultView { - Lib3dsWord type; - Lib3dsVector position; - Lib3dsFloat width; - Lib3dsFloat horiz_angle; - Lib3dsFloat vert_angle; - Lib3dsFloat roll_angle; - char camera[64]; -} Lib3dsDefaultView; - -/** - * Viewport and default view settings - * \ingroup viewport - */ -struct Lib3dsViewport { - Lib3dsLayout layout; - Lib3dsDefaultView default_view; -}; - -extern LIB3DSAPI Lib3dsBool lib3ds_viewport_read(Lib3dsViewport *viewport, Lib3dsIo *io); -extern LIB3DSAPI void lib3ds_viewport_set_views(Lib3dsViewport *viewport, Lib3dsDword views); -extern LIB3DSAPI Lib3dsBool lib3ds_viewport_write(Lib3dsViewport *viewport, Lib3dsIo *io); -extern LIB3DSAPI void lib3ds_viewport_dump(Lib3dsViewport *viewport); - -#ifdef __cplusplus -} -#endif -#endif - - - - diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/crypt.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/crypt.h deleted file mode 100644 index b6ff9e319..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/crypt.h +++ /dev/null @@ -1,133 +0,0 @@ -/* crypt.h -- base code for crypt/uncrypt ZIPfile - - - Version 1.01e, February 12th, 2005 - - Copyright (C) 1998-2005 Gilles Vollant - - This code is a modified version of crypting code in Infozip distribution - - The encryption/decryption parts of this source code (as opposed to the - non-echoing password parts) were originally written in Europe. The - whole source package can be freely distributed, including from the USA. - (Prior to January 2000, re-export from the US was a violation of US law.) - - This encryption code is a direct transcription of the algorithm from - Roger Schlafly, described by Phil Katz in the file appnote.txt. This - file (appnote.txt) is distributed with the PKZIP program (even in the - version without encryption capabilities). - - If you don't need crypting in your application, just define symbols - NOCRYPT and NOUNCRYPT. - - This code support the "Traditional PKWARE Encryption". - - The new AES encryption added on Zip format by Winzip (see the page - http://www.winzip.com/aes_info.htm ) and PKWare PKZip 5.x Strong - Encryption is not supported. -*/ - -#define CRC32(c, b) ((*(pcrc_32_tab+(((int)(c) ^ (b)) & 0xff))) ^ ((c) >> 8)) - -/*********************************************************************** - * Return the next byte in the pseudo-random sequence - */ -static int decrypt_byte(unsigned long* pkeys, const unsigned long* pcrc_32_tab) -{ - //(void) pcrc_32_tab; /* avoid "unused parameter" warning */ - unsigned temp; /* POTENTIAL BUG: temp*(temp^1) may overflow in an - * unpredictable manner on 16-bit systems; not a problem - * with any known compiler so far, though */ - - temp = ((unsigned)(*(pkeys+2)) & 0xffff) | 2; - return (int)(((temp * (temp ^ 1)) >> 8) & 0xff); -} - -/*********************************************************************** - * Update the encryption keys with the next byte of plain text - */ -static int update_keys(unsigned long* pkeys,const unsigned long* pcrc_32_tab,int c) -{ - (*(pkeys+0)) = CRC32((*(pkeys+0)), c); - (*(pkeys+1)) += (*(pkeys+0)) & 0xff; - (*(pkeys+1)) = (*(pkeys+1)) * 134775813L + 1; - { - register int keyshift = (int)((*(pkeys+1)) >> 24); - (*(pkeys+2)) = CRC32((*(pkeys+2)), keyshift); - } - return c; -} - - -/*********************************************************************** - * Initialize the encryption keys and the random header according to - * the given password. - */ -static void init_keys(const char* passwd,unsigned long* pkeys,const unsigned long* pcrc_32_tab) -{ - *(pkeys+0) = 305419896L; - *(pkeys+1) = 591751049L; - *(pkeys+2) = 878082192L; - while (*passwd != '\0') { - update_keys(pkeys,pcrc_32_tab,(int)*passwd); - passwd++; - } -} - -#define zdecode(pkeys,pcrc_32_tab,c) \ - (update_keys(pkeys,pcrc_32_tab,c ^= decrypt_byte(pkeys,pcrc_32_tab))) - -#define zencode(pkeys,pcrc_32_tab,c,t) \ - (t=decrypt_byte(pkeys,pcrc_32_tab), update_keys(pkeys,pcrc_32_tab,c), t^(c)) - -#ifdef INCLUDECRYPTINGCODE_IFCRYPTALLOWED - -#define RAND_HEAD_LEN 12 - /* "last resort" source for second part of crypt seed pattern */ -# ifndef ZCR_SEED2 -# define ZCR_SEED2 3141592654UL /* use PI as default pattern */ -# endif - -static int crypthead(passwd, buf, bufSize, pkeys, pcrc_32_tab, crcForCrypting) - const char *passwd; /* password string */ - unsigned char *buf; /* where to write header */ - int bufSize; - unsigned long* pkeys; - const unsigned long* pcrc_32_tab; - unsigned long crcForCrypting; -{ - int n; /* index in random header */ - int t; /* temporary */ - int c; /* random byte */ - unsigned char header[RAND_HEAD_LEN-2]; /* random header */ - static unsigned calls = 0; /* ensure different random header each time */ - - if (bufSize> 7) & 0xff; - header[n] = (unsigned char)zencode(pkeys, pcrc_32_tab, c, t); - } - /* Encrypt random header (last two bytes is high word of crc) */ - init_keys(passwd, pkeys, pcrc_32_tab); - for (n = 0; n < RAND_HEAD_LEN-2; n++) - { - buf[n] = (unsigned char)zencode(pkeys, pcrc_32_tab, header[n], t); - } - buf[n++] = zencode(pkeys, pcrc_32_tab, (int)(crcForCrypting >> 16) & 0xff, t); - buf[n++] = zencode(pkeys, pcrc_32_tab, (int)(crcForCrypting >> 24) & 0xff, t); - return n; -} - -#endif diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/ioapi.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/ioapi.h deleted file mode 100644 index 7d457baab..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/ioapi.h +++ /dev/null @@ -1,75 +0,0 @@ -/* ioapi.h -- IO base function header for compress/uncompress .zip - files using zlib + zip or unzip API - - Version 1.01e, February 12th, 2005 - - Copyright (C) 1998-2005 Gilles Vollant -*/ - -#ifndef _ZLIBIOAPI_H -#define _ZLIBIOAPI_H - - -#define ZLIB_FILEFUNC_SEEK_CUR (1) -#define ZLIB_FILEFUNC_SEEK_END (2) -#define ZLIB_FILEFUNC_SEEK_SET (0) - -#define ZLIB_FILEFUNC_MODE_READ (1) -#define ZLIB_FILEFUNC_MODE_WRITE (2) -#define ZLIB_FILEFUNC_MODE_READWRITEFILTER (3) - -#define ZLIB_FILEFUNC_MODE_EXISTING (4) -#define ZLIB_FILEFUNC_MODE_CREATE (8) - - -#ifndef ZCALLBACK - -#if (defined(WIN32) || defined (WINDOWS) || defined (_WINDOWS)) && defined(CALLBACK) && defined (USEWINDOWS_CALLBACK) -#define ZCALLBACK CALLBACK -#else -#define ZCALLBACK -#endif -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -typedef voidpf (ZCALLBACK *open_file_func) OF((voidpf opaque, const char* filename, int mode)); -typedef uLong (ZCALLBACK *read_file_func) OF((voidpf opaque, voidpf stream, void* buf, uLong size)); -typedef uLong (ZCALLBACK *write_file_func) OF((voidpf opaque, voidpf stream, const void* buf, uLong size)); -typedef long (ZCALLBACK *tell_file_func) OF((voidpf opaque, voidpf stream)); -typedef long (ZCALLBACK *seek_file_func) OF((voidpf opaque, voidpf stream, uLong offset, int origin)); -typedef int (ZCALLBACK *close_file_func) OF((voidpf opaque, voidpf stream)); -typedef int (ZCALLBACK *testerror_file_func) OF((voidpf opaque, voidpf stream)); - -typedef struct zlib_filefunc_def_s -{ - open_file_func zopen_file; - read_file_func zread_file; - write_file_func zwrite_file; - tell_file_func ztell_file; - seek_file_func zseek_file; - close_file_func zclose_file; - testerror_file_func zerror_file; - voidpf opaque; -} zlib_filefunc_def; - - - -void fill_fopen_filefunc OF((zlib_filefunc_def* pzlib_filefunc_def)); - -#define ZREAD(filefunc,filestream,buf,size) ((*((filefunc).zread_file))((filefunc).opaque,filestream,buf,size)) -#define ZWRITE(filefunc,filestream,buf,size) ((*((filefunc).zwrite_file))((filefunc).opaque,filestream,buf,size)) -#define ZTELL(filefunc,filestream) ((*((filefunc).ztell_file))((filefunc).opaque,filestream)) -#define ZSEEK(filefunc,filestream,pos,mode) ((*((filefunc).zseek_file))((filefunc).opaque,filestream,pos,mode)) -#define ZCLOSE(filefunc,filestream) ((*((filefunc).zclose_file))((filefunc).opaque,filestream)) -#define ZERROR(filefunc,filestream) ((*((filefunc).zerror_file))((filefunc).opaque,filestream)) - - -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/quazip.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/quazip.h deleted file mode 100644 index ced1ea0f1..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/quazip.h +++ /dev/null @@ -1,346 +0,0 @@ -#ifndef QUA_ZIP_H -#define QUA_ZIP_H - -/* --- A kind of "standard" GPL license statement -- -QuaZIP - a Qt/C++ wrapper for the ZIP/UNZIP package -Copyright (C) 2005-2007 Sergey A. Tachenov - -This program is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 2 of the License, or (at your -option) any later version. - -This program is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -Public License for more details. - -You should have received a copy of the GNU General Public License along -with this program; if not, write to the Free Software Foundation, Inc., -59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - --- A kind of "standard" GPL license statement ends here -- - -See COPYING file for GPL. - -You are also permitted to use QuaZIP under the terms of LGPL (see -COPYING.LGPL). You are free to choose either license, but please note -that QuaZIP makes use of Qt, which is not licensed under LGPL. So if -you are using Open Source edition of Qt, you therefore MUST use GPL for -your code based on QuaZIP, since it would be also based on Qt in this -case. If you are Qt commercial license owner, then you are free to use -QuaZIP as long as you respect either GPL or LGPL for QuaZIP code. - **/ - -#include -#include - -#include "zip.h" -#include "unzip.h" - -#include "quazipfileinfo.h" - -// just in case it will be defined in the later versions of the ZIP/UNZIP -#ifndef UNZ_OPENERROR -// define additional error code -#define UNZ_OPENERROR -1000 -#endif - -/// ZIP archive. -/** \class QuaZip quazip.h - * This class implements basic interface to the ZIP archive. It can be - * used to read table contents of the ZIP archive and retreiving - * information about the files inside it. - * - * You can also use this class to open files inside archive by passing - * pointer to the instance of this class to the constructor of the - * QuaZipFile class. But see QuaZipFile::QuaZipFile(QuaZip*, QObject*) - * for the possible pitfalls. - * - * This class is indended to provide interface to the ZIP subpackage of - * the ZIP/UNZIP package as well as to the UNZIP subpackage. But - * currently it supports only UNZIP. - * - * The use of this class is simple - just create instance using - * constructor, then set ZIP archive file name using setFile() function - * (if you did not passed the name to the constructor), then open() and - * then use different functions to work with it! Well, if you are - * paranoid, you may also wish to call close before destructing the - * instance, to check for errors on close. - * - * You may also use getUnzFile() and getZipFile() functions to get the - * ZIP archive handle and use it with ZIP/UNZIP package API directly. - * - * This class supports localized file names inside ZIP archive, but you - * have to set up proper codec with setCodec() function. By default, - * locale codec will be used, which is probably ok for UNIX systems, but - * will almost certainly fail with ZIP archives created in Windows. This - * is because Windows ZIP programs have strange habit of using DOS - * encoding for file names in ZIP archives. For example, ZIP archive - * with cyrillic names created in Windows will have file names in \c - * IBM866 encoding instead of \c WINDOWS-1251. I think that calling one - * function is not much trouble, but for true platform independency it - * would be nice to have some mechanism for file name encoding auto - * detection using locale information. Does anyone know a good way to do - * it? - **/ -class QuaZip { - public: - /// Useful constants. - enum Constants { - MAX_FILE_NAME_LENGTH=256 /**< Maximum file name length. Taken from - \c UNZ_MAXFILENAMEINZIP constant in - unzip.c. */ - }; - /// Open mode of the ZIP file. - enum Mode { - mdNotOpen, ///< ZIP file is not open. This is the initial mode. - mdUnzip, ///< ZIP file is open for reading files inside it. - mdCreate, ///< ZIP file was created with open() call. - mdAppend, /**< ZIP file was opened in append mode. This refers to - * \c APPEND_STATUS_CREATEAFTER mode in ZIP/UNZIP package - * and means that zip is appended to some existing file - * what is useful when that file contains - * self-extractor code. This is obviously \em not what - * you whant to use to add files to the existing ZIP - * archive. - **/ - mdAdd ///< ZIP file was opened for adding files in the archive. - }; - /// Case sensitivity for the file names. - /** This is what you specify when accessing files in the archive. - * Works perfectly fine with any characters thanks to Qt's great - * unicode support. This is different from ZIP/UNZIP API, where - * only US-ASCII characters was supported. - **/ - enum CaseSensitivity { - csDefault=0, ///< Default for platform. Case sensitive for UNIX, not for Windows. - csSensitive=1, ///< Case sensitive. - csInsensitive=2 ///< Case insensitive. - }; - private: - QTextCodec *fileNameCodec, *commentCodec; - QString zipName; - QString comment; - Mode mode; - union { - unzFile unzFile_f; - zipFile zipFile_f; - }; - bool hasCurrentFile_f; - int zipError; - // not (and will not be) implemented - QuaZip(const QuaZip& that); - // not (and will not be) implemented - QuaZip& operator=(const QuaZip& that); - public: - /// Constructs QuaZip object. - /** Call setName() before opening constructed object. */ - QuaZip(); - /// Constructs QuaZip object associated with ZIP file \a zipName. - QuaZip(const QString& zipName); - /// Destroys QuaZip object. - /** Calls close() if necessary. */ - ~QuaZip(); - /// Opens ZIP file. - /** Argument \a ioApi specifies IO function set for ZIP/UNZIP - * package to use. See unzip.h, zip.h and ioapi.h for details. By - * passing NULL (the default) you just tell package to use the - * default API which works just fine on UNIX platforms. I have tried - * it on win32-g++ platform too and it seems it works fine there - * too, so I see no reason to use win32 IO API included in original - * ZIP/UNZIP package. - * - * ZIP archive file name will be converted to 8-bit encoding using - * Qt's QFile::encodeName() function before passing it to the - * ZIP/UNZIP package API. - * - * Returns \c true if successful, \c false otherwise. - * - * Argument \a mode specifies open mode of the ZIP archive. See Mode - * for details. Note that there is zipOpen2() function in the - * ZIP/UNZIP API which accepts \a globalcomment argument, but it - * does not use it anywhere, so this open() function does not have this - * argument. See setComment() if you need to set global comment. - * - * \note ZIP/UNZIP API open calls do not return error code - they - * just return \c NULL indicating an error. But to make things - * easier, quazip.h header defines additional error code \c - * UNZ_ERROROPEN and getZipError() will return it if the open call - * of the ZIP/UNZIP API returns \c NULL. - **/ - bool open(Mode mode, zlib_filefunc_def *ioApi =NULL); - /// Closes ZIP file. - /** Call getZipError() to determine if the close was successful. */ - void close(); - /// Sets the codec used to encode/decode file names inside archive. - /** This is necessary to access files in the ZIP archive created - * under Windows with non-latin characters in file names. For - * example, file names with cyrillic letters will be in \c IBM866 - * encoding. - **/ - void setFileNameCodec(QTextCodec *fileNameCodec) - {this->fileNameCodec=fileNameCodec;} - /// Sets the codec used to encode/decode file names inside archive. - /** \overload - * Equivalent to calling setFileNameCodec(QTextCodec::codecForName(codecName)); - **/ - void setFileNameCodec(const char *fileNameCodecName) - {fileNameCodec=QTextCodec::codecForName(fileNameCodecName);} - /// Returns the codec used to encode/decode comments inside archive. - QTextCodec* getFileNameCodec()const {return fileNameCodec;} - /// Sets the codec used to encode/decode comments inside archive. - /** This codec defaults to locale codec, which is probably ok. - **/ - void setCommentCodec(QTextCodec *commentCodec) - {this->commentCodec=commentCodec;} - /// Sets the codec used to encode/decode comments inside archive. - /** \overload - * Equivalent to calling setCommentCodec(QTextCodec::codecForName(codecName)); - **/ - void setCommentCodec(const char *commentCodecName) - {commentCodec=QTextCodec::codecForName(commentCodecName);} - /// Returns the codec used to encode/decode comments inside archive. - QTextCodec* getCommentCodec()const {return commentCodec;} - /// Returns the name of the ZIP file. - /** Returns null string if no ZIP file name has been set. - * \sa setZipName() - **/ - QString getZipName()const {return zipName;} - /// Sets the name of the ZIP file. - /** Does nothing if the ZIP file is open. - * - * Does not reset error code returned by getZipError(). - **/ - void setZipName(const QString& zipName); - /// Returns the mode in which ZIP file was opened. - Mode getMode()const {return mode;} - /// Returns \c true if ZIP file is open, \c false otherwise. - bool isOpen()const {return mode!=mdNotOpen;} - /// Returns the error code of the last operation. - /** Returns \c UNZ_OK if the last operation was successful. - * - * Error code resets to \c UNZ_OK every time you call any function - * that accesses something inside ZIP archive, even if it is \c - * const (like getEntriesCount()). open() and close() calls reset - * error code too. See documentation for the specific functions for - * details on error detection. - **/ - int getZipError()const {return zipError;} - /// Returns number of the entries in the ZIP central directory. - /** Returns negative error code in the case of error. The same error - * code will be returned by subsequent getZipError() call. - **/ - int getEntriesCount()const; - /// Returns global comment in the ZIP file. - QString getComment()const; - /// Sets global comment in the ZIP file. - /** Comment will be written to the archive on close operation. - * - * \sa open() - **/ - void setComment(const QString& comment) {this->comment=comment;} - /// Sets the current file to the first file in the archive. - /** Returns \c true on success, \c false otherwise. Call - * getZipError() to get the error code. - **/ - bool goToFirstFile(); - /// Sets the current file to the next file in the archive. - /** Returns \c true on success, \c false otherwise. Call - * getZipError() to determine if there was an error. - * - * Should be used only in QuaZip::mdUnzip mode. - * - * \note If the end of file was reached, getZipError() will return - * \c UNZ_OK instead of \c UNZ_END_OF_LIST_OF_FILE. This is to make - * things like this easier: - * \code - * for(bool more=zip.goToFirstFile(); more; more=zip.goToNextFile()) { - * // do something - * } - * if(zip.getZipError()==UNZ_OK) { - * // ok, there was no error - * } - * \endcode - **/ - bool goToNextFile(); - /// Sets current file by its name. - /** Returns \c true if successful, \c false otherwise. Argument \a - * cs specifies case sensitivity of the file name. Call - * getZipError() in the case of a failure to get error code. - * - * This is not a wrapper to unzLocateFile() function. That is - * because I had to implement locale-specific case-insensitive - * comparison. - * - * Here are the differences from the original implementation: - * - * - If the file was not found, error code is \c UNZ_OK, not \c - * UNZ_END_OF_LIST_OF_FILE (see also goToNextFile()). - * - If this function fails, it unsets the current file rather than - * resetting it back to what it was before the call. - * - * If \a fileName is null string then this function unsets the - * current file and return \c true. Note that you should close the - * file first if it is open! See - * QuaZipFile::QuaZipFile(QuaZip*,QObject*) for the details. - * - * Should be used only in QuaZip::mdUnzip mode. - * - * \sa setFileNameCodec(), CaseSensitivity - **/ - bool setCurrentFile(const QString& fileName, CaseSensitivity cs =csDefault); - /// Returns \c true if the current file has been set. - bool hasCurrentFile()const {return hasCurrentFile_f;} - /// Retrieves information about the current file. - /** Fills the structure pointed by \a info. Returns \c true on - * success, \c false otherwise. In the latter case structure pointed - * by \a info remains untouched. If there was an error, - * getZipError() returns error code. - * - * Should be used only in QuaZip::mdUnzip mode. - * - * Does nothing and returns \c false in any of the following cases. - * - ZIP is not open; - * - ZIP does not have current file; - * - \a info is \c NULL; - * - * In all these cases getZipError() returns \c UNZ_OK since there - * is no ZIP/UNZIP API call. - **/ - bool getCurrentFileInfo(QuaZipFileInfo* info)const; - /// Returns the current file name. - /** Equivalent to calling getCurrentFileInfo() and then getting \c - * name field of the QuaZipFileInfo structure, but faster and more - * convenient. - * - * Should be used only in QuaZip::mdUnzip mode. - **/ - QString getCurrentFileName()const; - /// Returns \c unzFile handle. - /** You can use this handle to directly call UNZIP part of the - * ZIP/UNZIP package functions (see unzip.h). - * - * \warning When using the handle returned by this function, please - * keep in mind that QuaZip class is unable to detect any changes - * you make in the ZIP file state (e. g. changing current file, or - * closing the handle). So please do not do anything with this - * handle that is possible to do with the functions of this class. - * Or at least return the handle in the original state before - * calling some another function of this class (including implicit - * destructor calls and calls from the QuaZipFile objects that refer - * to this QuaZip instance!). So if you have changed the current - * file in the ZIP archive - then change it back or you may - * experience some strange behavior or even crashes. - **/ - unzFile getUnzFile() {return unzFile_f;} - /// Returns \c zipFile handle. - /** You can use this handle to directly call ZIP part of the - * ZIP/UNZIP package functions (see zip.h). Warnings about the - * getUnzFile() function also apply to this function. - **/ - zipFile getZipFile() {return zipFile_f;} -}; - -#endif diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/quazipfile.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/quazipfile.h deleted file mode 100644 index 09af5bcec..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/quazipfile.h +++ /dev/null @@ -1,442 +0,0 @@ -#ifndef QUA_ZIPFILE_H -#define QUA_ZIPFILE_H - -/* --- A kind of "standard" GPL license statement -- -QuaZIP - a Qt/C++ wrapper for the ZIP/UNZIP package -Copyright (C) 2005-2008 Sergey A. Tachenov - -This program is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 2 of the License, or (at your -option) any later version. - -This program is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -Public License for more details. - -You should have received a copy of the GNU General Public License along -with this program; if not, write to the Free Software Foundation, Inc., -59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - --- A kind of "standard" GPL license statement ends here -- - -See COPYING file for GPL. - -You are also permitted to use QuaZIP under the terms of LGPL (see -COPYING.LGPL). You are free to choose either license, but please note -that QuaZIP makes use of Qt, which is not licensed under LGPL. So if -you are using Open Source edition of Qt, you therefore MUST use GPL for -your code based on QuaZIP, since it would be also based on Qt in this -case. If you are Qt commercial license owner, then you are free to use -QuaZIP as long as you respect either GPL or LGPL for QuaZIP code. - **/ - -#include - -#include "quazip.h" -#include "quazipnewinfo.h" - -/// A file inside ZIP archive. -/** \class QuaZipFile quazipfile.h - * This is the most interesting class. Not only it provides C++ - * interface to the ZIP/UNZIP package, but also integrates it with Qt by - * subclassing QIODevice. This makes possible to access files inside ZIP - * archive using QTextStream or QDataStream, for example. Actually, this - * is the main purpose of the whole QuaZIP library. - * - * You can either use existing QuaZip instance to create instance of - * this class or pass ZIP archive file name to this class, in which case - * it will create internal QuaZip object. See constructors' descriptions - * for details. Writing is only possible with the existing instance. - * - * \section quazipfile-sequential Sequential or random-access? - * - * At the first thought, QuaZipFile has fixed size, the start and the - * end and should be therefore considered random-access device. But - * there is one major obstacle to making it random-access: ZIP/UNZIP API - * does not support seek() operation and the only way to implement it is - * through reopening the file and re-reading to the required position, - * but this is prohibitely slow. - * - * Therefore, QuaZipFile is considered to be a sequential device. This - * has advantage of availability of the ungetChar() operation (QIODevice - * does not implement it properly for non-sequential devices unless they - * support seek()). Disadvantage is a somewhat strange behaviour of the - * size() and pos() functions. This should be kept in mind while using - * this class. - * - **/ -class QuaZipFile: public QIODevice { - Q_OBJECT - private: - QuaZip *zip; - QString fileName; - QuaZip::CaseSensitivity caseSensitivity; - bool raw; - qint64 writePos; - // these two are for writing raw files - ulong uncompressedSize; - quint32 crc; - bool internal; - int zipError; - // these are not supported nor implemented - QuaZipFile(const QuaZipFile& that); - QuaZipFile& operator=(const QuaZipFile& that); - void resetZipError()const {setZipError(UNZ_OK);} - // const, but sets zipError! - void setZipError(int zipError)const; - protected: - /// Implementation of the QIODevice::readData(). - qint64 readData(char *data, qint64 maxSize); - /// Implementation of the QIODevice::writeData(). - qint64 writeData(const char *data, qint64 maxSize); - public: - /// Constructs a QuaZipFile instance. - /** You should use setZipName() and setFileName() or setZip() before - * trying to call open() on the constructed object. - **/ - QuaZipFile(); - /// Constructs a QuaZipFile instance. - /** \a parent argument specifies this object's parent object. - * - * You should use setZipName() and setFileName() or setZip() before - * trying to call open() on the constructed object. - **/ - QuaZipFile(QObject *parent); - /// Constructs a QuaZipFile instance. - /** \a parent argument specifies this object's parent object and \a - * zipName specifies ZIP archive file name. - * - * You should use setFileName() before trying to call open() on the - * constructed object. - * - * QuaZipFile constructed by this constructor can be used for read - * only access. Use QuaZipFile(QuaZip*,QObject*) for writing. - **/ - QuaZipFile(const QString& zipName, QObject *parent =NULL); - /// Constructs a QuaZipFile instance. - /** \a parent argument specifies this object's parent object, \a - * zipName specifies ZIP archive file name and \a fileName and \a cs - * specify a name of the file to open inside archive. - * - * QuaZipFile constructed by this constructor can be used for read - * only access. Use QuaZipFile(QuaZip*,QObject*) for writing. - * - * \sa QuaZip::setCurrentFile() - **/ - QuaZipFile(const QString& zipName, const QString& fileName, - QuaZip::CaseSensitivity cs =QuaZip::csDefault, QObject *parent =NULL); - /// Constructs a QuaZipFile instance. - /** \a parent argument specifies this object's parent object. - * - * \a zip is the pointer to the existing QuaZip object. This - * QuaZipFile object then can be used to read current file in the - * \a zip or to write to the file inside it. - * - * \warning Using this constructor for reading current file can be - * tricky. Let's take the following example: - * \code - * QuaZip zip("archive.zip"); - * zip.open(QuaZip::mdUnzip); - * zip.setCurrentFile("file-in-archive"); - * QuaZipFile file(&zip); - * file.open(QIODevice::ReadOnly); - * // ok, now we can read from the file - * file.read(somewhere, some); - * zip.setCurrentFile("another-file-in-archive"); // oops... - * QuaZipFile anotherFile(&zip); - * anotherFile.open(QIODevice::ReadOnly); - * anotherFile.read(somewhere, some); // this is still ok... - * file.read(somewhere, some); // and this is NOT - * \endcode - * So, what exactly happens here? When we change current file in the - * \c zip archive, \c file that references it becomes invalid - * (actually, as far as I understand ZIP/UNZIP sources, it becomes - * closed, but QuaZipFile has no means to detect it). - * - * Summary: do not close \c zip object or change its current file as - * long as QuaZipFile is open. Even better - use another constructors - * which create internal QuaZip instances, one per object, and - * therefore do not cause unnecessary trouble. This constructor may - * be useful, though, if you already have a QuaZip instance and do - * not want to access several files at once. Good example: - * \code - * QuaZip zip("archive.zip"); - * zip.open(QuaZip::mdUnzip); - * // first, we need some information about archive itself - * QByteArray comment=zip.getComment(); - * // and now we are going to access files inside it - * QuaZipFile file(&zip); - * for(bool more=zip.goToFirstFile(); more; more=zip.goToNextFile()) { - * file.open(QIODevice::ReadOnly); - * // do something cool with file here - * file.close(); // do not forget to close! - * } - * zip.close(); - * \endcode - **/ - QuaZipFile(QuaZip *zip, QObject *parent =NULL); - /// Destroys a QuaZipFile instance. - /** Closes file if open, destructs internal QuaZip object (if it - * exists and \em is internal, of course). - **/ - virtual ~QuaZipFile(); - /// Returns the ZIP archive file name. - /** If this object was created by passing QuaZip pointer to the - * constructor, this function will return that QuaZip's file name - * (or null string if that object does not have file name yet). - * - * Otherwise, returns associated ZIP archive file name or null - * string if there are no name set yet. - * - * \sa setZipName() getFileName() - **/ - QString getZipName()const; - /// Returns a pointer to the associated QuaZip object. - /** Returns \c NULL if there is no associated QuaZip or it is - * internal (so you will not mess with it). - **/ - QuaZip* getZip()const; - /// Returns file name. - /** This function returns file name you passed to this object either - * by using - * QuaZipFile(const QString&,const QString&,QuaZip::CaseSensitivity,QObject*) - * or by calling setFileName(). Real name of the file may differ in - * case if you used case-insensitivity. - * - * Returns null string if there is no file name set yet. This is the - * case when this QuaZipFile operates on the existing QuaZip object - * (constructor QuaZipFile(QuaZip*,QObject*) or setZip() was used). - * - * \sa getActualFileName - **/ - QString getFileName()const {return fileName;} - /// Returns case sensitivity of the file name. - /** This function returns case sensitivity argument you passed to - * this object either by using - * QuaZipFile(const QString&,const QString&,QuaZip::CaseSensitivity,QObject*) - * or by calling setFileName(). - * - * Returns unpredictable value if getFileName() returns null string - * (this is the case when you did not used setFileName() or - * constructor above). - * - * \sa getFileName - **/ - QuaZip::CaseSensitivity getCaseSensitivity()const {return caseSensitivity;} - /// Returns the actual file name in the archive. - /** This is \em not a ZIP archive file name, but a name of file inside - * archive. It is not necessary the same name that you have passed - * to the - * QuaZipFile(const QString&,const QString&,QuaZip::CaseSensitivity,QObject*), - * setFileName() or QuaZip::setCurrentFile() - this is the real file - * name inside archive, so it may differ in case if the file name - * search was case-insensitive. - * - * Equivalent to calling getCurrentFileName() on the associated - * QuaZip object. Returns null string if there is no associated - * QuaZip object or if it does not have a current file yet. And this - * is the case if you called setFileName() but did not open the - * file yet. So this is perfectly fine: - * \code - * QuaZipFile file("somezip.zip"); - * file.setFileName("somefile"); - * QString name=file.getName(); // name=="somefile" - * QString actual=file.getActualFileName(); // actual is null string - * file.open(QIODevice::ReadOnly); - * QString actual=file.getActualFileName(); // actual can be "SoMeFiLe" on Windows - * \endcode - * - * \sa getZipName(), getFileName(), QuaZip::CaseSensitivity - **/ - QString getActualFileName()const; - /// Sets the ZIP archive file name. - /** Automatically creates internal QuaZip object and destroys - * previously created internal QuaZip object, if any. - * - * Will do nothing if this file is already open. You must close() it - * first. - **/ - void setZipName(const QString& zipName); - /// Returns \c true if the file was opened in raw mode. - /** If the file is not open, the returned value is undefined. - * - * \sa open(OpenMode,int*,int*,bool,const char*) - **/ - bool isRaw()const {return raw;} - /// Binds to the existing QuaZip instance. - /** This function destroys internal QuaZip object, if any, and makes - * this QuaZipFile to use current file in the \a zip object for any - * further operations. See QuaZipFile(QuaZip*,QObject*) for the - * possible pitfalls. - * - * Will do nothing if the file is currently open. You must close() - * it first. - **/ - void setZip(QuaZip *zip); - /// Sets the file name. - /** Will do nothing if at least one of the following conditions is - * met: - * - ZIP name has not been set yet (getZipName() returns null - * string). - * - This QuaZipFile is associated with external QuaZip. In this - * case you should call that QuaZip's setCurrentFile() function - * instead! - * - File is already open so setting the name is meaningless. - * - * \sa QuaZip::setCurrentFile - **/ - void setFileName(const QString& fileName, QuaZip::CaseSensitivity cs =QuaZip::csDefault); - /// Opens a file for reading. - /** Returns \c true on success, \c false otherwise. - * Call getZipError() to get error code. - * - * \note Since ZIP/UNZIP API provides buffered reading only, - * QuaZipFile does not support unbuffered reading. So do not pass - * QIODevice::Unbuffered flag in \a mode, or open will fail. - **/ - virtual bool open(OpenMode mode); - /// Opens a file for reading. - /** \overload - * Argument \a password specifies a password to decrypt the file. If - * it is NULL then this function behaves just like open(OpenMode). - **/ - bool open(OpenMode mode, const char *password) - {return open(mode, NULL, NULL, false, password);} - /// Opens a file for reading. - /** \overload - * Argument \a password specifies a password to decrypt the file. - * - * An integers pointed by \a method and \a level will receive codes - * of the compression method and level used. See unzip.h. - * - * If raw is \c true then no decompression is performed. - * - * \a method should not be \c NULL. \a level can be \c NULL if you - * don't want to know the compression level. - **/ - bool open(OpenMode mode, int *method, int *level, bool raw, const char *password =NULL); - /// Opens a file for writing. - /** \a info argument specifies information about file. It should at - * least specify a correct file name. Also, it is a good idea to - * specify correct timestamp (by default, current time will be - * used). See QuaZipNewInfo. - * - * Arguments \a password and \a crc provide necessary information - * for crypting. Note that you should specify both of them if you - * need crypting. If you do not, pass \c NULL as password, but you - * still need to specify \a crc if you are going to use raw mode - * (see below). - * - * Arguments \a method and \a level specify compression method and - * level. - * - * If \a raw is \c true, no compression is performed. In this case, - * \a crc and uncompressedSize field of the \a info are required. - * - * Arguments \a windowBits, \a memLevel, \a strategy provide zlib - * algorithms tuning. See deflateInit2() in zlib. - **/ - bool open(OpenMode mode, const QuaZipNewInfo& info, - const char *password =NULL, quint32 crc =0, - int method =Z_DEFLATED, int level =Z_DEFAULT_COMPRESSION, bool raw =false, - int windowBits =-MAX_WBITS, int memLevel =DEF_MEM_LEVEL, int strategy =Z_DEFAULT_STRATEGY); - /// Returns \c true, but \ref quazipfile-sequential "beware"! - virtual bool isSequential()const; - /// Returns current position in the file. - /** Implementation of the QIODevice::pos(). When reading, this - * function is a wrapper to the ZIP/UNZIP unztell(), therefore it is - * unable to keep track of the ungetChar() calls (which is - * non-virtual and therefore is dangerous to reimplement). So if you - * are using ungetChar() feature of the QIODevice, this function - * reports incorrect value until you get back characters which you - * ungot. - * - * When writing, pos() returns number of bytes already written - * (uncompressed unless you use raw mode). - * - * \note Although - * \ref quazipfile-sequential "QuaZipFile is a sequential device" - * and therefore pos() should always return zero, it does not, - * because it would be misguiding. Keep this in mind. - * - * This function returns -1 if the file or archive is not open. - * - * Error code returned by getZipError() is not affected by this - * function call. - **/ - virtual qint64 pos()const; - /// Returns \c true if the end of file was reached. - /** This function returns \c false in the case of error. This means - * that you called this function on either not open file, or a file - * in the not open archive or even on a QuaZipFile instance that - * does not even have QuaZip instance associated. Do not do that - * because there is no means to determine whether \c false is - * returned because of error or because end of file was reached. - * Well, on the other side you may interpret \c false return value - * as "there is no file open to check for end of file and there is - * no end of file therefore". - * - * When writing, this function always returns \c true (because you - * are always writing to the end of file). - * - * Error code returned by getZipError() is not affected by this - * function call. - **/ - virtual bool atEnd()const; - /// Returns file size. - /** This function returns csize() if the file is open for reading in - * raw mode, usize() if it is open for reading in normal mode and - * pos() if it is open for writing. - * - * Returns -1 on error, call getZipError() to get error code. - * - * \note This function returns file size despite that - * \ref quazipfile-sequential "QuaZipFile is considered to be sequential device", - * for which size() should return bytesAvailable() instead. But its - * name would be very misguiding otherwise, so just keep in mind - * this inconsistence. - **/ - virtual qint64 size()const; - /// Returns compressed file size. - /** Equivalent to calling getFileInfo() and then getting - * compressedSize field, but more convenient and faster. - * - * File must be open for reading before calling this function. - * - * Returns -1 on error, call getZipError() to get error code. - **/ - qint64 csize()const; - /// Returns uncompressed file size. - /** Equivalent to calling getFileInfo() and then getting - * uncompressedSize field, but more convenient and faster. See - * getFileInfo() for a warning. - * - * File must be open for reading before calling this function. - * - * Returns -1 on error, call getZipError() to get error code. - **/ - qint64 usize()const; - /// Gets information about current file. - /** This function does the same thing as calling - * QuaZip::getCurrentFileInfo() on the associated QuaZip object, - * but you can not call getCurrentFileInfo() if the associated - * QuaZip is internal (because you do not have access to it), while - * you still can call this function in that case. - * - * File must be open for reading before calling this function. - * - * Returns \c false in the case of an error. - **/ - bool getFileInfo(QuaZipFileInfo *info); - /// Closes the file. - /** Call getZipError() to determine if the close was successful. - **/ - virtual void close(); - /// Returns the error code returned by the last ZIP/UNZIP API call. - int getZipError()const {return zipError;} -}; - -#endif diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/quazipfileinfo.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/quazipfileinfo.h deleted file mode 100644 index 3216d776d..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/quazipfileinfo.h +++ /dev/null @@ -1,73 +0,0 @@ -#ifndef QUA_ZIPFILEINFO_H -#define QUA_ZIPFILEINFO_H - -/* --- A kind of "standard" GPL license statement -- -QuaZIP - a Qt/C++ wrapper for the ZIP/UNZIP package -Copyright (C) 2005-2007 Sergey A. Tachenov - -This program is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 2 of the License, or (at your -option) any later version. - -This program is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -Public License for more details. - -You should have received a copy of the GNU General Public License along -with this program; if not, write to the Free Software Foundation, Inc., -59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - --- A kind of "standard" GPL license statement ends here -- - -See COPYING file for GPL. - -You are also permitted to use QuaZIP under the terms of LGPL (see -COPYING.LGPL). You are free to choose either license, but please note -that QuaZIP makes use of Qt, which is not licensed under LGPL. So if -you are using Open Source edition of Qt, you therefore MUST use GPL for -your code based on QuaZIP, since it would be also based on Qt in this -case. If you are Qt commercial license owner, then you are free to use -QuaZIP as long as you respect either GPL or LGPL for QuaZIP code. - **/ - -#include -#include - -/// Information about a file inside archive. -/** Call QuaZip::getCurrentFileInfo() or QuaZipFile::getFileInfo() to - * fill this structure. */ -struct QuaZipFileInfo { - /// File name. - QString name; - /// Version created by. - quint16 versionCreated; - /// Version needed to extract. - quint16 versionNeeded; - /// General purpose flags. - quint16 flags; - /// Compression method. - quint16 method; - /// Last modification date and time. - QDateTime dateTime; - /// CRC. - quint32 crc; - /// Compressed file size. - quint32 compressedSize; - /// Uncompressed file size. - quint32 uncompressedSize; - /// Disk number start. - quint16 diskNumberStart; - /// Internal file attributes. - quint16 internalAttr; - /// External file attributes. - quint32 externalAttr; - /// Comment. - QString comment; - /// Extra field. - QByteArray extra; -}; - -#endif diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/quazipnewinfo.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/quazipnewinfo.h deleted file mode 100644 index 93ff1a2fc..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/quazipnewinfo.h +++ /dev/null @@ -1,109 +0,0 @@ -#ifndef QUA_ZIPNEWINFO_H -#define QUA_ZIPNEWINFO_H - -/* --- A kind of "standard" GPL license statement -- -QuaZIP - a Qt/C++ wrapper for the ZIP/UNZIP package -Copyright (C) 2005-2007 Sergey A. Tachenov - -This program is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 2 of the License, or (at your -option) any later version. - -This program is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -Public License for more details. - -You should have received a copy of the GNU General Public License along -with this program; if not, write to the Free Software Foundation, Inc., -59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - --- A kind of "standard" GPL license statement ends here -- - -See COPYING file for GPL. - -You are also permitted to use QuaZIP under the terms of LGPL (see -COPYING.LGPL). You are free to choose either license, but please note -that QuaZIP makes use of Qt, which is not licensed under LGPL. So if -you are using Open Source edition of Qt, you therefore MUST use GPL for -your code based on QuaZIP, since it would be also based on Qt in this -case. If you are Qt commercial license owner, then you are free to use -QuaZIP as long as you respect either GPL or LGPL for QuaZIP code. - **/ - -#include -#include - -/// Information about a file to be created. -/** This structure holds information about a file to be created inside - * ZIP archive. At least name should be set to something correct before - * passing this structure to - * QuaZipFile::open(OpenMode,const QuaZipNewInfo&,int,int,bool). - **/ -struct QuaZipNewInfo { - /// File name. - /** This field holds file name inside archive, including path relative - * to archive root. - **/ - QString name; - /// File timestamp. - /** This is the last file modification date and time. Will be stored - * in the archive central directory. It is a good practice to set it - * to the source file timestamp instead of archive creating time. Use - * setFileDateTime() or QuaZipNewInfo(const QString&, const QString&). - **/ - QDateTime dateTime; - /// File internal attributes. - quint16 internalAttr; - /// File external attributes. - quint32 externalAttr; - /// File comment. - /** Will be encoded using QuaZip::getCommentCodec(). - **/ - QString comment; - /// File local extra field. - QByteArray extraLocal; - /// File global extra field. - QByteArray extraGlobal; - /// Uncompressed file size. - /** This is only needed if you are using raw file zipping mode, i. e. - * adding precompressed file in the zip archive. - **/ - ulong uncompressedSize; - /// Constructs QuaZipNewInfo instance. - /** Initializes name with \a name, dateTime with current date and - * time. Attributes are initialized with zeros, comment and extra - * field with null values. - **/ - QuaZipNewInfo(const QString& name); - /// Constructs QuaZipNewInfo instance. - /** Initializes name with \a name and dateTime with timestamp of the - * file named \a file. If the \a file does not exists or its timestamp - * is inaccessible (e. g. you do not have read permission for the - * directory file in), uses current date and time. Attributes are - * initialized with zeros, comment and extra field with null values. - * - * \sa setFileDateTime() - **/ - QuaZipNewInfo(const QString& name, const QString& file); - /// Sets the file timestamp from the existing file. - /** Use this function to set the file timestamp from the existing - * file. Use it like this: - * \code - * QuaZipFile zipFile(&zip); - * QFile file("file-to-add"); - * file.open(QIODevice::ReadOnly); - * QuaZipNewInfo info("file-name-in-archive"); - * info.setFileDateTime("file-to-add"); // take the timestamp from file - * zipFile.open(QIODevice::WriteOnly, info); - * \endcode - * - * This function does not change dateTime if some error occured (e. g. - * file is inaccessible). - **/ - void setFileDateTime(const QString& file); -}; - -#endif diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/unzip.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/unzip.h deleted file mode 100644 index b247937c8..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/unzip.h +++ /dev/null @@ -1,354 +0,0 @@ -/* unzip.h -- IO for uncompress .zip files using zlib - Version 1.01e, February 12th, 2005 - - Copyright (C) 1998-2005 Gilles Vollant - - This unzip package allow extract file from .ZIP file, compatible with PKZip 2.04g - WinZip, InfoZip tools and compatible. - - Multi volume ZipFile (span) are not supported. - Encryption compatible with pkzip 2.04g only supported - Old compressions used by old PKZip 1.x are not supported - - - I WAIT FEEDBACK at mail info@winimage.com - Visit also http://www.winimage.com/zLibDll/unzip.htm for evolution - - Condition of use and distribution are the same than zlib : - - 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. - - -*/ - -/* for more info about .ZIP format, see - http://www.info-zip.org/pub/infozip/doc/appnote-981119-iz.zip - http://www.info-zip.org/pub/infozip/doc/ - PkWare has also a specification at : - ftp://ftp.pkware.com/probdesc.zip -*/ - -#ifndef _unz_H -#define _unz_H - -#ifdef __cplusplus -extern "C" { -#endif - -#ifndef _ZLIB_H -#include "zlib.h" -#endif - -#ifndef _ZLIBIOAPI_H -#include "ioapi.h" -#endif - -#if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP) -/* like the STRICT of WIN32, we define a pointer that cannot be converted - from (void*) without cast */ -typedef struct TagunzFile__ { int unused; } unzFile__; -typedef unzFile__ *unzFile; -#else -typedef voidp unzFile; -#endif - - -#define UNZ_OK (0) -#define UNZ_END_OF_LIST_OF_FILE (-100) -#define UNZ_ERRNO (Z_ERRNO) -#define UNZ_EOF (0) -#define UNZ_PARAMERROR (-102) -#define UNZ_BADZIPFILE (-103) -#define UNZ_INTERNALERROR (-104) -#define UNZ_CRCERROR (-105) - -/* tm_unz contain date/time info */ -typedef struct tm_unz_s -{ - uInt tm_sec; /* seconds after the minute - [0,59] */ - uInt tm_min; /* minutes after the hour - [0,59] */ - uInt tm_hour; /* hours since midnight - [0,23] */ - uInt tm_mday; /* day of the month - [1,31] */ - uInt tm_mon; /* months since January - [0,11] */ - uInt tm_year; /* years - [1980..2044] */ -} tm_unz; - -/* unz_global_info structure contain global data about the ZIPfile - These data comes from the end of central dir */ -typedef struct unz_global_info_s -{ - uLong number_entry; /* total number of entries in - the central dir on this disk */ - uLong size_comment; /* size of the global comment of the zipfile */ -} unz_global_info; - - -/* unz_file_info contain information about a file in the zipfile */ -typedef struct unz_file_info_s -{ - uLong version; /* version made by 2 bytes */ - uLong version_needed; /* version needed to extract 2 bytes */ - uLong flag; /* general purpose bit flag 2 bytes */ - uLong compression_method; /* compression method 2 bytes */ - uLong dosDate; /* last mod file date in Dos fmt 4 bytes */ - uLong crc; /* crc-32 4 bytes */ - uLong compressed_size; /* compressed size 4 bytes */ - uLong uncompressed_size; /* uncompressed size 4 bytes */ - uLong size_filename; /* filename length 2 bytes */ - uLong size_file_extra; /* extra field length 2 bytes */ - uLong size_file_comment; /* file comment length 2 bytes */ - - uLong disk_num_start; /* disk number start 2 bytes */ - uLong internal_fa; /* internal file attributes 2 bytes */ - uLong external_fa; /* external file attributes 4 bytes */ - - tm_unz tmu_date; -} unz_file_info; - -extern int ZEXPORT unzStringFileNameCompare OF ((const char* fileName1, - const char* fileName2, - int iCaseSensitivity)); -/* - Compare two filename (fileName1,fileName2). - If iCaseSenisivity = 1, comparision is case sensitivity (like strcmp) - If iCaseSenisivity = 2, comparision is not case sensitivity (like strcmpi - or strcasecmp) - If iCaseSenisivity = 0, case sensitivity is defaut of your operating system - (like 1 on Unix, 2 on Windows) -*/ - - -extern unzFile ZEXPORT unzOpen OF((const char *path)); -/* - Open a Zip file. path contain the full pathname (by example, - on a Windows XP computer "c:\\zlib\\zlib113.zip" or on an Unix computer - "zlib/zlib113.zip". - If the zipfile cannot be opened (file don't exist or in not valid), the - return value is NULL. - Else, the return value is a unzFile Handle, usable with other function - of this unzip package. -*/ - -extern unzFile ZEXPORT unzOpen2 OF((const char *path, - zlib_filefunc_def* pzlib_filefunc_def)); -/* - Open a Zip file, like unzOpen, but provide a set of file low level API - for read/write the zip file (see ioapi.h) -*/ - -extern int ZEXPORT unzClose OF((unzFile file)); -/* - Close a ZipFile opened with unzipOpen. - If there is files inside the .Zip opened with unzOpenCurrentFile (see later), - these files MUST be closed with unzipCloseCurrentFile before call unzipClose. - return UNZ_OK if there is no problem. */ - -extern int ZEXPORT unzGetGlobalInfo OF((unzFile file, - unz_global_info *pglobal_info)); -/* - Write info about the ZipFile in the *pglobal_info structure. - No preparation of the structure is needed - return UNZ_OK if there is no problem. */ - - -extern int ZEXPORT unzGetGlobalComment OF((unzFile file, - char *szComment, - uLong uSizeBuf)); -/* - Get the global comment string of the ZipFile, in the szComment buffer. - uSizeBuf is the size of the szComment buffer. - return the number of byte copied or an error code <0 -*/ - - -/***************************************************************************/ -/* Unzip package allow you browse the directory of the zipfile */ - -extern int ZEXPORT unzGoToFirstFile OF((unzFile file)); -/* - Set the current file of the zipfile to the first file. - return UNZ_OK if there is no problem -*/ - -extern int ZEXPORT unzGoToNextFile OF((unzFile file)); -/* - Set the current file of the zipfile to the next file. - return UNZ_OK if there is no problem - return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest. -*/ - -extern int ZEXPORT unzLocateFile OF((unzFile file, - const char *szFileName, - int iCaseSensitivity)); -/* - Try locate the file szFileName in the zipfile. - For the iCaseSensitivity signification, see unzStringFileNameCompare - - return value : - UNZ_OK if the file is found. It becomes the current file. - UNZ_END_OF_LIST_OF_FILE if the file is not found -*/ - - -/* ****************************************** */ -/* Ryan supplied functions */ -/* unz_file_info contain information about a file in the zipfile */ -typedef struct unz_file_pos_s -{ - uLong pos_in_zip_directory; /* offset in zip file directory */ - uLong num_of_file; /* # of file */ -} unz_file_pos; - -extern int ZEXPORT unzGetFilePos( - unzFile file, - unz_file_pos* file_pos); - -extern int ZEXPORT unzGoToFilePos( - unzFile file, - unz_file_pos* file_pos); - -/* ****************************************** */ - -extern int ZEXPORT unzGetCurrentFileInfo OF((unzFile file, - unz_file_info *pfile_info, - char *szFileName, - uLong fileNameBufferSize, - void *extraField, - uLong extraFieldBufferSize, - char *szComment, - uLong commentBufferSize)); -/* - Get Info about the current file - if pfile_info!=NULL, the *pfile_info structure will contain somes info about - the current file - if szFileName!=NULL, the filemane string will be copied in szFileName - (fileNameBufferSize is the size of the buffer) - if extraField!=NULL, the extra field information will be copied in extraField - (extraFieldBufferSize is the size of the buffer). - This is the Central-header version of the extra field - if szComment!=NULL, the comment string of the file will be copied in szComment - (commentBufferSize is the size of the buffer) -*/ - -/***************************************************************************/ -/* for reading the content of the current zipfile, you can open it, read data - from it, and close it (you can close it before reading all the file) - */ - -extern int ZEXPORT unzOpenCurrentFile OF((unzFile file)); -/* - Open for reading data the current file in the zipfile. - If there is no error, the return value is UNZ_OK. -*/ - -extern int ZEXPORT unzOpenCurrentFilePassword OF((unzFile file, - const char* password)); -/* - Open for reading data the current file in the zipfile. - password is a crypting password - If there is no error, the return value is UNZ_OK. -*/ - -extern int ZEXPORT unzOpenCurrentFile2 OF((unzFile file, - int* method, - int* level, - int raw)); -/* - Same than unzOpenCurrentFile, but open for read raw the file (not uncompress) - if raw==1 - *method will receive method of compression, *level will receive level of - compression - note : you can set level parameter as NULL (if you did not want known level, - but you CANNOT set method parameter as NULL -*/ - -extern int ZEXPORT unzOpenCurrentFile3 OF((unzFile file, - int* method, - int* level, - int raw, - const char* password)); -/* - Same than unzOpenCurrentFile, but open for read raw the file (not uncompress) - if raw==1 - *method will receive method of compression, *level will receive level of - compression - note : you can set level parameter as NULL (if you did not want known level, - but you CANNOT set method parameter as NULL -*/ - - -extern int ZEXPORT unzCloseCurrentFile OF((unzFile file)); -/* - Close the file in zip opened with unzOpenCurrentFile - Return UNZ_CRCERROR if all the file was read but the CRC is not good -*/ - -extern int ZEXPORT unzReadCurrentFile OF((unzFile file, - voidp buf, - unsigned len)); -/* - Read bytes from the current file (opened by unzOpenCurrentFile) - buf contain buffer where data must be copied - len the size of buf. - - return the number of byte copied if somes bytes are copied - return 0 if the end of file was reached - return <0 with error code if there is an error - (UNZ_ERRNO for IO error, or zLib error for uncompress error) -*/ - -extern z_off_t ZEXPORT unztell OF((unzFile file)); -/* - Give the current position in uncompressed data -*/ - -extern int ZEXPORT unzeof OF((unzFile file)); -/* - return 1 if the end of file was reached, 0 elsewhere -*/ - -extern int ZEXPORT unzGetLocalExtrafield OF((unzFile file, - voidp buf, - unsigned len)); -/* - Read extra field from the current file (opened by unzOpenCurrentFile) - This is the local-header version of the extra field (sometimes, there is - more info in the local-header version than in the central-header) - - if buf==NULL, it return the size of the local extra field - - if buf!=NULL, len is the size of the buffer, the extra header is copied in - buf. - the return value is the number of bytes copied in buf, or (if <0) - the error code -*/ - -/***************************************************************************/ - -/* Get the current file offset */ -extern uLong ZEXPORT unzGetOffset (unzFile file); - -/* Set the current file offset */ -extern int ZEXPORT unzSetOffset (unzFile file, uLong pos); - - - -#ifdef __cplusplus -} -#endif - -#endif /* _unz_H */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/zip.h b/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/zip.h deleted file mode 100644 index acacce83b..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/3rdparty/quazip/zip.h +++ /dev/null @@ -1,235 +0,0 @@ -/* zip.h -- IO for compress .zip files using zlib - Version 1.01e, February 12th, 2005 - - Copyright (C) 1998-2005 Gilles Vollant - - This unzip package allow creates .ZIP file, compatible with PKZip 2.04g - WinZip, InfoZip tools and compatible. - Multi volume ZipFile (span) are not supported. - Encryption compatible with pkzip 2.04g only supported - Old compressions used by old PKZip 1.x are not supported - - For uncompress .zip file, look at unzip.h - - - I WAIT FEEDBACK at mail info@winimage.com - Visit also http://www.winimage.com/zLibDll/unzip.html for evolution - - Condition of use and distribution are the same than zlib : - - 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. - - -*/ - -/* for more info about .ZIP format, see - http://www.info-zip.org/pub/infozip/doc/appnote-981119-iz.zip - http://www.info-zip.org/pub/infozip/doc/ - PkWare has also a specification at : - ftp://ftp.pkware.com/probdesc.zip -*/ - -#ifndef _zip_H -#define _zip_H - -#ifdef __cplusplus -extern "C" { -#endif - -#ifndef _ZLIB_H -#include "zlib.h" -#endif - -#ifndef _ZLIBIOAPI_H -#include "ioapi.h" -#endif - -#if defined(STRICTZIP) || defined(STRICTZIPUNZIP) -/* like the STRICT of WIN32, we define a pointer that cannot be converted - from (void*) without cast */ -typedef struct TagzipFile__ { int unused; } zipFile__; -typedef zipFile__ *zipFile; -#else -typedef voidp zipFile; -#endif - -#define ZIP_OK (0) -#define ZIP_EOF (0) -#define ZIP_ERRNO (Z_ERRNO) -#define ZIP_PARAMERROR (-102) -#define ZIP_BADZIPFILE (-103) -#define ZIP_INTERNALERROR (-104) - -#ifndef DEF_MEM_LEVEL -# if MAX_MEM_LEVEL >= 8 -# define DEF_MEM_LEVEL 8 -# else -# define DEF_MEM_LEVEL MAX_MEM_LEVEL -# endif -#endif -/* default memLevel */ - -/* tm_zip contain date/time info */ -typedef struct tm_zip_s -{ - uInt tm_sec; /* seconds after the minute - [0,59] */ - uInt tm_min; /* minutes after the hour - [0,59] */ - uInt tm_hour; /* hours since midnight - [0,23] */ - uInt tm_mday; /* day of the month - [1,31] */ - uInt tm_mon; /* months since January - [0,11] */ - uInt tm_year; /* years - [1980..2044] */ -} tm_zip; - -typedef struct -{ - tm_zip tmz_date; /* date in understandable format */ - uLong dosDate; /* if dos_date == 0, tmu_date is used */ -/* uLong flag; */ /* general purpose bit flag 2 bytes */ - - uLong internal_fa; /* internal file attributes 2 bytes */ - uLong external_fa; /* external file attributes 4 bytes */ -} zip_fileinfo; - -typedef const char* zipcharpc; - - -#define APPEND_STATUS_CREATE (0) -#define APPEND_STATUS_CREATEAFTER (1) -#define APPEND_STATUS_ADDINZIP (2) - -extern zipFile ZEXPORT zipOpen OF((const char *pathname, int append)); -/* - Create a zipfile. - pathname contain on Windows XP a filename like "c:\\zlib\\zlib113.zip" or on - an Unix computer "zlib/zlib113.zip". - if the file pathname exist and append==APPEND_STATUS_CREATEAFTER, the zip - will be created at the end of the file. - (useful if the file contain a self extractor code) - if the file pathname exist and append==APPEND_STATUS_ADDINZIP, we will - add files in existing zip (be sure you don't add file that doesn't exist) - If the zipfile cannot be opened, the return value is NULL. - Else, the return value is a zipFile Handle, usable with other function - of this zip package. -*/ - -/* Note : there is no delete function into a zipfile. - If you want delete file into a zipfile, you must open a zipfile, and create another - Of couse, you can use RAW reading and writing to copy the file you did not want delte -*/ - -extern zipFile ZEXPORT zipOpen2 OF((const char *pathname, - int append, - zipcharpc* globalcomment, - zlib_filefunc_def* pzlib_filefunc_def)); - -extern int ZEXPORT zipOpenNewFileInZip OF((zipFile file, - const char* filename, - const zip_fileinfo* zipfi, - const void* extrafield_local, - uInt size_extrafield_local, - const void* extrafield_global, - uInt size_extrafield_global, - const char* comment, - int method, - int level)); -/* - Open a file in the ZIP for writing. - filename : the filename in zip (if NULL, '-' without quote will be used - *zipfi contain supplemental information - if extrafield_local!=NULL and size_extrafield_local>0, extrafield_local - contains the extrafield data the the local header - if extrafield_global!=NULL and size_extrafield_global>0, extrafield_global - contains the extrafield data the the local header - if comment != NULL, comment contain the comment string - method contain the compression method (0 for store, Z_DEFLATED for deflate) - level contain the level of compression (can be Z_DEFAULT_COMPRESSION) -*/ - - -extern int ZEXPORT zipOpenNewFileInZip2 OF((zipFile file, - const char* filename, - const zip_fileinfo* zipfi, - const void* extrafield_local, - uInt size_extrafield_local, - const void* extrafield_global, - uInt size_extrafield_global, - const char* comment, - int method, - int level, - int raw)); - -/* - Same than zipOpenNewFileInZip, except if raw=1, we write raw file - */ - -extern int ZEXPORT zipOpenNewFileInZip3 OF((zipFile file, - const char* filename, - const zip_fileinfo* zipfi, - const void* extrafield_local, - uInt size_extrafield_local, - const void* extrafield_global, - uInt size_extrafield_global, - const char* comment, - int method, - int level, - int raw, - int windowBits, - int memLevel, - int strategy, - const char* password, - uLong crcForCtypting)); - -/* - Same than zipOpenNewFileInZip2, except - windowBits,memLevel,,strategy : see parameter strategy in deflateInit2 - password : crypting password (NULL for no crypting) - crcForCtypting : crc of file to compress (needed for crypting) - */ - - -extern int ZEXPORT zipWriteInFileInZip OF((zipFile file, - const void* buf, - unsigned len)); -/* - Write data in the zipfile -*/ - -extern int ZEXPORT zipCloseFileInZip OF((zipFile file)); -/* - Close the current file in the zipfile -*/ - -extern int ZEXPORT zipCloseFileInZipRaw OF((zipFile file, - uLong uncompressed_size, - uLong crc32)); -/* - Close the current file in the zipfile, for fiel opened with - parameter raw=1 in zipOpenNewFileInZip2 - uncompressed_size and crc32 are value for the uncompressed size -*/ - -extern int ZEXPORT zipClose OF((zipFile file, - const char* global_comment)); -/* - Close the zipfile -*/ - -#ifdef __cplusplus -} -#endif - -#endif /* _zip_H */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_3DRep b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_3DRep deleted file mode 100644 index f9d6643f7..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_3DRep +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_3drep.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_3DViewCollection b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_3DViewCollection deleted file mode 100644 index 88dea1166..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_3DViewCollection +++ /dev/null @@ -1 +0,0 @@ -#include "sceneGraph/glc_3dviewcollection.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_3DViewInstance b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_3DViewInstance deleted file mode 100644 index 93c72b1c1..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_3DViewInstance +++ /dev/null @@ -1 +0,0 @@ -#include "sceneGraph/glc_3dviewinstance.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_3DWidget b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_3DWidget deleted file mode 100644 index e73fa2731..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_3DWidget +++ /dev/null @@ -1 +0,0 @@ -#include "3DWidget/glc_3dwidget.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_3DWidgetManager b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_3DWidgetManager deleted file mode 100644 index b4b055698..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_3DWidgetManager +++ /dev/null @@ -1 +0,0 @@ -#include "3DWidget/glc_3dwidgetmanager.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_3DWidgetManagerHandle b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_3DWidgetManagerHandle deleted file mode 100644 index 6dfcf9197..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_3DWidgetManagerHandle +++ /dev/null @@ -1 +0,0 @@ -#include "3DWidget/glc_3dwidgetmanagerhandle.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_AbstractManipulator b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_AbstractManipulator deleted file mode 100644 index 55c3a2d07..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_AbstractManipulator +++ /dev/null @@ -1 +0,0 @@ -#include "3DWidget/glc_abstractmanipulator.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Arrow b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Arrow deleted file mode 100644 index f951fa027..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Arrow +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_arrow.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Attribute b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Attribute deleted file mode 100644 index 048eef5a8..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Attribute +++ /dev/null @@ -1 +0,0 @@ -#include "sceneGraph/glc_attribute.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Axis b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Axis deleted file mode 100644 index 671eb7ece..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Axis +++ /dev/null @@ -1 +0,0 @@ -#include "3DWidget/glc_axis.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_BSRep b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_BSRep deleted file mode 100644 index b6e3b5cca..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_BSRep +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_bsrep.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_BoundingBox b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_BoundingBox deleted file mode 100644 index 676d13bdb..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_BoundingBox +++ /dev/null @@ -1 +0,0 @@ -#include "glc_boundingbox.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Box b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Box deleted file mode 100644 index 53fc7c827..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Box +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_box.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_CacheManager b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_CacheManager deleted file mode 100644 index 390653efa..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_CacheManager +++ /dev/null @@ -1 +0,0 @@ -#include "glc_cachemanager.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Camera b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Camera deleted file mode 100644 index ed2fa35db..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Camera +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_camera.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Circle b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Circle deleted file mode 100644 index 5e6a7f81e..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Circle +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_circle.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Cone b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Cone deleted file mode 100644 index 00e32cfbc..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Cone +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_cone.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_CuttingPlane b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_CuttingPlane deleted file mode 100644 index 3b46742b4..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_CuttingPlane +++ /dev/null @@ -1 +0,0 @@ -#include "3DWidget/glc_cuttingplane.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Cylinder b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Cylinder deleted file mode 100644 index ab0d0ff1f..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Cylinder +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_cylinder.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Disc b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Disc deleted file mode 100644 index a9962c239..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Disc +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_disc.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Exception b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Exception deleted file mode 100644 index 122455f0e..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Exception +++ /dev/null @@ -1 +0,0 @@ -#include "glc_exception.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Ext b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Ext deleted file mode 100644 index 98a7a701a..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Ext +++ /dev/null @@ -1 +0,0 @@ -#include "glc_ext.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Factory b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Factory deleted file mode 100644 index 5d86240d8..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Factory +++ /dev/null @@ -1 +0,0 @@ -#include "glc_factory.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_FileFormatException b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_FileFormatException deleted file mode 100644 index 35bd2c612..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_FileFormatException +++ /dev/null @@ -1 +0,0 @@ -#include "glc_fileformatexception.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_FlyMover b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_FlyMover deleted file mode 100644 index 43068977a..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_FlyMover +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_flymover.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Frustum b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Frustum deleted file mode 100644 index d19cb6005..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Frustum +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_frustum.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_GeomTools b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_GeomTools deleted file mode 100644 index 5b52e7833..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_GeomTools +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_geomtools.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Geometry b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Geometry deleted file mode 100644 index 57d8d7494..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Geometry +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_geometry.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Global b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Global deleted file mode 100644 index 51b8bbabd..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Global +++ /dev/null @@ -1 +0,0 @@ -#include "glc_global.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_ImagePlane b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_ImagePlane deleted file mode 100644 index 4ad46e629..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_ImagePlane +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_imageplane.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Interpolator b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Interpolator deleted file mode 100644 index 3cc316011..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Interpolator +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_interpolator.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Light b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Light deleted file mode 100644 index 3d90d8407..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Light +++ /dev/null @@ -1 +0,0 @@ -#include "shading/glc_light.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Line b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Line deleted file mode 100644 index e4b0dafab..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Line +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_line.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Line3d b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Line3d deleted file mode 100644 index e6b482090..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Line3d +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_line3d.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Material b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Material deleted file mode 100644 index e1357616e..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Material +++ /dev/null @@ -1 +0,0 @@ -#include "shading/glc_material.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Matrix4x4 b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Matrix4x4 deleted file mode 100644 index 4426a087e..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Matrix4x4 +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_matrix4x4.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Mesh b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Mesh deleted file mode 100644 index bf8c0657f..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Mesh +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_mesh.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Mover b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Mover deleted file mode 100644 index 5b98ad0ed..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Mover +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_mover.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_MoverController b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_MoverController deleted file mode 100644 index da22c73eb..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_MoverController +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_movercontroller.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Object b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Object deleted file mode 100644 index 86e9b2f8d..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Object +++ /dev/null @@ -1 +0,0 @@ -#include "glc_object.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Octree b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Octree deleted file mode 100644 index d9acc2869..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Octree +++ /dev/null @@ -1 +0,0 @@ -#include diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_OctreeNode b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_OctreeNode deleted file mode 100644 index a22b7056a..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_OctreeNode +++ /dev/null @@ -1 +0,0 @@ -#include diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_OpenGlException b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_OpenGlException deleted file mode 100644 index 8e1d352d6..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_OpenGlException +++ /dev/null @@ -1 +0,0 @@ -#include "glc_openglexception.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_PanMover b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_PanMover deleted file mode 100644 index 69916d0c1..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_PanMover +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_panmover.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Plane b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Plane deleted file mode 100644 index 87952f25f..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Plane +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_plane.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Point b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Point deleted file mode 100644 index 1bd38f6a6..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Point +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_point.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Point2d b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Point2d deleted file mode 100644 index 79fcf82b8..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Point2d +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_vector2d.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Point2df b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Point2df deleted file mode 100644 index 17f84c7f0..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Point2df +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_vector2df.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Point3d b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Point3d deleted file mode 100644 index 16e48ca73..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Point3d +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_vector3d.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Point3df b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Point3df deleted file mode 100644 index 70748f2f7..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Point3df +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_vector3df.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_PointSprite b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_PointSprite deleted file mode 100644 index 06dccfe6a..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_PointSprite +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_pointsprite.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Polylines b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Polylines deleted file mode 100644 index f8d0fad1f..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Polylines +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_polylines.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_PullManipulator b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_PullManipulator deleted file mode 100644 index 00a2fe680..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_PullManipulator +++ /dev/null @@ -1 +0,0 @@ -#include "3DWidget/glc_pullmanipulator.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Rectangle b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Rectangle deleted file mode 100644 index e3e28df67..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Rectangle +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_rectangle.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_RenderProperties b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_RenderProperties deleted file mode 100644 index a271ed40a..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_RenderProperties +++ /dev/null @@ -1 +0,0 @@ -#include "shading/glc_renderproperties.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_RenderStatistics b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_RenderStatistics deleted file mode 100644 index 6b89f2c50..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_RenderStatistics +++ /dev/null @@ -1 +0,0 @@ -#include "glc_renderstatistics.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Rep b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Rep deleted file mode 100644 index b798dcde1..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Rep +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_rep.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_RepCrossMover b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_RepCrossMover deleted file mode 100644 index f3b70385f..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_RepCrossMover +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_repcrossmover.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_RepFlyMover b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_RepFlyMover deleted file mode 100644 index 561a8810b..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_RepFlyMover +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_repflymover.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_RepMover b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_RepMover deleted file mode 100644 index e57e359ea..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_RepMover +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_repmover.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_RepTrackBallMover b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_RepTrackBallMover deleted file mode 100644 index 163668c62..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_RepTrackBallMover +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_reptrackballmover.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_RotationManipulator b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_RotationManipulator deleted file mode 100644 index d2e8f29c7..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_RotationManipulator +++ /dev/null @@ -1 +0,0 @@ -#include "3DWidget/glc_rotationmanipulator.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_SelectionMaterial b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_SelectionMaterial deleted file mode 100644 index 1c0690d75..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_SelectionMaterial +++ /dev/null @@ -1 +0,0 @@ -#include "shading/glc_selectionmaterial.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Shader b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Shader deleted file mode 100644 index f058f2f45..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Shader +++ /dev/null @@ -1 +0,0 @@ -#include "shading/glc_shader.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_SpacePartitioning b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_SpacePartitioning deleted file mode 100644 index 320e5e46e..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_SpacePartitioning +++ /dev/null @@ -1 +0,0 @@ -#include diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Sphere b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Sphere deleted file mode 100644 index 17d43946e..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Sphere +++ /dev/null @@ -1 +0,0 @@ -#include "geometry/glc_sphere.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_State b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_State deleted file mode 100644 index eeffae68e..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_State +++ /dev/null @@ -1 +0,0 @@ -#include "glc_state.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_StructInstance b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_StructInstance deleted file mode 100644 index 22fe9472b..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_StructInstance +++ /dev/null @@ -1 +0,0 @@ -#include diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_StructOccurence b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_StructOccurence deleted file mode 100644 index cd63dc059..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_StructOccurence +++ /dev/null @@ -1 +0,0 @@ -#include diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_StructReference b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_StructReference deleted file mode 100644 index 28b7846ec..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_StructReference +++ /dev/null @@ -1 +0,0 @@ -#include diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Texture b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Texture deleted file mode 100644 index d3f388b94..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Texture +++ /dev/null @@ -1 +0,0 @@ -#include "shading/glc_texture.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_TrackBallMover b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_TrackBallMover deleted file mode 100644 index ccfa82792..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_TrackBallMover +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_trackballmover.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_TurnTableMover b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_TurnTableMover deleted file mode 100644 index 9665a18ac..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_TurnTableMover +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_turntablemover.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Vector2d b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Vector2d deleted file mode 100644 index 79fcf82b8..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Vector2d +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_vector2d.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Vector2df b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Vector2df deleted file mode 100644 index 17f84c7f0..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Vector2df +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_vector2df.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Vector3d b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Vector3d deleted file mode 100644 index 16e48ca73..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Vector3d +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_vector3d.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Vector3df b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Vector3df deleted file mode 100644 index 70748f2f7..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Vector3df +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_vector3df.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Vector4d b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Vector4d deleted file mode 100644 index 2053b8083..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Vector4d +++ /dev/null @@ -1 +0,0 @@ -#include "maths/glc_vector4d.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Viewport b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Viewport deleted file mode 100644 index b7201a3f0..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_Viewport +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_viewport.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_World b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_World deleted file mode 100644 index 9b29e8602..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_World +++ /dev/null @@ -1 +0,0 @@ -#include "sceneGraph/glc_world.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_WorldTo3dxml b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_WorldTo3dxml deleted file mode 100644 index 2544b75dc..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_WorldTo3dxml +++ /dev/null @@ -1 +0,0 @@ -#include "io/glc_worldto3dxml.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_ZoomMover b/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_ZoomMover deleted file mode 100644 index af2a29be0..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/GLC_ZoomMover +++ /dev/null @@ -1 +0,0 @@ -#include "viewport/glc_zoommover.h" diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_3drep.h b/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_3drep.h deleted file mode 100644 index d726dd0d6..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_3drep.h +++ /dev/null @@ -1,193 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_3drep.h interface for the GLC_3DRep class. - -#ifndef GLC_3DREP_H_ -#define GLC_3DREP_H_ - -#include "glc_geometry.h" -#include "glc_rep.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_3DRep -/*! \brief GLC_3DRep : A referrence 3D Representation*/ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_3DRep : public GLC_Rep -{ - friend QDataStream &operator<<(QDataStream &, const GLC_3DRep &); - friend QDataStream &operator>>(QDataStream &, GLC_3DRep &); - -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default Constructor - GLC_3DRep(); - - //! Construct a 3DRep with a geometry - GLC_3DRep(GLC_Geometry*); - - //! Copy Constructor - GLC_3DRep(const GLC_3DRep&); - - //! Assignement operator - virtual GLC_3DRep &operator=(const GLC_3DRep&); - - //! Clone the representation - virtual GLC_Rep* clone() const; - - //! Make a deep copy of the 3DRep - virtual GLC_Rep* deepCopy() const; - - //! Destructor - virtual ~GLC_3DRep(); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the class Chunk ID - static quint32 chunckID(); - - //! Return the type of representation - virtual int type() const; - - //! Get Geometry - inline GLC_Geometry* geomAt(int index) const - { - Q_ASSERT(NULL != m_pGeomList); - Q_ASSERT(m_pGeomList->size() > index); - return m_pGeomList->at(index); - } - - //! Return the number of body - inline int numberOfBody() const - { - Q_ASSERT(NULL != m_pGeomList); - return m_pGeomList->size(); - } - - //! Return true if the representation is empty - inline virtual bool isEmpty() const - { - Q_ASSERT(NULL != m_pGeomList); - return m_pGeomList->isEmpty(); - } - - //! Return true if the rep bounding box is valid - bool boundingBoxIsValid() const; - - //! Return the 3DRep bounding Box - GLC_BoundingBox boundingBox() const; - - //! Return true if the 3DRep contains the geometry - inline bool contains(GLC_Geometry* pGeom) - {return m_pGeomList->contains(pGeom);} - - //! Return the number of faces of this 3DRep - unsigned int faceCount() const; - - //! Return number of vertex of this 3DRep - unsigned int vertexCount() const; - - //! Return number of materials of this 3DRep - unsigned int materialCount() const; - - //! Return materials Set of this 3DRep - QSet materialSet() const; - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Add Geometry to the 3DRep - inline void addGeom(GLC_Geometry* pGeom) - {m_pGeomList->append(pGeom);} - - //! Remove empty geometries and factorise materials - void clean(); - - //! Reverse geometries normals - void reverseNormals(); - - //! Load the representation and return true if success - virtual bool load(); - - //! UnLoad the representation and return true if success - virtual bool unload(); - - //! Replace the representation - virtual void replace(GLC_Rep*); - - //! Replace the specified material by a new one - void replaceMaterial(GLC_uint, GLC_Material*); - - //! Merge this 3Drep with another 3DRep - void merge(GLC_3DRep*); - - //! Copy VBO to the Client Side - void copyVboToClientSide(); - - //! Release client VBO - void releaseVboClientSide(bool update= false); - - -//@} - -////////////////////////////////////////////////////////////////////// -// private services functions -////////////////////////////////////////////////////////////////////// -private: - //! Clear current representation - void clear(); - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - //! Geometries of the 3D representation - QList* m_pGeomList; - - //! The Type of representation - int* m_pType; - - //! Class chunk id - static quint32 m_ChunkId; - -}; - -//! Non-member stream operator -QDataStream &operator<<(QDataStream &, const GLC_3DRep &); -QDataStream &operator>>(QDataStream &, GLC_3DRep &); - -#endif /* GLC_3DREP_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_arrow.h b/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_arrow.h deleted file mode 100644 index 29052e05d..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_arrow.h +++ /dev/null @@ -1,158 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_arrow.h interface for the GLC_Arrow class. - -#ifndef GLC_ARROW_H_ -#define GLC_ARROW_H_ - -#include -#include "../maths/glc_vector3d.h" -#include "glc_geometry.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Arrow -/*! \brief GLC_Arrow : OpenGL 3D Arrow*/ - -/*! An GLC_Arrow is a wire Simple Arrow*/ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Arrow : public GLC_Geometry -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Construct an arrow with the given points and view direction - GLC_Arrow(const GLC_Point3d& startPoint, const GLC_Point3d& endPoint, const GLC_Vector3d& viewDir); - - //! Copy constructor - GLC_Arrow(const GLC_Arrow& arrow); - - //! Destructor - virtual ~GLC_Arrow(); -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the arrow bounding box - const GLC_BoundingBox& boundingBox(); - - //! Return the start point of this arrow - inline GLC_Point3d startPoint() const - {return m_StartPoint;} - - //! Return the end point of this arrow - inline GLC_Point3d endPoint() const - {return m_EndPoint;} - - //! Return the lenght of the head of this arrow - inline double headLenght() const - {return m_HeadLenght;} - - //! Return the angle in radians of the head of this arrow - inline double headAngle() const - {return m_HeadAngle;} - - //! Return the viewing direction of this arrow - inline GLC_Vector3d viewDir() const - {return m_ViewDir;} - - //! Return a copy of the geometry - virtual GLC_Geometry* clone() const; - -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Set this arrow from the given arrow - GLC_Arrow& operator=(const GLC_Arrow& arrow); - - //! Set the start point of this arrow - void setStartPoint(const GLC_Point3d& startPoint); - - //! Set the end point of this arrow - void setEndPoint(const GLC_Point3d& endPoint); - - //! Set the length of the head of this arrow to the given lenght - void setHeadLength(double headLenght); - - //! Set the angle of the head of this arrow to the given angle in radians - void setHeadAngle(double headAngle); - - //! Set the view dir of this arrow to the given vector 3d - void setViewDir(const GLC_Vector3d& viewDir); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -private: - - //! Virtual interface for OpenGL Geometry set up. - /*! This Virtual function is implemented here.\n - * Throw GLC_OpenGlException*/ - virtual void glDraw(const GLC_RenderProperties&); - - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Private services Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -private: - //! Create the wire - void createWire(); - -//@} - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - //! Start point - GLC_Point3d m_StartPoint; - - //! End point - GLC_Point3d m_EndPoint; - - //! Head lenght - double m_HeadLenght; - - //! Head angle - double m_HeadAngle; - - //! The arrow viewing dir - GLC_Vector3d m_ViewDir; -}; - -#endif /* GLC_ARROW_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_box.h b/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_box.h deleted file mode 100644 index c8162e8f0..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_box.h +++ /dev/null @@ -1,149 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_box.h interface for the GLC_Box class. - -#ifndef GLC_BOX_H_ -#define GLC_BOX_H_ - - -#include "glc_mesh.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Box -/*! \brief GLC_Box : OpenGL Box*/ - -/*! An GLC_Box is a polygonal geometry\n - * It's a rectangular parallelepiped box centred at (0, 0, 0)*/ - - -////////////////////////////////////////////////////////////////////// - -class GLC_LIB_EXPORT GLC_Box : public GLC_Mesh -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Construct an GLC_Box - /*! By default, discretion is set to #GLC_POLYDISCRET*/ - GLC_Box(double, double, double); - - //! Copy constructor - GLC_Box(const GLC_Box&); - - //! Destructor - virtual ~GLC_Box(); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Get X length - inline double getLgX(void) const - {return m_dLgX;} - - //! Get Y length - inline double getLgY(void) const - {return m_dLgY;} - - //! Get Z length - inline double getLgZ(void) const - {return m_dLgZ;} - - //! return the box bounding box - virtual const GLC_BoundingBox& boundingBox(void); - - //! Return a copy of the geometry - virtual GLC_Geometry* clone() const; - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Set X length - /*! This Function invalid OpenGL display list - * LgX must be > 0*/ - void setLgX(double LgX); - - //! Set Y length - /*! This Function invalid OpenGL display list - * LgY must be > 0*/ - void setLgY(double LgY); - - //! Set Z length - /*! This Function invalid OpenGL display list - * LgZ must be > 0*/ - void setLgZ(double LgZ); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -private: - //! Virtual interface for OpenGL Geometry set up. - /*! This Virtual function is implemented here.\n - * Throw GLC_OpenGlException*/ - virtual void glDraw(const GLC_RenderProperties&); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Private services Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -private: - //! Create the box mesh - void createMeshAndWire(); - - //! Create the wire of the mesh - void createWire(); - -//@} - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - - //! X Length - double m_dLgX; - - //! Y Length - double m_dLgY; - - //! Z Length - double m_dLgZ; -}; -#endif //GLC_BOX_H_ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_bsrep.h b/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_bsrep.h deleted file mode 100644 index 382b6580c..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_bsrep.h +++ /dev/null @@ -1,155 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_bsrep.h interface for the GLC_BSRep class. - -#ifndef GLC_BSREP_H_ -#define GLC_BSREP_H_ - -#include -#include -#include -#include -#include - -#include "../glc_config.h" -#include "glc_3drep.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_BSRep -/*! \brief GLC_BSRep : The 3D Binary serialised representation*/ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_BSRep -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - GLC_BSRep(const QString& absoluteFileName= QString(), bool useCompression= true); - - //! Copy constructor - GLC_BSRep(const GLC_BSRep&); - - //! Destructor - virtual ~GLC_BSRep(); -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Return the binary representation file name - inline QString absoluteFileName() const - {return m_FileInfo.fileName();} - - //! Return true if the binary rep is up to date - bool repIsUpToDate(const QDateTime&); - - //! Load the binary rep - GLC_3DRep loadRep(); - - //! Return the bounding box of the binary representation - GLC_BoundingBox boundingBox(); - - //! Return bsrep suffix - static QString suffix(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Set the binary representation file name - void setAbsoluteFileName(const QString&); - - //! Save the GLC_3DRep in serialised binary - bool save(const GLC_3DRep&); - - //! Set the compression usage for saving a 3DREP in binary format - inline void setCompressionUsage(bool usage) - {m_UseCompression= usage;} - - //! Set the compression level if compression is used when saving in binary format - inline void setCompressionLevel(int level) - {m_CompressionLevel= level;} - -//@} - -private: -////////////////////////////////////////////////////////////////////// -// Private services function -////////////////////////////////////////////////////////////////////// - - //! Open the file - bool open(QIODevice::OpenMode); - - //! Close the file - bool close(); - - //! Write the header - void writeHeader(const QDateTime&); - - //! Check the header - bool headerIsOk(); - - //! Check the time Stamp - bool timeStampOk(const QDateTime&); - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - //! The binary rep suffix - static const QString m_Suffix; - - //! The binary rep magic number - static const QUuid m_Uuid; - - //! The binary rep version - static const quint32 m_Version; - - //! the Binary representation file informations - QFileInfo m_FileInfo; - - //! The brep file - QFile* m_pFile; - - //! The Data stream - QDataStream m_DataStream; - - //! Compress Data - bool m_UseCompression; - - //! The compression level - int m_CompressionLevel; - - //! Flag to know if the version is compatible - bool m_VersionIsCompatible; - -}; - -#endif /* GLC_BSREP_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_circle.h b/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_circle.h deleted file mode 100644 index 8e2366e78..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_circle.h +++ /dev/null @@ -1,150 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_circle.h interface for the GLC_Circle class. - -#ifndef GLC_CIRCLE_H_ -#define GLC_CIRCLE_H_ - -#include "glc_geometry.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Circle -/*! \brief GLC_Circle : OpenGL 3D Circle*/ - -/*! An GLC_Circle is a wire geometry composed of 3d lines \n - * It can be an entire circle or an arc. - * */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Circle : public GLC_Geometry -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Construct an GLC_Circle - /*! By default, discretion is set to #GLC_DISCRET*/ - GLC_Circle(const double &dRadius, double Angle= 2.0 * glc::PI); - - //! Copy constructor - GLC_Circle(const GLC_Circle& sourceCircle); - - //! Destructor - virtual ~GLC_Circle(); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Return Circle Discretion - inline int discretion() const - { return m_Discret;} - - //! Return Circle radius - inline double radius() const - {return m_Radius;} - - //! return Circle diameter - inline double diameter() const - {return m_Radius * 2.0;} - - //! return the circle bounding box - virtual const GLC_BoundingBox& boundingBox(); - - //! Return a copy of the geometry - virtual GLC_Geometry* clone() const; -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Set Circle diameter - /*! Diameter must be > 2 * EPSILON*/ - void setDiameter(double D); - - //! Set Circle Radius - /*! Radius must be > EPSILON*/ - void setRadius(double R); - - //! Set Circle discret - /*! TargetDiscret must be > 0 - * if TargetDiscret < 6 discretion is set to 6*/ - void setDiscretion(int TargetDiscret); - - //! Set Circle Angle - /*! AngleRadians must be > EPSILON and < 2 PI*/ - void setAngle(double AngleRadians); // Angle in Radians - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -private: - - //! Virtual interface for OpenGL Geometry set up. - /*! This Virtual function is implemented here.\n - * Throw GLC_OpenGlException*/ - virtual void glDraw(const GLC_RenderProperties&); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Private services Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -private: - //! Create the wire - void createWire(); - -//@} - -////////////////////////////////////////////////////////////////////// -// private members -////////////////////////////////////////////////////////////////////// -private: - //! Circle Radius - double m_Radius; - - //! Circle Discretion - int m_Discret; - - //! Angle of circle in radians - double m_Angle; - - //! Circle Step - GLuint m_Step; - -}; -#endif //GLC_CIRCLE_H_ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_cone.h b/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_cone.h deleted file mode 100644 index 2db3caabb..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_cone.h +++ /dev/null @@ -1,147 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_cone.h interface for the GLC_Cone class. - -#ifndef GLC_CONE_H_ -#define GLC_CONE_H_ - -#include "glc_mesh.h" -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Cone -/*! \brief GLC_Cone : OpenGL 3D Cone*/ - -/*! An GLC_Cone is a polygonnal geometry */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Cone : public GLC_Mesh -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Construct an GLC_Cone - /*! By default, discretion is set to #GLC_POLYDISCRET \n - * By default, Axis of Cylinder is Z Axis - * dRadius must be > 0 - * dLength must be > 0*/ - GLC_Cone(double dRadius, double dLength); - - //! Copy contructor - GLC_Cone(const GLC_Cone& sourceCone); - - //! Destructor - virtual ~GLC_Cone(); -//@} - - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the class Chunk ID - static quint32 chunckID(); - - //! Get Lenght of the Cone - inline double length(void) const - {return m_Length;} - - //! Get Radius of cone - inline double radius(void) const - {return m_Radius;} - - //! Get Cone discretion - inline int discretion(void) const - {return m_Discret;} - - //! Return a copy of the Cone - virtual GLC_Geometry* clone() const; - - //! Return the cone bounding box - virtual const GLC_BoundingBox& boundingBox(void); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Set Cone length - /*! Length must be > 0*/ - void setLength(double Length); - - //! Set Cone radius - /*! Radius must be > 0*/ - void setRadius(double Radius); - - //! Set Discretion - /*! Discretion must be > 0*/ - void setDiscretion(int TargetDiscret); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -private: - //! Virtual interface for OpenGL Geometry set up. - /*! This Virtual function is implemented here.\n - * Throw GLC_OpenGlException*/ - virtual void glDraw(const GLC_RenderProperties&); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Private services Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -private: - //! Create the cylinder mesh and wire - void createMeshAndWire(); - -//@} - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - - //! Cone's radius - double m_Radius; - - //! Cone length (Z Axis direction) - double m_Length; - - //! Cone polygon discretisation - int m_Discret; - - //! Class chunk id - static quint32 m_ChunkId; - -}; - -#endif /* GLC_CONE_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_cylinder.h b/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_cylinder.h deleted file mode 100644 index d697eb16a..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_cylinder.h +++ /dev/null @@ -1,159 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_cylinder.h interface for the GLC_Cylinder class. - -#ifndef GLC_CYLINDER_H_ -#define GLC_CYLINDER_H_ - -#include "glc_mesh.h" -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Cylinder -/*! \brief GLC_Cylinder : OpenGL 3D Cylinder*/ - -/*! An GLC_Cylinder is a polygonnal geometry \n - * It can be capped or not - * */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Cylinder : public GLC_Mesh -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Construct an GLC_Cylinder - /*! By default, discretion is set to #GLC_POLYDISCRET \n - * By default, Axis of Cylinder is Z Axis - * dRadius must be > 0 - * dLength must be > 0*/ - GLC_Cylinder(double dRadius, double dLength); - - //! Copy contructor - GLC_Cylinder(const GLC_Cylinder& sourceCylinder); - - //! Destructor - virtual ~GLC_Cylinder(); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the class Chunk ID - static quint32 chunckID(); - - //! Get Lenght of the Cylinder - inline double length(void) const - {return m_Length;} - - //! Get Radius of cylinder - inline double radius(void) const - {return m_Radius;} - - //! Get Cylinder discretion - inline int discretion(void) const - {return m_Discret;} - - //! Return a copy of the Cylinder - virtual GLC_Geometry* clone() const; - - //! return true if cylinder's ended are capped - bool EndedIsCaped() const {return m_EndedIsCaped;} - - //! return the cylinder bounding box - virtual const GLC_BoundingBox& boundingBox(void); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Set Cylinder length - /*! Length must be > 0*/ - void setLength(double Length); - - //! Set Cylinder radius - /*! Radius must be > 0*/ - void setRadius(double Radius); - - //! Set Discretion - /*! Discretion must be > 0*/ - void setDiscretion(int TargetDiscret); - - //! End Caps - void setEndedCaps(bool CapsEnded); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -private: - //! Virtual interface for OpenGL Geometry set up. - /*! This Virtual function is implemented here.\n - * Throw GLC_OpenGlException*/ - virtual void glDraw(const GLC_RenderProperties&); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Private services Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -private: - //! Create the cylinder mesh and wire - void createMeshAndWire(); - -//@} - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - - //! Cylinder's radius - double m_Radius; - - //! Cylinder length (Z Axis direction) - double m_Length; - - //! Cylinder polygon discretisation - int m_Discret; - - //! Cylinder is capped - bool m_EndedIsCaped; - - //! Class chunk id - static quint32 m_ChunkId; - -}; -#endif //GLC_CYLINDER_H_ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_disc.h b/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_disc.h deleted file mode 100644 index 48c134ee5..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_disc.h +++ /dev/null @@ -1,139 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_disc.h interface for the GLC_Disc class. - -#ifndef GLC_DISC_H_ -#define GLC_DISC_H_ - -#include "glc_mesh.h" -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Disc -/*! \brief GLC_Disc : OpenGL 3D Disc*/ - -/*! An GLC_Disc is a polygonnal disc */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Disc : public GLC_Mesh -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Construct a disc with the given radius - GLC_Disc(double radius, double angle= 2.0 * glc::PI); - - //! Copy constructor - GLC_Disc(const GLC_Disc& disc); - - //! Destructor - virtual ~GLC_Disc(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return this disc bounding box - virtual const GLC_BoundingBox& boundingBox(void); - - //! Return a copy of this Disc - virtual GLC_Geometry* clone() const; - - //! Return the radius of this disc - inline double radius() const - {return m_Radius;} - - //! Return the discretion of this disc - inline int discretion() const - {return m_Discret;} - - //! Return the angle of this disc - inline double angle() const - {return m_Angle;} - - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Set this disc from the given disc and return a reference of this disc - GLC_Disc& operator=(const GLC_Disc& disc); - - //! Set this disc radius to the given radius - void setRadius(double radius); - - //! Set this disc discretion to the given discretion - void setDiscretion(int targetDiscret); - - //! Set this disc angle in radians - void setAngle(double angle); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -private: - //! Virtual interface for OpenGL Geometry set up. - /*! This Virtual function is implemented here.\n - * Throw GLC_OpenGlException*/ - virtual void glDraw(const GLC_RenderProperties&); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Private services Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -private: - //! Create the cylinder mesh and wire - void createMeshAndWire(); - -//@} - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - //! Disc radius - double m_Radius; - - //! Disc polygon discretisation - int m_Discret; - - //! Angle of disc in radians - double m_Angle; - - //! Disc Step - GLuint m_Step; - -}; - -#endif /* GLC_DISC_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_geometry.h b/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_geometry.h deleted file mode 100644 index 5decb8966..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_geometry.h +++ /dev/null @@ -1,364 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_geometry.h Interface for the GLC_Geometry class. - -#ifndef GLC_GEOMETRY_H_ -#define GLC_GEOMETRY_H_ -#include "../shading/glc_material.h" -#include "../shading/glc_renderproperties.h" -#include "glc_wiredata.h" -#include "../glc_boundingbox.h" - -#include "glc_config.h" - -typedef QHash MaterialHash; -typedef QHash MaterialHashMap; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Geometry -/*! \brief GLC_Geometry : parent class for all geometry*/ - -/*! GLC_Geometry is a abstract class. \n \n - * Main attributes of GLC_Geometry: - * - Materials Hash table : QHash - * - * GLC_Geometry provides : - * - Method to draw Geometry : GLC_Geometry::glExecute() - * - Virtual method to overload for visual property : GLC_Geometry::glPropGeom() - * - Virtual method to load and generate Opengl textures for each materials : GLC_Geometry::glLoadTexture() - * - Virtual method to clear the content of the geometry and makes it empty : GLC_Geometry::clear() - * - * - Pure virtual method to overload for Object topology : GLC_Geometry::glDraw() - * - Pure virtual Clone method : GLC_Geometry::clone() - * - Pure virtual method to get geometry bounding box : GLC_Geometry::boundingBox() - * - * - Empty virtual method for reversing normals : GLC_Geometry::reverseNormals() - * - Empty virtual method for setting the current level of detail (between 0 and 100) : GLC_Geometry::setCurrentLod() - * - Empty virtual method to get the number of vertex : GLC_Geometry::numberOfVertex() - * - Empty virtual method to get the number of faces : GLC_Geoetry::numberOfFaces() - * - */ -////////////////////////////////////////////////////////////////////// - -class GLC_LIB_EXPORT GLC_Geometry -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - /*! - * QString Name - * const bool typeIsWire - */ - GLC_Geometry(const QString &, const bool); - //! Copy constructor - /*! - * const GLC_VboGeom geometry to copy - */ - GLC_Geometry(const GLC_Geometry&); - - //! Overload "=" operator - GLC_Geometry& operator=(const GLC_Geometry&); - - //! Destructor - virtual ~GLC_Geometry(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Get Object ID - inline GLC_uint id() const - {return m_Id;} - - //! Get Object Name - inline QString name() const - {return m_Name;} - - //! Return true if the geometry is valid - inline bool isValid(void) const - {return m_GeometryIsValid;} - - //! Return true if the geometry has material - inline bool hasMaterial() const - {return !m_MaterialHash.isEmpty();} - - //! Return first material of geometry - inline GLC_Material* firstMaterial(void) const - { - if (!m_MaterialHash.isEmpty()) - { - return m_MaterialHash.begin().value(); - } - else return NULL; - } - - //! Return the number of materials - inline int materialCount() const - {return m_MaterialHash.size();} - - //! Return the specified mesh sub material - inline GLC_Material* material(const GLC_uint key) const - {return m_MaterialHash[key];} - - //! Get materials Set - inline QSet materialSet() const - {return m_MaterialHash.values().toSet();} - - //! Get materials ID List - inline QList materialIds() const - {return m_MaterialHash.keys();} - - //! Return true if Material key is in the mesh - inline bool containsMaterial(const GLC_uint key) const - {return m_MaterialHash.contains(key);} - - //! Return the geometry bounding box - virtual const GLC_BoundingBox& boundingBox(void) = 0; - - //! Return true if the bounding box is valid - inline bool boundingBoxIsValid() const - {return NULL != m_pBoundingBox;} - - //! Clone the geometry - virtual GLC_Geometry* clone() const = 0; - - //! Get the geometry transparency - inline bool isTransparent() const - {return (m_TransparentMaterialNumber >= m_MaterialHash.size()) && hasTransparentMaterials();} - - //! Return true if the geometry contains transparent materials - inline bool hasTransparentMaterials() const - {return m_TransparentMaterialNumber > 0;} - - //! Return true if color per vertex is used - inline bool usedColorPerVertex() const - {return m_UseColorPerVertex;} - - //! Return true if the geometry type is wireframe - inline bool typeIsWire() const - {return m_IsWire;} - - //! Get the number of faces - virtual unsigned int faceCount(int lod=0) const; - - //! Get the number of vertex - virtual unsigned int VertexCount() const; - - //! Return the line width - GLfloat lineWidth() const - {return m_LineWidth;} - - //! Return this geometry wire color - inline QColor wireColor() const - {return m_WireColor;} - - //! Return true if wire data is empty - inline bool wireDataIsEmpty() const - {return m_WireData.isEmpty();} - - //! Return the wire position vector - inline GLfloatVector wirePositionVector() const - {return m_WireData.positionVector();} - - //! Return the number of wire polylines - inline int wirePolylineCount() const - {return m_WireData.polylineCount();} - - //! Return the polyline offset from the given index - inline GLuint wirePolylineOffset(int index) const - {return m_WireData.polylineOffset(index);} - - //! Return the polyline size from the given index - inline GLsizei wirePolylineSize(int index) const - {return m_WireData.polylineSize(index);} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Clear the content of the geometry and makes it empty - virtual void clear(); - - //! Replace the Master material - virtual void replaceMasterMaterial(GLC_Material*); - - //! Add material to the geometry - void addMaterial(GLC_Material *); - - //! Set the color per vertex usage - inline void colorPerVertex(const bool colorPerVertex) - { - if (m_UseColorPerVertex != colorPerVertex) - { - m_UseColorPerVertex= colorPerVertex; - m_GeometryIsValid= false; - } - } - - //! Update the transparent material number - void updateTransparentMaterialNumber(); - - //! Reverse normal - virtual void reverseNormals() {} - - //! Set the lod Index - /*! The value must be between 0 and 100*/ - virtual void setCurrentLod(const int) {} - - //! Set Geometry Id - inline void setId(const GLC_uint id) - {m_Id= id;} - - //! Set geometry name - inline void setName(const QString name) - {m_Name= name;} - - //! Add a Polyline to the geometry and returns its id - inline GLC_uint addPolyline(const GLfloatVector& vector) - {return m_WireData.addPolyline(vector);} - - //! Set Line width - inline void setLineWidth(GLfloat lineWidth) - {m_LineWidth= lineWidth;} - - //! Set this geometry wire color - void setWireColor(const QColor& color); - - //! Copy VBO to the Client Side - virtual void copyVboToClientSide(); - - //! Release client VBO - virtual void releaseVboClientSide(bool update= false); - -//@} -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Load each textures of materials - virtual void glLoadTexture(void); - - //! Virtual interface for OpenGL execution. - virtual void render(const GLC_RenderProperties&); - - -protected: - //! Virtual interface for OpenGL Geometry set up. - /*! This Virtual function have to be implemented in concrete class.*/ - virtual void glDraw(const GLC_RenderProperties&) = 0; - - //! Virtual interface for OpenGL Geometry properties. - virtual void glPropGeom(const GLC_RenderProperties&); - -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Protected services Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -protected: - //! Remove the specified material from the geometry - void removeMaterial(GLC_uint); - - //! Clear the wire data and the bounding box of this geometry - inline void clearWireAndBoundingBox() - { - delete m_pBoundingBox; - m_pBoundingBox= NULL; - m_WireData.clear(); - m_GeometryIsValid= false; - } - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Private services Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -private: - //! Clear the content of this object and makes it empty - void clearGeometry(); - -//@} - -////////////////////////////////////////////////////////////////////// -// Protected members -////////////////////////////////////////////////////////////////////// -protected: - - //! Geometry validity - bool m_GeometryIsValid; - - //! Bounding box - GLC_BoundingBox* m_pBoundingBox; - - //! Material Hash table - MaterialHash m_MaterialHash; - - //! Color per vertex usage - bool m_UseColorPerVertex; - - //! Selection state - bool m_IsSelected; - - //! Wire Data - GLC_WireData m_WireData; - - //! The wire color - QColor m_WireColor; - - //! The line width - GLfloat m_LineWidth; - - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - - //! Geometry type is wire - bool m_IsWire; - - //! The number of transparent materials - int m_TransparentMaterialNumber; - - //! The Unique id of an Geometry - /*! Generated on creation*/ - GLC_uint m_Id; - - //! Name of geometry - QString m_Name; -}; - -#endif /*GLC_GEOMETRY_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_line.h b/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_line.h deleted file mode 100644 index 5b12c9747..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_line.h +++ /dev/null @@ -1,118 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ - -#ifndef GLC_LINE_H_ -#define GLC_LINE_H_ - -#include "glc_geometry.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Line -/*! \brief GLC_Line : OpenGL 3D Line*/ - -/*! An GLC_Line is just a simple renderable 3D Line*/ -////////////////////////////////////////////////////////////////////// - -class GLC_LIB_EXPORT GLC_Line : public GLC_Geometry -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Construct an GLC_Line by to point - GLC_Line(const GLC_Point3d &, const GLC_Point3d &); - - //! Copy constructor - GLC_Line(const GLC_Line&); - - //!Default dstructor - virtual ~GLC_Line(); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Return the point1 coordinate - inline GLC_Point3d point1(void) const - {return m_Point1;} - - //! Return the point2 coordinate - inline GLC_Point3d point2(void) const - {return m_Point2;} - - //! Return the point bounding box - virtual const GLC_BoundingBox& boundingBox(void); - - //! Return a copy of the geometry - virtual GLC_Geometry* clone() const; - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Set Line coordinate by 4D point - void setCoordinate(const GLC_Point3d &, const GLC_Point3d &); - - //! Set this line color - inline void setColor(const QColor& color); - - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// - -private: - //! Virtual interface for OpenGL Geometry set up. - /*! This Virtual function is implemented here.\n*/ - virtual void glDraw(const GLC_RenderProperties&); - -//@} - -////////////////////////////////////////////////////////////////////// -// Private Member -////////////////////////////////////////////////////////////////////// - -private: - //! First point of the line - GLC_Point3d m_Point1; - - //! First point of the line - GLC_Point3d m_Point2; - -}; - -#endif /* GLC_LINE_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_lod.h b/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_lod.h deleted file mode 100644 index cadf9a3ea..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_lod.h +++ /dev/null @@ -1,184 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_lod.h interface for the GLC_Lod class. - -#ifndef GLC_LOD_H_ -#define GLC_LOD_H_ - -#include -#include "../glc_ext.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Lod -/*! \brief GLC_Lod is a Level of detail index and accuracy*/ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Lod -{ - friend QDataStream &operator<<(QDataStream &, const GLC_Lod &); - friend QDataStream &operator>>(QDataStream &, GLC_Lod &); - -public: -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default Constructor - GLC_Lod(); - - //! Construct a Lod with the specified accuracy - GLC_Lod(double accuracy); - - //! Copy constructor - GLC_Lod(const GLC_Lod&); - - //! Overload "=" operator - GLC_Lod& operator=(const GLC_Lod&); - - //!Destructor - virtual ~GLC_Lod(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the class Chunk ID - static quint32 chunckID(); - - //! Return the accuracy of the LOD - inline double accuracy() const - {return m_Accuracy;} - - //! Return The unique index Vector which contains : - /*! - * - Triangles index - * - Triangles Strips index - * - Triangles Fans index - */ - QVector indexVector() const; - - //! Return The unique index Vector handle which contains : - /*! - * - Triangles index - * - Triangles Strips index - * - Triangles Fans index - */ - inline QVector* indexVectorHandle() - { return &m_IndexVector;} - - //! Return the size of the index Vector - inline int indexVectorSize() const - {return m_IndexVector.size();} - - //! Return this lod triangle count - inline unsigned int trianglesCount() const - {return m_TrianglesCount;} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Copy IBO to the Client Side - void copyIboToClientSide(); - - //! Release client IBO - void releaseIboClientSide(bool update= false); - - //! The mesh wich use this lod is finished - inline void finishVbo() - { - m_IndexSize= m_IndexVector.size(); - m_IndexVector.clear(); - } - //! Set accuracy of the LOD - inline void setAccuracy(const double& accuracy) - {m_Accuracy= accuracy;} - - //! Given number of triangles added - inline void trianglesAdded(unsigned int count) - { - m_TrianglesCount+= count; - } - - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! IBO creation - inline void createIBO() - { - if (0 == m_IboId && !m_IndexVector.isEmpty()) - { - glGenBuffers(1, &m_IboId); - } - } - - //! Ibo Usage - inline void useIBO() const - {glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, m_IboId);} - -//@} - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - - //! The accuracy of the LOD - double m_Accuracy; - - //! The IBO ID - GLuint m_IboId; - - //! The Index Vector - QVector m_IndexVector; - - //! The Index vector size - int m_IndexSize; - - //! Lod number of faces - unsigned int m_TrianglesCount; - - //! Class chunk id - static quint32 m_ChunkId; - -}; - -//! Non-member stream operator -QDataStream &operator<<(QDataStream &, const GLC_Lod &); -QDataStream &operator>>(QDataStream &, GLC_Lod &); - -#endif /* GLC_LOD_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_mesh.h b/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_mesh.h deleted file mode 100644 index 83c5a8d70..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_mesh.h +++ /dev/null @@ -1,1098 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_mesh.h interface for the GLC_Mesh class. - -#ifndef GLC_MESH_H_ -#define GLC_MESH_H_ - -#include -#include -#include "../maths/glc_vector2df.h" -#include "../maths/glc_vector3df.h" -#include "../glc_global.h" -#include "../shading/glc_material.h" -#include "glc_meshdata.h" -#include "glc_geometry.h" -#include "glc_primitivegroup.h" -#include "../glc_state.h" -#include "../shading/glc_selectionmaterial.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Mesh -/*! \brief GLC_Mesh : OpenGL 3D Mesh*/ - -/*! An GLC_Mesh is Mesh composed of triangles, strips and fan -*/ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Mesh : public GLC_Geometry -{ - friend QDataStream &operator<<(QDataStream &, const GLC_Mesh &); - friend QDataStream &operator>>(QDataStream &, GLC_Mesh &); - -public: - typedef QHash LodPrimitiveGroups; - typedef QHash PrimitiveGroupsHash; - -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - GLC_Mesh(); - - //! Copy constructor - GLC_Mesh(const GLC_Mesh&); - - //! Overload "=" operator - GLC_Mesh& operator=(const GLC_Mesh&); - - //! Destructor - virtual ~GLC_Mesh(); -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the class Chunk ID - static quint32 chunckID(); - - //! Get number of faces - virtual unsigned int faceCount(int lod) const; - - //! Get number of vertex - virtual unsigned int VertexCount() const; - - //! Get number of normals - inline unsigned int numberOfNormals() const - { return m_NumberOfNormals;} - - //! return the mesh bounding box - virtual const GLC_BoundingBox& boundingBox(void); - - //! Return a copy of the Mesh as GLC_Geometry pointer - virtual GLC_Geometry* clone() const; - - //! Return true if color pear vertex is activated - inline bool ColorPearVertexIsAcivated() const - {return m_ColorPearVertex;} - - //! Return the number of lod - inline int lodCount() const - {return m_MeshData.lodCount();} - - //! Return the Position Vector - inline GLfloatVector positionVector() const - {return m_MeshData.positionVector();} - - //! Return the normal Vector - inline GLfloatVector normalVector() const - {return m_MeshData.normalVector();} - - //! Return the texel Vector - inline GLfloatVector texelVector() const - {return m_MeshData.texelVector();} - - //! Return true if the mesh contains triangles in the specified LOD - bool containsTriangles(int lod, GLC_uint materialId) const; - - //! Return the triangle index - /*! The specified LOD must exists and uses the specified material id*/ - QVector getTrianglesIndex(int lod, GLC_uint materialId) const; - - //! Return the number of triangles in the specified LOD - int numberOfTriangles(int lod, GLC_uint materialId) const; - - //! Return true if the mesh contains trips in the specified LOD with the specified material id - bool containsStrips(int lod, GLC_uint materialId) const; - - //! Return the strips index - /*! The specified LOD must exists and uses the specified material id*/ - QList > getStripsIndex(int lod, GLC_uint materialId) const; - - //! Return the number of strips in the specified LOD with the specified material id - int numberOfStrips(int lod, GLC_uint materialId) const; - - //! Return true if the mesh contains fans in the specified LOD with the specified material id - bool containsFans(int lod, GLC_uint materialId) const; - - //! Return the fans index - /*! The specified LOD must exists and uses the specified material id*/ - QList > getFansIndex(int lod, GLC_uint materialId) const; - - //! Return the number of fans in the specified LOD with the specified material id - int numberOfFans(int lod, GLC_uint materialId) const; - - //! Return true if the mesh contains the specified LOD - inline bool containsLod(int lod) const - {return (NULL != m_MeshData.getLod(lod));} - - //! Return true if the specified LOD conatins the specified material - inline bool lodContainsMaterial(int lod, GLC_uint materialId) const - { - if (!m_PrimitiveGroups.contains(lod))return false; - else return m_PrimitiveGroups.value(lod)->contains(materialId); - } - - //! Return the specified LOD accuracy - /*! The specified LOD must exists*/ - inline double getLodAccuracy(int lod) const - { - Q_ASSERT(containsLod(lod)); - return m_MeshData.getLod(lod)->accuracy(); - } - - //! Return the next primitive local id - inline GLC_uint nextPrimitiveLocalId() const - {return m_NextPrimitiveLocalId;} - - //! Return true if the mesh position data is empty - inline bool isEmpty() const - {return m_MeshData.isEmpty();} - - //! Return the mesh wire color - inline QColor wireColor() const - {return m_WireColor;} - -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Clear the content of the mesh and super class and makes them empty - virtual void clear(); - - //! Clear only the content off the mesh and makes it empty - void clearMeshWireAndBoundingBox(); - - //! Add vertices coordinate - inline void addVertice(const GLfloatVector& vertices) - { - *(m_MeshData.positionVectorHandle())+= vertices; - m_NumberOfVertice+= vertices.size() / 3; - } - - //! Add Normals - inline void addNormals(const GLfloatVector& normals) - { - *(m_MeshData.normalVectorHandle())+= normals; - m_NumberOfNormals+= normals.size() / 3; - } - - //! Add texel - inline void addTexels(const GLfloatVector& texels) - {*(m_MeshData.texelVectorHandle())+= texels;} - - //! Add Colors - inline void addColors(const GLfloatVector& colors) - {*(m_MeshData.colorVectorHandle())+= colors;} - - //! Add triangles - GLC_uint addTriangles(GLC_Material*, const IndexList&, const int lod= 0, double accuracy= 0.0); - - //! Add triangles Strip and return his id - GLC_uint addTrianglesStrip(GLC_Material*, const IndexList&, const int lod= 0, double accuracy= 0.0); - - //! Add triangles Fan and return his id - GLC_uint addTrianglesFan(GLC_Material*, const IndexList&, const int lod= 0, double accuracy= 0.0); - - //! Reverse mesh normal - void reverseNormals(); - - //! Set color per vertex flag to use indexed color - inline void setColorPearVertex(bool flag) - {m_ColorPearVertex= flag;} - - //! Copy vertex list in a vector list for Vertex Array Use - void finish(); - - //! Set the lod Index - virtual void setCurrentLod(const int); - - //! Replace the Master material - virtual void replaceMasterMaterial(GLC_Material*); - - //! Replace the material specified by id with another one - void replaceMaterial(const GLC_uint, GLC_Material*); - - //! Set the mesh next primitive local id - inline void setNextPrimitiveLocalId(GLC_uint id) - {m_NextPrimitiveLocalId= id;} - - //! Set the mesh wire color - inline void setWireColor(const QColor& color) - {m_WireColor= color;} - - //! Copy VBO to the Client Side - virtual void copyVboToClientSide(); - - //! Release client VBO - virtual void releaseVboClientSide(bool update); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Binary serialisation Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Load the mesh from binary data stream - /*! The MaterialHash contains a hash table of GLC_Material that the mesh can use - * The QHash is used to map serialised material ID to the new - * constructed materials - */ - void loadFromDataStream(QDataStream&, const MaterialHash&, const QHash&); - - //! Save the mesh to binary data stream - void saveToDataStream(QDataStream&) const; - -//@} -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -protected: - - //! Virtual interface for OpenGL Geometry set up. - /*! This Virtual function is implemented here.*/ - virtual void glDraw(const GLC_RenderProperties&); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Private services Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -private: - //! Set the current material - GLC_uint setCurrentMaterial(GLC_Material*, const int, double); - - //! Fill VBOs and IBOs - void fillVbosAndIbos(); - - //! Set primitive group offset after loading mesh from binary - void finishSerialized(); - - //! Move Indexs from the primitive groups to the mesh Data LOD and Set IBOs offsets - void finishVbo(); - - //! Move Indexs from the primitive groups to the mesh Data LOD and Set Index offsets - void finishNonVbo(); - - //! Use VBO to Draw primitives from the specified GLC_PrimitiveGroup - inline void vboDrawPrimitivesOf(GLC_PrimitiveGroup*); - - //! Use Vertex Array to Draw primitives from the specified GLC_PrimitiveGroup - inline void vertexArrayDrawPrimitivesOf(GLC_PrimitiveGroup*); - - //! Use VBO to Draw primitives in selection mode from the specified GLC_PrimitiveGroup - inline void vboDrawInSelectionModePrimitivesOf(GLC_PrimitiveGroup*); - - //! Use Vertex Array to Draw primitives in selection mode from the specified GLC_PrimitiveGroup - inline void vertexArrayDrawInSelectionModePrimitivesOf(GLC_PrimitiveGroup*); - - //! Use VBO to Draw primitives with specific materials from the specified GLC_PrimitiveGroup - inline void vboDrawPrimitivesGroupOf(GLC_PrimitiveGroup*, GLC_Material*, bool, bool, QHash*); - - //! Use Vertex Array to Draw primitives with specific materials from the specified GLC_PrimitiveGroup - inline void vertexArrayDrawPrimitivesGroupOf(GLC_PrimitiveGroup*, GLC_Material*, bool, bool, QHash*); - - //! Use VBO to Draw primitives with selection materials from the specified GLC_PrimitiveGroup - inline void vboDrawSelectedPrimitivesGroupOf(GLC_PrimitiveGroup*, GLC_Material*, bool, bool, const GLC_RenderProperties&); - - //! Use Vertex Array to Draw primitives with selection materials from the specified GLC_PrimitiveGroup - inline void vertexArrayDrawSelectedPrimitivesGroupOf(GLC_PrimitiveGroup*, GLC_Material*, bool, bool, const GLC_RenderProperties&); - - //! Activate mesh VBOs and IBO of the current LOD - inline void activateVboAndIbo(); - - //! Activate vertex Array - inline void activateVertexArray(); - - //! The normal display loop - void normalRenderLoop(const GLC_RenderProperties&, bool); - - //! The overwrite material render loop - void OverwriteMaterialRenderLoop(const GLC_RenderProperties&, bool); - - //! The overwrite transparency render loop - void OverwriteTransparencyRenderLoop(const GLC_RenderProperties&, bool); - - //! The body selection render loop - void bodySelectionRenderLoop(bool); - - //! The primitive selection render loop - void primitiveSelectionRenderLoop(bool); - - //! The primitive render loop - void primitiveRenderLoop(const GLC_RenderProperties&, bool); - - //! The primitive Selected render loop - void primitiveSelectedRenderLoop(const GLC_RenderProperties&, bool); - -//@} - - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - //! The next primitive local id - GLC_uint m_NextPrimitiveLocalId; - - //! The hash table of Hash table of primitive group - PrimitiveGroupsHash m_PrimitiveGroups; - - //! The default material Id - GLC_uint m_DefaultMaterialId; - - //! Mesh number of vertice - unsigned int m_NumberOfVertice; - - //! Mesh number of normals - unsigned int m_NumberOfNormals; - - //! Color pear vertex - bool m_ColorPearVertex; - - //! Data of the mesh (Bulk Data + LOD with indexs) - GLC_MeshData m_MeshData; - - //! The current LOD index - int m_CurrentLod; - - //! Class chunk id - static quint32 m_ChunkId; - -}; - -// Inline functions - -// Use VBO to Draw triangles from the specified GLC_PrimitiveGroup -void GLC_Mesh::vboDrawPrimitivesOf(GLC_PrimitiveGroup* pCurrentGroup) -{ - // Draw triangles - if (pCurrentGroup->containsTriangles()) - { - glDrawElements(GL_TRIANGLES, pCurrentGroup->trianglesIndexSize(), GL_UNSIGNED_INT, pCurrentGroup->trianglesIndexOffset()); - } - - // Draw Triangles strip - if (pCurrentGroup->containsStrip()) - { - const GLsizei stripsCount= static_cast(pCurrentGroup->stripsOffset().size()); - for (GLint i= 0; i < stripsCount; ++i) - { - glDrawElements(GL_TRIANGLE_STRIP, pCurrentGroup->stripsSizes().at(i), GL_UNSIGNED_INT, pCurrentGroup->stripsOffset().at(i)); - } - } - - // Draw Triangles fan - if (pCurrentGroup->containsFan()) - { - const GLsizei fansCount= static_cast(pCurrentGroup->fansOffset().size()); - for (GLint i= 0; i < fansCount; ++i) - { - glDrawElements(GL_TRIANGLE_FAN, pCurrentGroup->fansSizes().at(i), GL_UNSIGNED_INT, pCurrentGroup->fansOffset().at(i)); - } - } -} -// Use Vertex Array to Draw triangles from the specified GLC_PrimitiveGroup -void GLC_Mesh::vertexArrayDrawPrimitivesOf(GLC_PrimitiveGroup* pCurrentGroup) -{ - // Draw triangles - if (pCurrentGroup->containsTriangles()) - { - GLvoid* pOffset= &(m_MeshData.indexVectorHandle(m_CurrentLod)->data()[pCurrentGroup->trianglesIndexOffseti()]); - glDrawElements(GL_TRIANGLES, pCurrentGroup->trianglesIndexSize(), GL_UNSIGNED_INT, pOffset); - } - - // Draw Triangles strip - if (pCurrentGroup->containsStrip()) - { - const GLsizei stripsCount= static_cast(pCurrentGroup->stripsOffseti().size()); - for (GLint i= 0; i < stripsCount; ++i) - { - GLvoid* pOffset= &m_MeshData.indexVectorHandle(m_CurrentLod)->data()[pCurrentGroup->stripsOffseti().at(i)]; - glDrawElements(GL_TRIANGLE_STRIP, pCurrentGroup->stripsSizes().at(i), GL_UNSIGNED_INT, pOffset); - } - } - - // Draw Triangles fan - if (pCurrentGroup->containsFan()) - { - const GLsizei fansCount= static_cast(pCurrentGroup->fansOffseti().size()); - for (GLint i= 0; i < fansCount; ++i) - { - GLvoid* pOffset= &m_MeshData.indexVectorHandle(m_CurrentLod)->data()[pCurrentGroup->fansOffseti().at(i)]; - glDrawElements(GL_TRIANGLE_FAN, pCurrentGroup->fansSizes().at(i), GL_UNSIGNED_INT, pOffset); - } - } -} - -// Use VBO to Draw primitives in selection mode from the specified GLC_PrimitiveGroup -void GLC_Mesh::vboDrawInSelectionModePrimitivesOf(GLC_PrimitiveGroup* pCurrentGroup) -{ - GLubyte colorId[4]; - // Draw triangles - if (pCurrentGroup->containsTrianglesGroupId()) - { - const GLsizei trianglesGroupCount= static_cast(pCurrentGroup->trianglesGroupOffset().size()); - for (GLint i= 0; i < trianglesGroupCount; ++i) - { - glc::encodeRgbId(pCurrentGroup->triangleGroupId(i), colorId); - glColor3ubv(colorId); - glDrawElements(GL_TRIANGLES, pCurrentGroup->trianglesIndexSizes().at(i), GL_UNSIGNED_INT, pCurrentGroup->trianglesGroupOffset().at(i)); - } - } - - // Draw Triangles strip - if (pCurrentGroup->containsStripGroupId()) - { - const GLsizei stripsCount= static_cast(pCurrentGroup->stripsOffset().size()); - for (GLint i= 0; i < stripsCount; ++i) - { - glc::encodeRgbId(pCurrentGroup->stripGroupId(i), colorId); - glColor3ubv(colorId); - glDrawElements(GL_TRIANGLE_STRIP, pCurrentGroup->stripsSizes().at(i), GL_UNSIGNED_INT, pCurrentGroup->stripsOffset().at(i)); - } - } - - // Draw Triangles fan - if (pCurrentGroup->containsFanGroupId()) - { - const GLsizei fansCount= static_cast(pCurrentGroup->fansOffset().size()); - for (GLint i= 0; i < fansCount; ++i) - { - glc::encodeRgbId(pCurrentGroup->fanGroupId(i), colorId); - glColor3ubv(colorId); - - glDrawElements(GL_TRIANGLE_FAN, pCurrentGroup->fansSizes().at(i), GL_UNSIGNED_INT, pCurrentGroup->fansOffset().at(i)); - } - } - -} - -// Use Vertex Array to Draw primitives in selection mode from the specified GLC_PrimitiveGroup -void GLC_Mesh::vertexArrayDrawInSelectionModePrimitivesOf(GLC_PrimitiveGroup* pCurrentGroup) -{ - GLubyte colorId[4]; - // Draw triangles - if (pCurrentGroup->containsTrianglesGroupId()) - { - const GLsizei trianglesGroupCount= static_cast(pCurrentGroup->trianglesGroupOffseti().size()); - for (GLint i= 0; i < trianglesGroupCount; ++i) - { - glc::encodeRgbId(pCurrentGroup->triangleGroupId(i), colorId); - glColor3ubv(colorId); - - GLvoid* pOffset= &m_MeshData.indexVectorHandle(m_CurrentLod)->data()[pCurrentGroup->trianglesGroupOffseti().at(i)]; - glDrawElements(GL_TRIANGLES, pCurrentGroup->trianglesIndexSizes().at(i), GL_UNSIGNED_INT, pOffset); - } - - GLvoid* pOffset= &(m_MeshData.indexVectorHandle(m_CurrentLod)->data()[pCurrentGroup->trianglesIndexOffseti()]); - glDrawElements(GL_TRIANGLES, pCurrentGroup->trianglesIndexSize(), GL_UNSIGNED_INT, pOffset); - } - - // Draw Triangles strip - if (pCurrentGroup->containsStripGroupId()) - { - const GLsizei stripsCount= static_cast(pCurrentGroup->stripsOffseti().size()); - for (GLint i= 0; i < stripsCount; ++i) - { - glc::encodeRgbId(pCurrentGroup->stripGroupId(i), colorId); - glColor3ubv(colorId); - - GLvoid* pOffset= &m_MeshData.indexVectorHandle(m_CurrentLod)->data()[pCurrentGroup->stripsOffseti().at(i)]; - glDrawElements(GL_TRIANGLE_STRIP, pCurrentGroup->stripsSizes().at(i), GL_UNSIGNED_INT, pOffset); - } - } - - // Draw Triangles fan - if (pCurrentGroup->containsFanGroupId()) - { - const GLsizei fansCount= static_cast(pCurrentGroup->fansOffseti().size()); - for (GLint i= 0; i < fansCount; ++i) - { - glc::encodeRgbId(pCurrentGroup->fanGroupId(i), colorId); - glColor3ubv(colorId); - - GLvoid* pOffset= &m_MeshData.indexVectorHandle(m_CurrentLod)->data()[pCurrentGroup->fansOffseti().at(i)]; - glDrawElements(GL_TRIANGLE_FAN, pCurrentGroup->fansSizes().at(i), GL_UNSIGNED_INT, pOffset); - } - } -} - -// Use VBO to Draw primitives with specific materials from the specified GLC_PrimitiveGroup -void GLC_Mesh::vboDrawPrimitivesGroupOf(GLC_PrimitiveGroup* pCurrentGroup, GLC_Material* pCurrentMaterial, bool materialIsRenderable - , bool isTransparent, QHash* pMaterialHash) -{ - GLC_Material* pCurrentLocalMaterial= pCurrentMaterial; - // Draw triangles - if (pCurrentGroup->containsTriangles()) - { - Q_ASSERT(pCurrentGroup->containsTrianglesGroupId()); - const GLsizei trianglesGroupCount= static_cast(pCurrentGroup->trianglesGroupOffset().size()); - for (GLint i= 0; i < trianglesGroupCount; ++i) - { - GLC_uint currentPrimitiveId= pCurrentGroup->triangleGroupId(i); - if (pMaterialHash->contains(currentPrimitiveId)) - { - if (pCurrentLocalMaterial != pMaterialHash->value(currentPrimitiveId)) - { - pCurrentLocalMaterial= pMaterialHash->value(currentPrimitiveId); - if (pCurrentLocalMaterial->isTransparent() == isTransparent) pCurrentLocalMaterial->glExecute(); - } - } - else if (pCurrentLocalMaterial != pCurrentMaterial) - { - pCurrentLocalMaterial= pCurrentMaterial; - if (materialIsRenderable) pCurrentLocalMaterial->glExecute(); - } - if (pCurrentLocalMaterial->isTransparent() == isTransparent) - { - glDrawElements(GL_TRIANGLES, pCurrentGroup->trianglesIndexSizes().at(i), GL_UNSIGNED_INT, pCurrentGroup->trianglesGroupOffset().at(i)); - } - } - } - - // Draw Triangles strip - if (pCurrentGroup->containsStrip()) - { - Q_ASSERT(pCurrentGroup->containsStripGroupId()); - const GLsizei stripsCount= static_cast(pCurrentGroup->stripsOffset().size()); - for (GLint i= 0; i < stripsCount; ++i) - { - GLC_uint currentPrimitiveId= pCurrentGroup->stripGroupId(i); - if (pMaterialHash->contains(currentPrimitiveId)) - { - if (pCurrentLocalMaterial != pMaterialHash->value(currentPrimitiveId)) - { - pCurrentLocalMaterial= pMaterialHash->value(currentPrimitiveId); - if (pCurrentLocalMaterial->isTransparent() == isTransparent) pCurrentLocalMaterial->glExecute(); - } - } - else if (pCurrentLocalMaterial != pCurrentMaterial) - { - pCurrentLocalMaterial= pCurrentMaterial; - if (materialIsRenderable) pCurrentLocalMaterial->glExecute(); - } - if (pCurrentLocalMaterial->isTransparent() == isTransparent) - { - glDrawElements(GL_TRIANGLE_STRIP, pCurrentGroup->stripsSizes().at(i), GL_UNSIGNED_INT, pCurrentGroup->stripsOffset().at(i)); - } - } - } - - // Draw Triangles fan - if (pCurrentGroup->containsFan()) - { - Q_ASSERT(pCurrentGroup->containsFanGroupId()); - const GLsizei fansCount= static_cast(pCurrentGroup->fansOffset().size()); - for (GLint i= 0; i < fansCount; ++i) - { - GLC_uint currentPrimitiveId= pCurrentGroup->fanGroupId(i); - if (pMaterialHash->contains(currentPrimitiveId)) - { - if (pCurrentLocalMaterial != pMaterialHash->value(currentPrimitiveId)) - { - pCurrentLocalMaterial= pMaterialHash->value(currentPrimitiveId); - if (pCurrentLocalMaterial->isTransparent() == isTransparent) pCurrentLocalMaterial->glExecute(); - } - } - else if (pCurrentLocalMaterial != pCurrentMaterial) - { - pCurrentLocalMaterial= pCurrentMaterial; - if (materialIsRenderable) pCurrentLocalMaterial->glExecute(); - } - if (pCurrentLocalMaterial->isTransparent() == isTransparent) - { - glDrawElements(GL_TRIANGLE_FAN, pCurrentGroup->fansSizes().at(i), GL_UNSIGNED_INT, pCurrentGroup->fansOffset().at(i)); - } - } - } - -} - -// Use Vertex Array to Draw primitives with specific materials from the specified GLC_PrimitiveGroup -void GLC_Mesh::vertexArrayDrawPrimitivesGroupOf(GLC_PrimitiveGroup* pCurrentGroup, GLC_Material* pCurrentMaterial, bool materialIsRenderable - , bool isTransparent, QHash* pMaterialHash) -{ - GLC_Material* pCurrentLocalMaterial= pCurrentMaterial; - // Draw triangles - if (pCurrentGroup->containsTriangles()) - { - Q_ASSERT(pCurrentGroup->containsTrianglesGroupId()); - const GLsizei trianglesGroupCount= static_cast(pCurrentGroup->trianglesGroupOffseti().size()); - for (GLint i= 0; i < trianglesGroupCount; ++i) - { - GLC_uint currentPrimitiveId= pCurrentGroup->triangleGroupId(i); - if (pMaterialHash->contains(currentPrimitiveId)) - { - if (pCurrentLocalMaterial != pMaterialHash->value(currentPrimitiveId)) - { - pCurrentLocalMaterial= pMaterialHash->value(currentPrimitiveId); - if (pCurrentLocalMaterial->isTransparent() == isTransparent) pCurrentLocalMaterial->glExecute(); - } - } - else if (pCurrentLocalMaterial != pCurrentMaterial) - { - pCurrentLocalMaterial= pCurrentMaterial; - if (materialIsRenderable) pCurrentLocalMaterial->glExecute(); - } - if (pCurrentLocalMaterial->isTransparent() == isTransparent) - { - GLvoid* pOffset= &m_MeshData.indexVectorHandle(m_CurrentLod)->data()[pCurrentGroup->trianglesGroupOffseti().at(i)]; - glDrawElements(GL_TRIANGLES, pCurrentGroup->trianglesIndexSizes().at(i), GL_UNSIGNED_INT, pOffset); - } - } - } - - // Draw Triangles strip - if (pCurrentGroup->containsStrip()) - { - Q_ASSERT(pCurrentGroup->containsStripGroupId()); - const GLsizei stripsCount= static_cast(pCurrentGroup->stripsOffseti().size()); - for (GLint i= 0; i < stripsCount; ++i) - { - GLC_uint currentPrimitiveId= pCurrentGroup->stripGroupId(i); - if (pMaterialHash->contains(currentPrimitiveId)) - { - if (pCurrentLocalMaterial != pMaterialHash->value(currentPrimitiveId)) - { - pCurrentLocalMaterial= pMaterialHash->value(currentPrimitiveId); - if (pCurrentLocalMaterial->isTransparent() == isTransparent) pCurrentLocalMaterial->glExecute(); - } - } - else if (pCurrentLocalMaterial != pCurrentMaterial) - { - pCurrentLocalMaterial= pCurrentMaterial; - if (materialIsRenderable) pCurrentLocalMaterial->glExecute(); - } - if (pCurrentLocalMaterial->isTransparent() == isTransparent) - { - GLvoid* pOffset= &m_MeshData.indexVectorHandle(m_CurrentLod)->data()[pCurrentGroup->stripsOffseti().at(i)]; - glDrawElements(GL_TRIANGLE_STRIP, pCurrentGroup->stripsSizes().at(i), GL_UNSIGNED_INT, pOffset); - } - } - } - - // Draw Triangles fan - if (pCurrentGroup->containsFan()) - { - Q_ASSERT(pCurrentGroup->containsFanGroupId()); - const GLsizei fansCount= static_cast(pCurrentGroup->fansOffseti().size()); - for (GLint i= 0; i < fansCount; ++i) - { - GLC_uint currentPrimitiveId= pCurrentGroup->fanGroupId(i); - if (pMaterialHash->contains(currentPrimitiveId)) - { - if (pCurrentLocalMaterial != pMaterialHash->value(currentPrimitiveId)) - { - pCurrentLocalMaterial= pMaterialHash->value(currentPrimitiveId); - if (pCurrentLocalMaterial->isTransparent() == isTransparent) pCurrentLocalMaterial->glExecute(); - } - } - else if (pCurrentLocalMaterial != pCurrentMaterial) - { - pCurrentLocalMaterial= pCurrentMaterial; - if (materialIsRenderable) pCurrentLocalMaterial->glExecute(); - } - if (pCurrentLocalMaterial->isTransparent() == isTransparent) - { - GLvoid* pOffset= &m_MeshData.indexVectorHandle(m_CurrentLod)->data()[pCurrentGroup->fansOffseti().at(i)]; - glDrawElements(GL_TRIANGLE_FAN, pCurrentGroup->fansSizes().at(i), GL_UNSIGNED_INT, pOffset); - } - } - } - -} - -// Use VBO to Draw primitives with specific materials from the specified GLC_PrimitiveGroup -void GLC_Mesh::vboDrawSelectedPrimitivesGroupOf(GLC_PrimitiveGroup* pCurrentGroup, GLC_Material* pCurrentMaterial, bool materialIsRenderable - , bool isTransparent, const GLC_RenderProperties& renderProperties) -{ - QSet* pSelectedPrimitive= renderProperties.setOfSelectedPrimitivesId(); - Q_ASSERT(NULL != pSelectedPrimitive); - - QHash* pMaterialHash= NULL; - if (!renderProperties.hashOfOverwritePrimitiveMaterialsIsEmpty()) - { - pMaterialHash= renderProperties.hashOfOverwritePrimitiveMaterials(); - } - - GLC_Material* pCurrentLocalMaterial= pCurrentMaterial; - // Draw triangles - if (pCurrentGroup->containsTriangles()) - { - Q_ASSERT(pCurrentGroup->containsTrianglesGroupId()); - const GLsizei trianglesGroupCount= static_cast(pCurrentGroup->trianglesGroupOffset().size()); - for (GLint i= 0; i < trianglesGroupCount; ++i) - { - GLC_uint currentPrimitiveId= pCurrentGroup->triangleGroupId(i); - if (pSelectedPrimitive->contains(currentPrimitiveId)) - { - if (!isTransparent) - { - GLC_SelectionMaterial::glExecute(); - pCurrentLocalMaterial= NULL; - glDrawElements(GL_TRIANGLES, pCurrentGroup->trianglesIndexSizes().at(i), GL_UNSIGNED_INT, pCurrentGroup->trianglesGroupOffset().at(i)); - } - } - else if ((NULL != pMaterialHash) && pMaterialHash->contains(currentPrimitiveId)) - { - if (pMaterialHash->value(currentPrimitiveId)->isTransparent() == isTransparent) - { - GLC_Material* pMat= pMaterialHash->value(currentPrimitiveId); - if (pMat != pCurrentLocalMaterial) - { - pCurrentLocalMaterial= pMat; - pCurrentLocalMaterial->glExecute(); - } - glDrawElements(GL_TRIANGLES, pCurrentGroup->trianglesIndexSizes().at(i), GL_UNSIGNED_INT, pCurrentGroup->trianglesGroupOffset().at(i)); - } - - } - else if (materialIsRenderable) - { - if (pCurrentLocalMaterial != pCurrentMaterial) - { - pCurrentLocalMaterial= pCurrentMaterial; - pCurrentLocalMaterial->glExecute(); - } - glDrawElements(GL_TRIANGLES, pCurrentGroup->trianglesIndexSizes().at(i), GL_UNSIGNED_INT, pCurrentGroup->trianglesGroupOffset().at(i)); - } - } - } - - // Draw Triangles strip - if (pCurrentGroup->containsStrip()) - { - Q_ASSERT(pCurrentGroup->containsStripGroupId()); - const GLsizei stripsCount= static_cast(pCurrentGroup->stripsOffset().size()); - for (GLint i= 0; i < stripsCount; ++i) - { - GLC_uint currentPrimitiveId= pCurrentGroup->stripGroupId(i); - if (pSelectedPrimitive->contains(currentPrimitiveId)) - { - if (!isTransparent) - { - GLC_SelectionMaterial::glExecute(); - pCurrentLocalMaterial= NULL; - glDrawElements(GL_TRIANGLE_STRIP, pCurrentGroup->stripsSizes().at(i), GL_UNSIGNED_INT, pCurrentGroup->stripsOffset().at(i)); - } - } - else if ((NULL != pMaterialHash) && pMaterialHash->contains(currentPrimitiveId)) - { - if (pMaterialHash->value(currentPrimitiveId)->isTransparent() == isTransparent) - { - GLC_Material* pMat= pMaterialHash->value(currentPrimitiveId); - if (pMat != pCurrentLocalMaterial) - { - pCurrentLocalMaterial= pMat; - pCurrentLocalMaterial->glExecute(); - } - glDrawElements(GL_TRIANGLE_STRIP, pCurrentGroup->stripsSizes().at(i), GL_UNSIGNED_INT, pCurrentGroup->stripsOffset().at(i)); - } - - } - else if (materialIsRenderable) - { - if (pCurrentLocalMaterial != pCurrentMaterial) - { - pCurrentLocalMaterial= pCurrentMaterial; - pCurrentLocalMaterial->glExecute(); - } - glDrawElements(GL_TRIANGLE_STRIP, pCurrentGroup->stripsSizes().at(i), GL_UNSIGNED_INT, pCurrentGroup->stripsOffset().at(i)); - } - } - } - - // Draw Triangles fan - if (pCurrentGroup->containsFan()) - { - Q_ASSERT(pCurrentGroup->containsFanGroupId()); - const GLsizei fansCount= static_cast(pCurrentGroup->fansOffset().size()); - for (GLint i= 0; i < fansCount; ++i) - { - GLC_uint currentPrimitiveId= pCurrentGroup->fanGroupId(i); - if (pSelectedPrimitive->contains(currentPrimitiveId)) - { - if (!isTransparent) - { - GLC_SelectionMaterial::glExecute(); - pCurrentLocalMaterial= NULL; - glDrawElements(GL_TRIANGLE_FAN, pCurrentGroup->fansSizes().at(i), GL_UNSIGNED_INT, pCurrentGroup->fansOffset().at(i)); - } - } - else if ((NULL != pMaterialHash) && pMaterialHash->contains(currentPrimitiveId)) - { - if (pMaterialHash->value(currentPrimitiveId)->isTransparent() == isTransparent) - { - GLC_Material* pMat= pMaterialHash->value(currentPrimitiveId); - if (pMat != pCurrentLocalMaterial) - { - pCurrentLocalMaterial= pMat; - pCurrentLocalMaterial->glExecute(); - } - glDrawElements(GL_TRIANGLE_FAN, pCurrentGroup->fansSizes().at(i), GL_UNSIGNED_INT, pCurrentGroup->fansOffset().at(i)); - } - - } - else if (materialIsRenderable) - { - if (pCurrentLocalMaterial != pCurrentMaterial) - { - pCurrentLocalMaterial= pCurrentMaterial; - pCurrentLocalMaterial->glExecute(); - } - glDrawElements(GL_TRIANGLE_FAN, pCurrentGroup->fansSizes().at(i), GL_UNSIGNED_INT, pCurrentGroup->fansOffset().at(i)); - } - } - } - -} - -// Use Vertex Array to Draw primitives with specific materials from the specified GLC_PrimitiveGroup -void GLC_Mesh::vertexArrayDrawSelectedPrimitivesGroupOf(GLC_PrimitiveGroup* pCurrentGroup, GLC_Material* pCurrentMaterial, bool materialIsRenderable - , bool isTransparent, const GLC_RenderProperties& renderProperties) -{ - QSet* pSelectedPrimitive= renderProperties.setOfSelectedPrimitivesId(); - Q_ASSERT(NULL != pSelectedPrimitive); - - QHash* pMaterialHash= NULL; - if (!renderProperties.hashOfOverwritePrimitiveMaterialsIsEmpty()) - { - pMaterialHash= renderProperties.hashOfOverwritePrimitiveMaterials(); - } - - GLC_Material* pCurrentLocalMaterial= pCurrentMaterial; - // Draw triangles - if (pCurrentGroup->containsTriangles()) - { - Q_ASSERT(pCurrentGroup->containsTrianglesGroupId()); - const GLsizei trianglesGroupCount= static_cast(pCurrentGroup->trianglesGroupOffseti().size()); - for (GLint i= 0; i < trianglesGroupCount; ++i) - { - GLC_uint currentPrimitiveId= pCurrentGroup->triangleGroupId(i); - if (pSelectedPrimitive->contains(currentPrimitiveId)) - { - if (!isTransparent) - { - GLC_SelectionMaterial::glExecute(); - pCurrentLocalMaterial= NULL; - GLvoid* pOffset= &m_MeshData.indexVectorHandle(m_CurrentLod)->data()[pCurrentGroup->trianglesGroupOffseti().at(i)]; - glDrawElements(GL_TRIANGLES, pCurrentGroup->trianglesIndexSizes().at(i), GL_UNSIGNED_INT, pOffset); - } - } - else if ((NULL != pMaterialHash) && pMaterialHash->contains(currentPrimitiveId)) - { - if (pMaterialHash->value(currentPrimitiveId)->isTransparent() == isTransparent) - { - GLC_Material* pMat= pMaterialHash->value(currentPrimitiveId); - if (pMat != pCurrentLocalMaterial) - { - pCurrentLocalMaterial= pMat; - pCurrentLocalMaterial->glExecute(); - } - GLvoid* pOffset= &m_MeshData.indexVectorHandle(m_CurrentLod)->data()[pCurrentGroup->trianglesGroupOffseti().at(i)]; - glDrawElements(GL_TRIANGLES, pCurrentGroup->trianglesIndexSizes().at(i), GL_UNSIGNED_INT, pOffset); - } - - } - else if (materialIsRenderable) - { - if (pCurrentLocalMaterial != pCurrentMaterial) - { - pCurrentLocalMaterial= pCurrentMaterial; - pCurrentLocalMaterial->glExecute(); - } - GLvoid* pOffset= &m_MeshData.indexVectorHandle(m_CurrentLod)->data()[pCurrentGroup->trianglesGroupOffseti().at(i)]; - glDrawElements(GL_TRIANGLES, pCurrentGroup->trianglesIndexSizes().at(i), GL_UNSIGNED_INT, pOffset); - } - } - } - - // Draw Triangles strip - if (pCurrentGroup->containsStrip()) - { - Q_ASSERT(pCurrentGroup->containsStripGroupId()); - const GLsizei stripsCount= static_cast(pCurrentGroup->stripsOffseti().size()); - for (GLint i= 0; i < stripsCount; ++i) - { - GLC_uint currentPrimitiveId= pCurrentGroup->stripGroupId(i); - if (pSelectedPrimitive->contains(currentPrimitiveId)) - { - if (!isTransparent) - { - GLC_SelectionMaterial::glExecute(); - pCurrentLocalMaterial= NULL; - GLvoid* pOffset= &m_MeshData.indexVectorHandle(m_CurrentLod)->data()[pCurrentGroup->stripsOffseti().at(i)]; - glDrawElements(GL_TRIANGLE_STRIP, pCurrentGroup->stripsSizes().at(i), GL_UNSIGNED_INT, pOffset); - } - } - else if ((NULL != pMaterialHash) && pMaterialHash->contains(currentPrimitiveId)) - { - if (pMaterialHash->value(currentPrimitiveId)->isTransparent() == isTransparent) - { - GLC_Material* pMat= pMaterialHash->value(currentPrimitiveId); - if (pMat != pCurrentLocalMaterial) - { - pCurrentLocalMaterial= pMat; - pCurrentLocalMaterial->glExecute(); - } - GLvoid* pOffset= &m_MeshData.indexVectorHandle(m_CurrentLod)->data()[pCurrentGroup->stripsOffseti().at(i)]; - glDrawElements(GL_TRIANGLE_STRIP, pCurrentGroup->stripsSizes().at(i), GL_UNSIGNED_INT, pOffset); - } - - } - else if (materialIsRenderable) - { - if (pCurrentLocalMaterial != pCurrentMaterial) - { - pCurrentLocalMaterial= pCurrentMaterial; - pCurrentLocalMaterial->glExecute(); - } - GLvoid* pOffset= &m_MeshData.indexVectorHandle(m_CurrentLod)->data()[pCurrentGroup->stripsOffseti().at(i)]; - glDrawElements(GL_TRIANGLE_STRIP, pCurrentGroup->stripsSizes().at(i), GL_UNSIGNED_INT, pOffset); - } - } - } - - // Draw Triangles fan - if (pCurrentGroup->containsFan()) - { - Q_ASSERT(pCurrentGroup->containsFanGroupId()); - const GLsizei fansCount= static_cast(pCurrentGroup->fansOffseti().size()); - for (GLint i= 0; i < fansCount; ++i) - { - GLC_uint currentPrimitiveId= pCurrentGroup->fanGroupId(i); - if (pSelectedPrimitive->contains(currentPrimitiveId)) - { - if (!isTransparent) - { - GLC_SelectionMaterial::glExecute(); - pCurrentLocalMaterial= NULL; - GLvoid* pOffset= &m_MeshData.indexVectorHandle(m_CurrentLod)->data()[pCurrentGroup->fansOffseti().at(i)]; - glDrawElements(GL_TRIANGLE_FAN, pCurrentGroup->fansSizes().at(i), GL_UNSIGNED_INT, pOffset); - } - } - else if ((NULL != pMaterialHash) && pMaterialHash->contains(currentPrimitiveId)) - { - if (pMaterialHash->value(currentPrimitiveId)->isTransparent() == isTransparent) - { - GLC_Material* pMat= pMaterialHash->value(currentPrimitiveId); - if (pMat != pCurrentLocalMaterial) - { - pCurrentLocalMaterial= pMat; - pCurrentLocalMaterial->glExecute(); - } - GLvoid* pOffset= &m_MeshData.indexVectorHandle(m_CurrentLod)->data()[pCurrentGroup->fansOffseti().at(i)]; - glDrawElements(GL_TRIANGLE_FAN, pCurrentGroup->fansSizes().at(i), GL_UNSIGNED_INT, pOffset); - } - - } - else if (materialIsRenderable) - { - if (pCurrentLocalMaterial != pCurrentMaterial) - { - pCurrentLocalMaterial= pCurrentMaterial; - pCurrentLocalMaterial->glExecute(); - } - GLvoid* pOffset= &m_MeshData.indexVectorHandle(m_CurrentLod)->data()[pCurrentGroup->fansOffseti().at(i)]; - glDrawElements(GL_TRIANGLE_FAN, pCurrentGroup->fansSizes().at(i), GL_UNSIGNED_INT, pOffset); - } - } - } - -} - -// Activate mesh VBOs and IBO of the current LOD -void GLC_Mesh::activateVboAndIbo() -{ - // Activate Vertices VBO - m_MeshData.useVBO(true, GLC_MeshData::GLC_Vertex); - glVertexPointer(3, GL_FLOAT, 0, 0); - glEnableClientState(GL_VERTEX_ARRAY); - - // Activate Normals VBO - m_MeshData.useVBO(true, GLC_MeshData::GLC_Normal); - glNormalPointer(GL_FLOAT, 0, 0); - glEnableClientState(GL_NORMAL_ARRAY); - - // Activate texel VBO if needed - if (m_MeshData.useVBO(true, GLC_MeshData::GLC_Texel)) - { - glTexCoordPointer(2, GL_FLOAT, 0, 0); - glEnableClientState(GL_TEXTURE_COORD_ARRAY); - } - - // Activate Color VBO if needed - if ((m_ColorPearVertex && !m_IsSelected && !GLC_State::isInSelectionMode()) && m_MeshData.useVBO(true, GLC_MeshData::GLC_Color)) - { - glEnable(GL_COLOR_MATERIAL); - glColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE); - glColorPointer(4, GL_FLOAT, 0, 0); - glEnableClientState(GL_COLOR_ARRAY); - } - - m_MeshData.useIBO(true, m_CurrentLod); -} - -// Activate vertex Array -void GLC_Mesh::activateVertexArray() -{ - // Use Vertex Array - glVertexPointer(3, GL_FLOAT, 0, m_MeshData.positionVectorHandle()->data()); - glEnableClientState(GL_VERTEX_ARRAY); - - glNormalPointer(GL_FLOAT, 0, m_MeshData.normalVectorHandle()->data()); - glEnableClientState(GL_NORMAL_ARRAY); - - // Activate texel if needed - if (!m_MeshData.texelVectorHandle()->isEmpty()) - { - glTexCoordPointer(2, GL_FLOAT, 0, m_MeshData.texelVectorHandle()->data()); - glEnableClientState(GL_TEXTURE_COORD_ARRAY); - } - - // Activate Color array if needed - if ((m_ColorPearVertex && !m_IsSelected && !GLC_State::isInSelectionMode()) && !m_MeshData.colorVectorHandle()->isEmpty()) - { - glEnable(GL_COLOR_MATERIAL); - glColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE); - glColorPointer(4, GL_FLOAT, 0, m_MeshData.colorVectorHandle()->data()); - glEnableClientState(GL_COLOR_ARRAY); - } -} - - - -#endif /* GLC_MESH_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_meshdata.h b/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_meshdata.h deleted file mode 100644 index 6b57711cc..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_meshdata.h +++ /dev/null @@ -1,262 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_meshdata.h Interface for the GLC_MeshData class. - -#ifndef GLC_MESHDATA_H_ -#define GLC_MESHDATA_H_ - -#include - -#include "glc_lod.h" -#include "../glc_global.h" - -#include "../glc_config.h" - - -////////////////////////////////////////////////////////////////////// -//! \class GLC_MeshData -/*! \brief GLC_MeshData : Contains all data of the mesh - */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_MeshData -{ - friend QDataStream &operator<<(QDataStream &, const GLC_MeshData &); - friend QDataStream &operator>>(QDataStream &, GLC_MeshData &); - -public: - - //! Enum of VBO TYPE - enum VboType - { - GLC_Vertex= 30, - GLC_Normal, - GLC_Texel, - GLC_Color - }; - -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - GLC_MeshData(); - - //! Copy constructor - GLC_MeshData(const GLC_MeshData&); - - //! Overload "=" operator - GLC_MeshData& operator=(const GLC_MeshData&); - - //! Destructor - virtual ~GLC_MeshData(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the class Chunk ID - static quint32 chunckID(); - - //! Return the number of lod - inline int lodCount() const - {return m_LodList.size();} - - //! Return the Position Vector - GLfloatVector positionVector() const; - - //! Return the normal Vector - GLfloatVector normalVector() const; - - //! Return the texel Vector - GLfloatVector texelVector() const; - - //! Return the color Vector - GLfloatVector colorVector() const; - - //! Return the Position Vector handle - inline GLfloatVector* positionVectorHandle() - { return &m_Positions;} - - //! Return the Normal Vector handle - inline GLfloatVector* normalVectorHandle() - { return &m_Normals;} - - //! Return the Texel Vector handle - inline GLfloatVector* texelVectorHandle() - { return &m_Texels;} - - //! Return the Color Vector handle - inline GLfloatVector* colorVectorHandle() - { return &m_Colors;} - - //! Return the Index Vector of the specified LOD - inline GLuintVector indexVector(const int i= 0) const - { - Q_ASSERT(i < m_LodList.size()); - return m_LodList.at(i)->indexVector(); - } - - //! Return the Index Vector handle of the specified LOD - inline GLuintVector* indexVectorHandle(const int i= 0) const - { - Q_ASSERT(i < m_LodList.size()); - return m_LodList.at(i)->indexVectorHandle(); - } - - //! Return the size of the triangles index Vector of the specified LOD - inline int indexVectorSize(const int i= 0) const - { - Q_ASSERT(i < m_LodList.size()); - return m_LodList.at(i)->indexVectorSize(); - } - //! Return the specified LOD if the LOD doesn't exists, return NULL - inline GLC_Lod* getLod(int index) const - { - return m_LodList.value(index); - } - - //! Return true if the mesh data doesn't contains vertice - inline bool isEmpty() const - {return (0 == m_PositionSize) && (0 == m_Positions.size());} - - //! Return the number of triangle from the given lod index - inline unsigned int trianglesCount(int lod) const - { - Q_ASSERT(lod < m_LodList.size()); - return m_LodList.at(lod)->trianglesCount(); - } - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Add a empty Lod to the engine - inline void appendLod(double accuracy= 0.0) - {m_LodList.append(new GLC_Lod(accuracy));} - - //! The mesh wich use the data is finished and VBO is used - void finishVbo(); - - //! If the there is more than 2 LOD Swap the first and last - void finishLod(); - - //! Clear the content of the meshData and makes it empty - void clear(); - - //! Copy VBO to the Client Side - void copyVboToClientSide(); - - //! Release client VBO - void releaseVboClientSide(bool update= false); - - //! Given number of triangles added to the given lod index - inline void trianglesAdded(int lod, int number) - { - if (lod != 0) lod-= 1; - else lod= m_LodList.size() - 1; - m_LodList.at(lod)->trianglesAdded(number); - } - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Vbo creation - void createVBOs(); - - //! Ibo Usage - bool useVBO(bool, GLC_MeshData::VboType) const; - - //! Ibo Usage - inline void useIBO(bool use, const int currentLod= 0) - { - if (use) m_LodList.at(currentLod)->useIBO(); - else glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); - } - - //! Fill the VBO of the given type - void fillVbo(GLC_MeshData::VboType vboType); - -//@} - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - - //! Main VBO ID - GLuint m_VboId; - - //! Vertex Position Vector - GLfloatVector m_Positions; - - //! Vertex Normal Vector - GLfloatVector m_Normals; - - //! Vertex Texture coordinate - GLfloatVector m_Texels; - - //! Color index - GLfloatVector m_Colors; - - //! Normals VBO ID - GLuint m_NormalVboId; - - //! Texture VBO ID - GLuint m_TexelVboId; - - //! Color VBO ID - GLuint m_ColorVboId; - - //! The list of LOD - QList m_LodList; - - //! The size of Position and normal VBO - int m_PositionSize; - - //! The size of texel VBO - int m_TexelsSize; - - //! The size of Color VBO - int m_ColorSize; - - //! Class chunk id - static quint32 m_ChunkId; -}; - -//! Non-member stream operator -QDataStream &operator<<(QDataStream &, const GLC_MeshData &); -QDataStream &operator>>(QDataStream &, GLC_MeshData &); - -#endif /* GLC_MESHDATA_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_point.h b/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_point.h deleted file mode 100644 index 4eab9fb1c..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_point.h +++ /dev/null @@ -1,106 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_point.h interface for the GLC_Point class. - -#ifndef GLC_POINT_H_ -#define GLC_POINT_H_ - -#include "glc_geometry.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Point -/*! \brief GLC_Point : OpenGL 3D Point*/ - -/*! An GLC_Point is just a simple 3D Point*/ -////////////////////////////////////////////////////////////////////// - -class GLC_LIB_EXPORT GLC_Point : public GLC_Geometry -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Construct an GLC_Point - GLC_Point(const GLC_Point3d &); - - //! Construct an GLC_Point - GLC_Point(double, double, double); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Return a GLC_Point3d of coordinate - GLC_Point3d coordinate(void) const; - - //! Return the point bounding box - virtual const GLC_BoundingBox& boundingBox(void); - - //! Return a copy of the geometry - virtual GLC_Geometry* clone() const; - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Set Point coordinate by 4D point - void setCoordinate(const GLC_Point3d &); - - //! Set Point coordinate by 3 double - void setCoordinate(double x, double y, double z); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// - -private: - //! Virtual interface for OpenGL Geometry set up. - /*! This Virtual function is implemented here.\n*/ - virtual void glDraw(const GLC_RenderProperties&); - -//@} - -////////////////////////////////////////////////////////////////////// -// Private Member -////////////////////////////////////////////////////////////////////// - -private: - //! 4d point for point coordinate - GLC_Point3d m_Coordinate; - -}; -#endif //GLC_POINT_H_ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_pointsprite.h b/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_pointsprite.h deleted file mode 100644 index 19f0a7a4c..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_pointsprite.h +++ /dev/null @@ -1,132 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Copyright (C) 2009 Laurent Bauer - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_pointsprite.h interface for the GLC_PointSprite class. - -#include "glc_geometry.h" -#include - -#include "../glc_config.h" - -#ifndef GLC_POINTSPRITE_H_ -#define GLC_POINTSPRITE_H_ - -////////////////////////////////////////////////////////////////////// -//! \class GLC_PointSprite -/*! \brief GLC_PointSprite : OpenGL 3D Point Sprite Using extension : GL_ARB_point_parameters*/ - -/*! An GLC_PointSprite is just a simple 3D Sprite Point*/ -////////////////////////////////////////////////////////////////////// - -class GLC_LIB_EXPORT GLC_PointSprite : public GLC_Geometry -{ -public: -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// - //! Default constructor - /*! The material must exist and had texture*/ - GLC_PointSprite(float, GLC_Material*); - - //! Default destructor - virtual ~GLC_PointSprite(); -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Return the point size - inline float size() const - {return m_Size;} - - //! Return the point bounding box - virtual const GLC_BoundingBox& boundingBox(void); - - //! Return a copy of the geometry - virtual GLC_Geometry* clone() const; - - //! Return the fade thresold size - inline float fadeThresoldSize() - {return m_FadeThresoldSize;} - - //! Return the maximum point size - /*! Return -1 if the size is unknown*/ - inline static float maximumPointSize() - {return m_MaxSize;} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Return the point size - void setSize(float size); - - //! Set the point distance attenuation values - /*! Vector size must be equal to 3*/ - void setPointDistanceAttenuation(QVector); - - //! Set the fade thresold size - inline void setFadeThresoldSize(float value) - {m_FadeThresoldSize= value;} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -private: - //! Specific glExecute method - virtual void render(const GLC_RenderProperties&); - - //! Virtual interface for OpenGL Geometry set up. - /*! This Virtual function is implemented here.\n*/ - virtual void glDraw(const GLC_RenderProperties&); -//@} -////////////////////////////////////////////////////////////////////// -// Private Member -////////////////////////////////////////////////////////////////////// - -private: - //! The point size - float m_Size; - - //! The Distance attenuation values - QVector m_DistanceAttenuation; - - //! The Fade Thresold Size - float m_FadeThresoldSize; - - //! The maximum point size - static float m_MaxSize; -}; - -#endif /* GLC_POINTSPRITE_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_polylines.h b/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_polylines.h deleted file mode 100644 index f53c55efc..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_polylines.h +++ /dev/null @@ -1,107 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_polyline.h interface for the GLC_Polylines class. - -#ifndef GLC_POLYLINES_H_ -#define GLC_POLYLINES_H_ - -#include "glc_geometry.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Polylines -/*! \brief GLC_Polylines : OpenGL 3D Polylines*/ - -/*! An GLC_Polylines is a group of wire polyline - * All polylines of this class have the same color*/ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Polylines : public GLC_Geometry -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Construct an empty polylines - GLC_Polylines(); - - //! Copy constructor - GLC_Polylines(const GLC_Polylines& polyline); - - //! Destructor - virtual ~GLC_Polylines(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the polylines bounding box - const GLC_BoundingBox& boundingBox(); - - //! Return a copy of the geometry - virtual GLC_Geometry* clone() const; - - //! Return true if this polylines is empty - inline bool isEmpty() const - {return GLC_Geometry::m_WireData.isEmpty();} - - -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Add a Polyline to this wire and returns its id if id are managed - inline GLC_uint addPolyline(const GLfloatVector& data) - {return GLC_Geometry::m_WireData.addPolyline(data);} - - //! Set this polylines from the given polylines and return a reference of this polylines - GLC_Polylines& operator=(const GLC_Polylines& polyline); - - //! Clear the content of this polylines Data and makes it empty - inline void clear() - {GLC_Geometry::m_WireData.clear();} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -private: - - //! Virtual interface for OpenGL Geometry set up. - /*! This Virtual function is implemented here.\n - * Throw GLC_OpenGlException*/ - virtual void glDraw(const GLC_RenderProperties&); - -//@} - -}; - -#endif /* GLC_POLYLINES_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_primitivegroup.h b/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_primitivegroup.h deleted file mode 100644 index ed72078c2..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_primitivegroup.h +++ /dev/null @@ -1,320 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_primitivegroup.h interface for the GLC_PrimitiveGroup class. - -#ifndef GLC_PRIMITIVEGROUP_H_ -#define GLC_PRIMITIVEGROUP_H_ - -#include "../glc_ext.h" -#include "../glc_global.h" - -#include "glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_PrimitiveGroup -/*! \brief GLC_PrimitiveGroup : Triangles, Strip and fan index*/ - -/*! An GLC_PrimitiveGroup is used to stored Triangles, strips and fans index - * Grouped by material*/ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_PrimitiveGroup -{ - friend QDataStream &operator<<(QDataStream &, const GLC_PrimitiveGroup &); - friend QDataStream &operator>>(QDataStream &, GLC_PrimitiveGroup &); - -public: -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// - - //! Default constructor - GLC_PrimitiveGroup(GLC_uint id= 0); - - //! Copy constructor - GLC_PrimitiveGroup(const GLC_PrimitiveGroup&); - - //! Copy constructor - GLC_PrimitiveGroup(const GLC_PrimitiveGroup&, GLC_uint); - - //! = operator - GLC_PrimitiveGroup& operator=(const GLC_PrimitiveGroup&); - - ~GLC_PrimitiveGroup(); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the class Chunk ID - static quint32 chunckID(); - - //! Return true if the group is finished - inline bool isFinished() const - {return m_IsFinished;} - - //! Return the group id - inline GLC_uint id() const - {return m_Id;} - - //! Return true if the group contains triangles - inline bool containsTriangles() const - {return m_TrianglesIndexSize > 0;} - - //! Return true if the group contains triangles group id - inline bool containsTrianglesGroupId() const - {return !m_TrianglesId.isEmpty();} - - //! Return the Triangle group ID - inline GLC_uint triangleGroupId(int index) - {return m_TrianglesId.at(index);} - - //! Return the size of list of triangles index of the group - inline int trianglesIndexSize() const - {return m_TrianglesIndexSize;} - - //! Return the size of list of triangles index of the group - inline const IndexSizes& trianglesIndexSizes() const - {return m_TrianglesGroupsSizes;} - - //! Return the list of triangles index of the group - inline const IndexList& trianglesIndex() const - { - Q_ASSERT(!m_IsFinished); - return m_TrianglesIndex; - } - - //! Return the offset of triangles index - inline const GLvoid* trianglesIndexOffset() const - {return m_TrianglesGroupOffset.first();} - - //! Return the offset of triangles index - inline int trianglesIndexOffseti() const - {return m_TrianglesGroupOffseti.first();} - - //! Return the offset of triangles index - inline const OffsetVector& trianglesGroupOffset() const - {return m_TrianglesGroupOffset;} - - //! Return the offset of triangles index - inline const OffsetVectori& trianglesGroupOffseti() const - {return m_TrianglesGroupOffseti;} - - //! Return true if the group contains strips - inline bool containsStrip() const - {return m_TrianglesStripSize > 0;} - - //! Return true if the group contains strips group id - inline bool containsStripGroupId() const - {return !m_StripsId.isEmpty();} - - //! Return the strip ID - inline GLC_uint stripGroupId(int index) - {return m_StripsId.at(index);} - - //! Return the size of index of strips - inline int stripsIndexSize() const - {return m_TrianglesStripSize;} - - //! Return the list of index of strips - inline const IndexList& stripsIndex() const - { - Q_ASSERT(!m_IsFinished); - return m_StripsIndex; - } - - //! Return the vector of strips sizes - inline const IndexSizes& stripsSizes() const - {return m_StripIndexSizes;} - - //! Return the vector of strip offset - inline const OffsetVector& stripsOffset() const - {return m_StripIndexOffset;} - - //! Return the vector of strip offset - inline const OffsetVectori& stripsOffseti() const - {return m_StripIndexOffseti;} - - //! Return true if the group contains fans - inline bool containsFan() const - {return m_TrianglesFanSize > 0;} - - //! Return true if the group contains fans group id - inline bool containsFanGroupId() const - {return !m_FansId.isEmpty();} - - //! Return the fan ID - inline GLC_uint fanGroupId(int index) - {return m_FansId.at(index);} - - //! Return the size of index of fans - inline int fansIndexSize() const - {return m_TrianglesFanSize;} - - //! Return the list of index of fans - inline const IndexList& fansIndex() const - { - Q_ASSERT(!m_IsFinished); - return m_FansIndex; - } - - //! Return the vector of fans sizes - inline const IndexSizes& fansSizes() const - {return m_FansIndexSizes;} - - //! Return the vector of strip offset - inline const OffsetVector& fansOffset() const - {return m_FanIndexOffset;} - - //! Return the vector of strip offset - inline const OffsetVectori& fansOffseti() const - {return m_FanIndexOffseti;} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Set the group id - inline void setId(GLC_uint id) - {m_Id= id;} - - //! Add triangles to the group - void addTriangles(const IndexList& input, GLC_uint id= 0); - - //! Set the triangle index offset - void setTrianglesOffset(GLvoid* pOffset); - - //! Set the triangle index offset - void setTrianglesOffseti(int offset); - - //! Add triangle strip to the group - void addTrianglesStrip(const IndexList&, GLC_uint id= 0); - - //! Set base triangle strip offset - void setBaseTrianglesStripOffset(GLvoid*); - - //! Set base triangle strip offset - void setBaseTrianglesStripOffseti(int); - - //! Add triangle fan to the group - void addTrianglesFan(const IndexList&, GLC_uint id= 0); - - //! Set base triangle fan offset - void setBaseTrianglesFanOffset(GLvoid*); - - //! Set base triangle fan offset - void setBaseTrianglesFanOffseti(int); - - //! Change index to VBO mode - void changeToVboMode(); - - //! The mesh wich use this group is finished - inline void finish() - { - m_TrianglesIndex.clear(); - m_StripsIndex.clear(); - m_FansIndex.clear(); - m_IsFinished= true; - } - - //! Clear the group - void clear(); - -//@} - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - //! Grouped material id - GLC_uint m_Id; - - //! Triangles index list - IndexList m_TrianglesIndex; - - //! Triangles groups index size - IndexSizes m_TrianglesGroupsSizes; - - //! Vector of triangles group offset - OffsetVector m_TrianglesGroupOffset; - OffsetVectori m_TrianglesGroupOffseti; - - //! Triangles groups id - QList m_TrianglesId; - - //! Strips index list - IndexList m_StripsIndex; - - //! Strips index size - IndexSizes m_StripIndexSizes; - - //! Vector of strips offset - OffsetVector m_StripIndexOffset; - OffsetVectori m_StripIndexOffseti; - - //! Strips id - QList m_StripsId; - - //! Fans index list - IndexList m_FansIndex; - - //! Fans index size - IndexSizes m_FansIndexSizes; - - //! Vector of fan Offset - OffsetVector m_FanIndexOffset; - OffsetVectori m_FanIndexOffseti; - - //! Fans id - QList m_FansId; - - //! Flag to know if the group is finish - int m_IsFinished; - - //! Flag to know if there is triangles - int m_TrianglesIndexSize; - - //! Flag to know if there is triangles strip - int m_TrianglesStripSize; - - //! Flag to know if there is triangles fan - int m_TrianglesFanSize; - - //! Class chunk id - static quint32 m_ChunkId; - -}; - -//! Non-member stream operator -QDataStream &operator<<(QDataStream &, const GLC_PrimitiveGroup &); -QDataStream &operator>>(QDataStream &, GLC_PrimitiveGroup &); - -#endif /* GLC_PRIMITIVEGROUP_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_rectangle.h b/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_rectangle.h deleted file mode 100644 index 9eaab4619..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_rectangle.h +++ /dev/null @@ -1,131 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ - -//! \file glc_rectangle.h interface for the GLC_Rectangle class. - -#ifndef GLC_RECTANGLE_H_ -#define GLC_RECTANGLE_H_ - -#include "glc_mesh.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Rectangle -/*! \brief GLC_Rectangle : OpenGL flat 3D Rectangle*/ - -/*! An GLC_Rectangle is just a simple 3D Rectangle*/ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Rectangle : public GLC_Mesh -{ - -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - GLC_Rectangle(); - - //! Construct a rectangle with the given lenght - GLC_Rectangle(double l1, double l2); - - //! Construct a restangle with the given rectangle - GLC_Rectangle(const GLC_Rectangle&); - - //! Destructor - virtual ~GLC_Rectangle(); -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return length 1 of this rectangle - inline double length1() const - { return m_L1;} - - //! Return length 2 of this rectangle - inline double length2() const - { return m_L2;} - - //! Clone this rectangle - virtual GLC_Geometry* clone() const; - - //! Return this rectangle bounding box - virtual const GLC_BoundingBox& boundingBox(void); - -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Set this rectangle with the given lenght - GLC_Rectangle& setRectangle(double l1, double l2); - - //! Set this rectangle length 1 - void setLength1(double l1); - - //! Set this rectangle length 2 - void setLength2(double l2); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -private: - - //! Virtual interface for OpenGL Geometry set up. - /*! This Virtual function is implemented here.\n - * Throw GLC_OpenGlException*/ - virtual void glDraw(const GLC_RenderProperties&); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Private services Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -private: - //! Create this rectangle mesh and wire - void createMeshAndWire(); -//@} - - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - //! The Rectangle length 1 - double m_L1; - - //! The Rectangle length 2 - double m_L2; - -}; - -#endif /* GLC_RECTANGLE_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_rep.h b/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_rep.h deleted file mode 100644 index 240eae11a..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_rep.h +++ /dev/null @@ -1,167 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ - -#include -#include - -#include "../glc_config.h" - -#ifndef GLC_REP_H_ -#define GLC_REP_H_ -////////////////////////////////////////////////////////////////////// -//! \class GLC_Rep -/*! \brief GLC_Rep : Abstract class for a reference represention*/ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Rep -{ -public: - enum Type - { - GLC_VBOGEOM= 1 - }; -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - GLC_Rep(); - - //! Copy constructor - GLC_Rep(const GLC_Rep&); - - //! Assignement operator - virtual GLC_Rep &operator=(const GLC_Rep&); - - //! Clone the representation - virtual GLC_Rep* clone() const = 0; - - //! Return a deep copy of the representation - virtual GLC_Rep* deepCopy() const = 0; - - //! Destructor - virtual ~GLC_Rep(); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return true if the representation is the last - inline bool isTheLast() const - {return 1 == (*m_pNumberOfRepresentation);} - - //! Return true if representations are equals - inline bool operator==(const GLC_Rep& rep) - { - return (rep.m_pNumberOfRepresentation == m_pNumberOfRepresentation); - } - - //! Return the representation file name - inline QString fileName() const - {return (*m_pFileName);} - - //! Return the type of representation - virtual int type() const =0; - - //! Return the name of the rep - inline QString name() const - {return (*m_pName);} - - //! Return true if the representation is empty - virtual bool isEmpty() const= 0; - - //! Return true if the representation as been loaded - inline bool isLoaded() const - {return *m_pIsLoaded;} - - //! Return the rep file las modified date and time - inline QDateTime lastModified() const - {return *m_pDateTime;} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Set the representation FileName - inline void setFileName(const QString& fileName) - {(*m_pFileName)= fileName;} - - //! Set the representation Name - inline void setName(const QString& name) - {(*m_pName)= name;} - - //! Load the representation - virtual bool load()= 0; - - //! UnLoad the representation - virtual bool unload()= 0; - - //! Replace the representation - virtual void replace(GLC_Rep*)= 0; - - //! Set the last modified date and time - inline void setLastModified(const QDateTime& dateTime) - {*m_pDateTime= dateTime;} - -//@} -////////////////////////////////////////////////////////////////////// -// private services functions -////////////////////////////////////////////////////////////////////// -private: - //! Clear current representation - void clear(); -////////////////////////////////////////////////////////////////////// -// protected members -////////////////////////////////////////////////////////////////////// -protected: - - //! Flag to know if the representation has been loaded - bool* m_pIsLoaded; - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - - //! Number of this representation - int* m_pNumberOfRepresentation; - - //! The File Name of this representation - QString* m_pFileName; - - //! The Name of the rep - QString* m_pName; - - //! The Date and time of the rep - QDateTime* m_pDateTime; - -}; - -#endif /* GLC_REP_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_sphere.h b/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_sphere.h deleted file mode 100644 index 26398814d..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_sphere.h +++ /dev/null @@ -1,125 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2010 Laurent Bauer - Copyright (C) 2010 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_sphere.h interface for the GLC_Sphere class. - -#ifndef GLC_SPHERE_H_ -#define GLC_SPHERE_H_ - -#include "glc_mesh.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Sphere -/*! \brief GLC_Sphere : OpenGL 3D Sphere*/ - -/*! An GLC_Sphere is a polygonnal geometry */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Sphere : public GLC_Mesh -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Construct a sphere with the given radius - GLC_Sphere(double radius); - - //! Copy constructor - GLC_Sphere(const GLC_Sphere & sphere); - - //! Destructor - virtual ~GLC_Sphere(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the class Chunk ID - static quint32 chunckID(); - - //! Return the Radius of this sphere - inline double radius(void) const - {return m_Radius;} - - //! Get Sphere discretion - inline int discretion(void) const - {return m_Discret;} - - //! Return a copy of the Sphere - virtual GLC_Geometry* clone() const; - - //! Return the sphere bounding box - virtual const GLC_BoundingBox& boundingBox(void); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Set Sphere radius - /*! Radius must be > 0*/ - void setRadius(double Radius); - - //! Set Discretion - /*! Discretion must be > 0*/ - void setDiscretion(int TargetDiscret); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Private services Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -private: - //! Create the sphere mesh - void createMesh(); - -//@} - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - //! Sphere radius - double m_Radius; - - //! Sphere polygon discretisation - int m_Discret; - - double m_ThetaMin; - double m_ThetaMax; - double m_PhiMin; - double m_PhiMax; - - //! Class chunk id - static quint32 m_ChunkId; - -}; - -#endif /* GLC_SPHERE_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_wiredata.h b/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_wiredata.h deleted file mode 100644 index c879a7d42..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/geometry/glc_wiredata.h +++ /dev/null @@ -1,175 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_wiredata.h Interface for the GLC_WireData class. - -#ifndef GLC_WIREDATA_H_ -#define GLC_WIREDATA_H_ - -#include -#include "../glc_global.h" -#include "../glc_boundingbox.h" -#include "../shading/glc_renderproperties.h" - -#include "../glc_config.h" -////////////////////////////////////////////////////////////////////// -//! \class GLC_WireData -/*! \brief GLC_WireData : Contains geometries's wire data - */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_WireData -{ - friend QDataStream &operator<<(QDataStream &, const GLC_WireData &); - friend QDataStream &operator>>(QDataStream &, GLC_WireData &); - -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Construct a empty wire data - GLC_WireData(); - - //! Construct wire data from the given wire data - GLC_WireData(const GLC_WireData&); - - //! Copy the given wire data in this wire data - GLC_WireData& operator=(const GLC_WireData&); - - //! Destructor - virtual ~GLC_WireData(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return this wire data class Chunk ID - static quint32 chunckID(); - - //! Return this wire data Position Vector - GLfloatVector positionVector() const; - - //! Return true if this wire data is empty - inline bool isEmpty() const - {return ((m_PositionSize == 0) && m_Positions.isEmpty());} - - //! Return this wire data bounding box - GLC_BoundingBox& boundingBox(); - - //! Return the number of polylines - inline int polylineCount() const - {return m_PolylinesCount;} - - //! Return the polyline offset from the given index - inline GLuint polylineOffset(int index) const - {return m_PolylinesOffset.at(index);} - - //! Return the polyline size from the given index - inline GLsizei polylineSize(int index) const - {return m_PolylinesSizes.at(index);} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Add a Polyline to this wire and returns its id if id are managed - GLC_uint addPolyline(const GLfloatVector&); - - //! Clear the content of this wire Data and makes it empty - void clear(); - - //! Copy VBO to the Client Side - void copyVboToClientSide(); - - //! Release client VBO - void releaseVboClientSide(bool update= false); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Make this wire data a VBO - void finishVbo(); - - //! Set vbo usage of this wire data - void useVBO(bool usage); - - //! Render this wire data using Opengl - void glDraw(const GLC_RenderProperties&); - -private: - //! Create this wire data VBO id - void createVBOs(); - - //! Fill this wire data VBO from memmory - void fillVBOs(); -//@} - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - //! VBO ID - GLuint m_VboId; - - //! The next primitive local id - GLC_uint m_NextPrimitiveLocalId; - - //! Vertex Position Vector - GLfloatVector m_Positions; - - //! The size of the VBO - int m_PositionSize; - - //! Wire data bounding box - GLC_BoundingBox* m_pBoundingBox; - - //! Polylines size - IndexSizes m_PolylinesSizes; - - //! Vector of polyline group offset - OffsetVectori m_PolylinesOffset; - - //! Polyline groups id - QList m_PolylinesId; - - //! The number of polylines - int m_PolylinesCount; - - //! Class chunk id - static quint32 m_ChunkId; -}; - -//! Non-member stream operator -QDataStream &operator<<(QDataStream &, const GLC_WireData &); -QDataStream &operator>>(QDataStream &, GLC_WireData &); - -#endif /* GLC_WIREDATA_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_boundingbox.h b/ground/src/libs/glc_lib/install/include/GLC_lib/glc_boundingbox.h deleted file mode 100644 index 4da83c734..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_boundingbox.h +++ /dev/null @@ -1,195 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_boundingbox.h interface for the GLC_BoundingBox class. - -#ifndef GLC_BOUNDINGBOX_ -#define GLC_BOUNDINGBOX_ - -#include "maths/glc_vector3d.h" -#include "maths/glc_utils_maths.h" -#include "maths/glc_matrix4x4.h" -#include -#include "glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_BoundingBox -/*! \brief GLC_BoundingBox : Geometry bounding box*/ - -/*! An GLC_BoundingBox is a non oriented bounding box -*/ - -////////////////////////////////////////////////////////////////////// - -class GLC_LIB_EXPORT GLC_BoundingBox -{ - friend QDataStream &operator<<(QDataStream &, const GLC_BoundingBox &); - friend QDataStream &operator>>(QDataStream &, GLC_BoundingBox &); - -////////////////////////////////////////////////////////////////////// -/*! @name Constructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Construct an empty bounding box - GLC_BoundingBox(); - - //! Construct a bounding box from the given bounding box - GLC_BoundingBox(const GLC_BoundingBox& boundingBox); - - //! Construct a bounding box from the given 3d point - GLC_BoundingBox(const GLC_Point3d& lower, const GLC_Point3d& upper); - -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return this class Chunk ID - static quint32 chunckID(); - - //! Return true if this bounding box is empty - bool isEmpty(void) const - { - return m_IsEmpty; - } - - //! Return true if the given 3d point intersect this bounding box - bool intersect(const GLC_Point3d& point) const; - - //! Return true if the given bounding box intersect this bounding box - inline bool intersect(const GLC_BoundingBox& boundingBox) const; - - //! Return true if the given 3d point intersect this bounding sphere of bounding box - bool intersectBoundingSphere(const GLC_Point3d&) const; - - //! Return true if the given bounding sphere of bounding box intersect the bounding sphere of box bounding box - bool intersectBoundingSphere(const GLC_BoundingBox&) const; - - //! Return the lower corner of this bounding box - inline const GLC_Point3d& lowerCorner() const - {return m_Lower;} - - //! Return the upper corner of this bounding box - inline const GLC_Point3d& upperCorner() const - {return m_Upper;} - - //! Return the center of this bounding box - inline GLC_Point3d center() const; - - //! Return the radius of this bounding sphere of bounding box - inline double boundingSphereRadius() const - {return GLC_Vector3d(m_Lower - m_Upper).length() / 2.0;} - - //! Return true if this bounding box is equal of the given bounding box - inline bool operator == (const GLC_BoundingBox& boundingBox); - - //! Return true if this bounding box is not equal of the given bounding box - inline bool operator != (const GLC_BoundingBox& boundingBox) - {return !(*this == boundingBox);} - - //! Return the length off this bounding box on x axis - inline double xLength() const - {return fabs(m_Upper.x() - m_Lower.x());} - - //! Return the length off this bounding box on y axis - inline double yLength() const - {return fabs(m_Upper.y() - m_Lower.y());} - - //! Return the length off this bounding box on z axis - inline double zLength() const - {return fabs(m_Upper.z() - m_Lower.z());} - - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Combine this bounding Box with the given 3d point and return a reference of this bounding box - GLC_BoundingBox& combine(const GLC_Point3d& point); - - //! Combine this bounding Box with the given 3d point and return a reference of this bounding box - GLC_BoundingBox& combine(const GLC_Point3df& point); - - //! Combine this bounding Box with the given bounding box and return a reference of this bounding box - GLC_BoundingBox& combine(const GLC_BoundingBox& box); - - //! Transform this bounding Box with the given matrix and return a reference of this bounding box - GLC_BoundingBox& transform(const GLC_Matrix4x4& matrix); - -//@} - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - //! Lower corner 3d point - GLC_Point3d m_Lower; - - //! Upper corner 3d point - GLC_Point3d m_Upper; - - //! Flag to know if this bounding box is empty - bool m_IsEmpty; - - //! This class chunk id - static quint32 m_ChunkId; -}; - -//! Non-member stream operator -QDataStream &operator<<(QDataStream &, const GLC_BoundingBox &); -QDataStream &operator>>(QDataStream &, GLC_BoundingBox &); - -// Return true if the given bounding box intersect this bounding box -bool GLC_BoundingBox::intersect(const GLC_BoundingBox& boundingBox) const -{ - // Distance between bounding box center - GLC_Vector3d thisCenter= center(); - GLC_Vector3d otherCenter= boundingBox.center(); - const double distanceX= fabs(thisCenter.x() - otherCenter.x()); - const double distanceY= fabs(thisCenter.y() - otherCenter.y()); - const double distanceZ= fabs(thisCenter.z() - otherCenter.z()); - - bool intersect= distanceX < ((xLength() + boundingBox.xLength()) * 0.5); - intersect= intersect && (distanceY < ((yLength() + boundingBox.yLength()) * 0.5)); - intersect= intersect && (distanceZ < ((zLength() + boundingBox.zLength()) * 0.5)); - return intersect; -} - -bool GLC_BoundingBox::operator == (const GLC_BoundingBox& box) -{ - return (m_Lower == box.m_Lower) && (m_Upper == box.m_Upper); -} - -GLC_Point3d GLC_BoundingBox::center(void) const -{ - GLC_Vector3d vectResult = (m_Lower + m_Upper) * 0.5; - return vectResult; -} - -#endif /*GLC_BOUNDINGBOX_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_cachemanager.h b/ground/src/libs/glc_lib/install/include/GLC_lib/glc_cachemanager.h deleted file mode 100644 index 648e5a7f4..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_cachemanager.h +++ /dev/null @@ -1,138 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_cachemanager.h interface for the GLC_CacheManager class. - -#ifndef GLC_CACHEMANAGER_H_ -#define GLC_CACHEMANAGER_H_ - -#include -#include -#include -#include "geometry/glc_bsrep.h" - -#include "glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_CacheManager -/*! \brief GLC_CacheManager : The 3D Rep Binary cache manager*/ - -/*! By default the binary rep are compressed with a default - * compression level - */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_CacheManager -{ -public: -////////////////////////////////////////////////////////////////////// -/*! @name Constructor */ -//@{ -////////////////////////////////////////////////////////////////////// - //! Default constructor - GLC_CacheManager(const QString& path= QString()); - - //! Copy constructor - GLC_CacheManager(const GLC_CacheManager&); - - //! Assignement operator - GLC_CacheManager& operator=(const GLC_CacheManager&); - - //! Destructor - virtual ~GLC_CacheManager(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the cache absolute path - inline QString absolutePath() const - {return m_Dir.absolutePath();} - - //! Return true if the cache dir exists - inline bool exists() const - {return m_Dir.exists();} - - //! Return true if the cache is is readable - bool isReadable() const; - - //! Return true if the cache is is writable - bool isWritable() const; - - //! Return True if the specified file is cashed in the specified context - bool isCashed(const QString&, const QString&) const; - - //! Return True if the cached file is usable - bool isUsable(const QDateTime&, const QString&, const QString&) const; - - //! Return the binary serialized representation of the specified file - GLC_BSRep binary3DRep(const QString&, const QString&) const; - - //! Add the specified file in the cache - bool addToCache(const QString&, const GLC_3DRep&); - - //! Return true if the compression is used - inline bool compressionIsUsed() const - {return m_UseCompression;} - - //! Return the cache compression level - inline int compressionLevel() const - {return m_CompressionLevel;} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Set the cache file path - bool setCachePath(const QString&); - - //! Set the cache compression usage - inline void setCompressionUsage(bool use) - {m_UseCompression= use;} - - //! Set the cache compression level - inline void setCompressionLevel(int level) - {m_CompressionLevel= level;} -//@} - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - - //! The cache directory - QDir m_Dir; - - //! Compress Data - bool m_UseCompression; - - //! The compression level - int m_CompressionLevel; -}; - -#endif /* GLC_CACHEMANAGER_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_config.h b/ground/src/libs/glc_lib/install/include/GLC_lib/glc_config.h deleted file mode 100644 index be2a20940..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_config.h +++ /dev/null @@ -1,46 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_config.h the GLC_lib configuration file - -#ifndef GLC_CONFIG_H -#define GLC_CONFIG_H - -#include - -// Dynamic library export macros -#ifndef GLC_LIB_STATIC -# ifdef CREATE_GLC_LIB_DLL -# define GLC_LIB_EXPORT Q_DECL_EXPORT -# else -# define GLC_LIB_EXPORT Q_DECL_IMPORT -# endif -#endif - -// For static library, this macro is empty -#ifndef GLC_LIB_EXPORT -# define GLC_LIB_EXPORT -#endif - -#endif // GLC_CONFIG_H diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_exception.h b/ground/src/libs/glc_lib/install/include/GLC_lib/glc_exception.h deleted file mode 100644 index 013cfeb07..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_exception.h +++ /dev/null @@ -1,73 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_exception.h Interface for the GLC_Exception class. - -#ifndef GLC_EXCEPTION_H_ -#define GLC_EXCEPTION_H_ - -#include -#include - -#include "glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Exception -/*! \brief GLC_Exception : Base Class for all GLC_Exception Class - */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Exception : public std::exception -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - GLC_Exception(const QString &message); - - //! Destructor - virtual ~GLC_Exception() throw(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return exception description - virtual const char* what() const throw(); - -//@} - -////////////////////////////////////////////////////////////////////// -// protected members -////////////////////////////////////////////////////////////////////// -protected: - - //! Error description - QString m_ErrorDescription; -}; - -#endif /*GLC_EXCEPTION_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_ext.h b/ground/src/libs/glc_lib/install/include/GLC_lib/glc_ext.h deleted file mode 100644 index d7d273f19..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_ext.h +++ /dev/null @@ -1,90 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ -//! \file glc_ext.h Header of the GLC Opengl extension functions. - -#ifndef GLC_EXT_H_ -#define GLC_EXT_H_ - -#include -#include "3rdparty/glext/glext.h" - -// Buffer offset used by VBO -#define BUFFER_OFFSET(i) ((char*)NULL + (i)) - -#if !defined(Q_OS_MAC) -// ARB_vertex_buffer_object -extern PFNGLBINDBUFFERARBPROC glBindBuffer; -extern PFNGLDELETEBUFFERSARBPROC glDeleteBuffers; -extern PFNGLGENBUFFERSARBPROC glGenBuffers; -extern PFNGLISBUFFERARBPROC glIsBuffer; -extern PFNGLBUFFERDATAARBPROC glBufferData; -extern PFNGLBUFFERSUBDATAARBPROC glBufferSubData; -extern PFNGLGETBUFFERSUBDATAARBPROC glGetBufferSubData; -extern PFNGLMAPBUFFERARBPROC glMapBuffer; -extern PFNGLUNMAPBUFFERARBPROC glUnmapBuffer; -extern PFNGLGETBUFFERPARAMETERIVARBPROC glGetBufferParameteriv; -extern PFNGLGETBUFFERPOINTERVARBPROC glGetBufferPointerv; -// glDrawRangElement -//extern PFNGLDRAWRANGEELEMENTSPROC glDrawRangeElements; -// glMultiDrawElement -extern PFNGLMULTIDRAWELEMENTSPROC glMultiDrawElements; -// GL_ARB_shader_objects -extern PFNGLCREATEPROGRAMOBJECTARBPROC glCreateProgram; -extern PFNGLDELETEPROGRAMPROC glDeleteProgram; -extern PFNGLUSEPROGRAMOBJECTARBPROC glUseProgram; -extern PFNGLCREATESHADEROBJECTARBPROC glCreateShader; -extern PFNGLDELETESHADERPROC glDeleteShader; -extern PFNGLSHADERSOURCEARBPROC glShaderSource; -extern PFNGLCOMPILESHADERARBPROC glCompileShader; -extern PFNGLATTACHOBJECTARBPROC glAttachShader; -extern PFNGLDETACHOBJECTARBPROC glDetachShader; -extern PFNGLLINKPROGRAMARBPROC glLinkProgram; -extern PFNGLGETUNIFORMLOCATIONARBPROC glGetUniformLocation; -extern PFNGLUNIFORM4FARBPROC glUniform4f; -extern PFNGLUNIFORM1IARBPROC glUniform1i; -extern PFNGLGETSHADERIVPROC glGetShaderiv; -extern PFNGLGETPROGRAMIVARBPROC glGetProgramiv; -extern PFNGLISPROGRAMARBPROC glIsProgram; - -// GL_point_parameters Point Sprite -extern PFNGLPOINTPARAMETERFARBPROC glPointParameterf; -extern PFNGLPOINTPARAMETERFVARBPROC glPointParameterfv; - -#endif - -namespace glc -{ - //! Return true if the extension is supported - bool extensionIsSupported(const QString&); - - //! Load VBO extension - bool loadVboExtension(); - - //! Load GLSL extensions - bool loadGlSlExtension(); - - //! Load Point Sprite extension - bool loadPointSpriteExtension(); -}; -#endif /*GLC_EXT_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_factory.h b/ground/src/libs/glc_lib/install/include/GLC_lib/glc_factory.h deleted file mode 100644 index 67208a0b5..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_factory.h +++ /dev/null @@ -1,178 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_factory.h Interface for the GLC_Factory class. - -#ifndef GLC_FACTORY_ -#define GLC_FACTORY_ - -#include -#include -#include - -//class to built -#include "geometry/glc_point.h" -#include "geometry/glc_pointsprite.h" -#include "geometry/glc_line.h" -#include "geometry/glc_circle.h" -#include "geometry/glc_box.h" -#include "geometry/glc_cylinder.h" -#include "geometry/glc_cone.h" -#include "geometry/glc_sphere.h" -#include "geometry/glc_rectangle.h" -#include "geometry/glc_3drep.h" -#include "shading/glc_material.h" -#include "shading/glc_texture.h" -#include "sceneGraph/glc_world.h" -#include "sceneGraph/glc_3dviewinstance.h" -#include "glc_boundingbox.h" -#include "viewport/glc_movercontroller.h" -#include "viewport/glc_viewport.h" - -// end of class to built - -#include "glc_config.h" -////////////////////////////////////////////////////////////////////// -//! \class GLC_Factory -/*! \brief GLC_Factory : Factory for all geometrical objects - * this class is a singleton - */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Factory : public QObject -{ - Q_OBJECT - -public: - //! Get unique instance of the factory - static GLC_Factory* instance(const QGLContext * pContext= NULL); - -protected: - //! Constructor - GLC_Factory(const QGLContext *); -public: - //! Destructor - ~GLC_Factory(); - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the current factory context - inline QGLContext* context() const - {return m_pQGLContext;} - - //! Create a GLC_Point - GLC_3DRep createPoint(const GLC_Point3d &coord) const; - - GLC_3DRep createPoint(double x, double y, double z) const; - - //! Create a GLC_PointSprite - GLC_3DRep createPointSprite(float, GLC_Material*) const; - - //! Create a GLC_Line - GLC_3DRep createLine(const GLC_Point3d&, const GLC_Point3d&) const; - - //! Create a GLC_Circle - GLC_3DRep createCircle(double radius, double angle= 2 * glc::PI) const; - - //! Create a GLC_Box - GLC_3DRep createBox(double lx, double ly, double lz) const; - - GLC_3DViewInstance createBox(const GLC_BoundingBox& boundingBox) const; - - //! Create a GLC_Cylinder - GLC_3DRep createCylinder(double radius, double length) const; - - //! Create a GLC_Cone - GLC_3DRep createCone(double radius, double length) const; - - //! Create a GLC_Sphere - GLC_3DRep createSphere(double radius) const; - - //!Create a GLC_Rectangle - GLC_3DRep createRectangle(double, double); - - //! Create a GLC_Rectangle from the given 3d point, normal and the given lenght - GLC_3DViewInstance createRectangle(const GLC_Point3d& point, const GLC_Vector3d& normal, double l1, double l2); - - //! Create the representation of a cutting from the given 3d point, normal, lenght and material - GLC_3DViewInstance createCuttingPlane(const GLC_Point3d& point, const GLC_Vector3d& normal, double l1, double l2, GLC_Material* pMat); - - //! Create a GLC_World from a QFile - GLC_World createWorldFromFile(QFile &file, QStringList* pAttachedFileName= NULL) const; - - //! Create a GLC_World containing only the 3dxml structure - GLC_World createWorldStructureFrom3dxml(QFile &file) const; - - //! Create 3DRep from 3dxml or 3DRep file - GLC_3DRep create3DRepFromFile(const QString&) const; - - //! Create default material - GLC_Material* createMaterial() const; - - //! create a material with an ambient color - GLC_Material* createMaterial(const GLfloat *pAmbiantColor) const; - - //! create a material with an ambient color - GLC_Material* createMaterial(const QColor &color) const; - - //! create a material textured with a texture - GLC_Material* createMaterial(GLC_Texture* pTexture) const; - - //! create a material textured with a image file name - GLC_Material* createMaterial(const QString &textureFullFileName) const; - - //! create a material textured with a QImage - GLC_Material* createMaterial(const QImage &) const; - - //! Create a GLC_Texture - GLC_Texture* createTexture(const QString &textureFullFileName) const; - - //! Create a GLC_Texture with a QImage - GLC_Texture* createTexture(const QImage &, const QString& imageFileName= QString()) const; - - //! Create the default mover controller - GLC_MoverController createDefaultMoverController(const QColor&, GLC_Viewport*); - -//@} - -signals: - //! For progress bar management - void currentQuantum(int) const; - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// - -private: - //! The unique instance of the factory - static GLC_Factory* m_pFactory; - - //! The QGLContext attached to the factory (rendering context) - static QGLContext* m_pQGLContext; - -}; - -#endif /*GLC_FACTORY_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_fileformatexception.h b/ground/src/libs/glc_lib/install/include/GLC_lib/glc_fileformatexception.h deleted file mode 100644 index d3a81b801..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_fileformatexception.h +++ /dev/null @@ -1,79 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_fileformatexception.h Interface for the GLC_FileFormatException class. - -#ifndef GLC_FILEFORMATEXCEPTION_H_ -#define GLC_FILEFORMATEXCEPTION_H_ -#include "glc_exception.h" - -#include "glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_FileFormatException -/*! \brief GLC_FileFormatException : Class for all File Format ERROR - */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_FileFormatException : public GLC_Exception -{ -public: - //! Enum of exception Type - enum ExceptionType - { - FileNotFound= 1, - FileNotSupported, - WrongFileFormat, - NoMeshFound - }; - - GLC_FileFormatException(const QString&, const QString&, ExceptionType); - virtual ~GLC_FileFormatException() throw(); - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return exception description - virtual const char* what() const throw(); - - //! Return exception type - inline ExceptionType exceptionType() const - {return m_ExceptionType;} - -//@} -////////////////////////////////////////////////////////////////////// -// private members -////////////////////////////////////////////////////////////////////// -private: - - //! The name of the file - QString m_FileName; - - //! The Exception type - ExceptionType m_ExceptionType; - -}; - -#endif /*GLC_FILEFORMATEXCEPTION_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_global.h b/ground/src/libs/glc_lib/install/include/GLC_lib/glc_global.h deleted file mode 100644 index b9e49fc96..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_global.h +++ /dev/null @@ -1,140 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_global.h provide usefull utilities - -#ifndef GLC_GLOBAL_H_ -#define GLC_GLOBAL_H_ - -#include -#include -#include -#include -#include - -#include "glc_config.h" - -// GLC_lib typedef -//! Type used for all GLC_lib ID -typedef unsigned int GLC_uint; - -//! Types used for Bulk Opengl Data : QVector of GLfloat -typedef QVector GLfloatVector; - -//! Types used for index Opengl Data : QVector of GLuint -typedef QVector GLuintVector; - -typedef QList IndexList; -typedef QVector IndexSizes; -typedef QVector OffsetVector; -typedef QVector OffsetVectori; - - -namespace glc -{ - //! Simple ID generation - GLC_LIB_EXPORT GLC_uint GLC_GenID(void); - - //! Simple Geom ID generation - GLC_LIB_EXPORT GLC_uint GLC_GenGeomID(void); - - //! Simple User ID generation - GLC_LIB_EXPORT GLC_uint GLC_GenUserID(void); - - //! Simple 3D widget ID generation - GLC_LIB_EXPORT GLC_uint GLC_Gen3DWidgetID(void); - - //! Return the GLC_uint decoded ID from RGB encoded ID - inline GLC_uint decodeRgbId(const GLubyte*); - - //! Return the encoded color of the id - inline void encodeRgbId(GLC_uint, GLubyte*); - - const int GLC_DISCRET= 70; - const int GLC_POLYDISCRET= 60; - - extern QMutex iDMutex; - extern QMutex geomIdMutex; - extern QMutex userIdMutex; - extern QMutex widget3dIdMutex; - - //! 3D widget event flag - enum WidgetEventFlag - { - AcceptEvent, - IgnoreEvent, - BlockedEvent - }; - - //! Return GLC_lib Archive prefix string - GLC_LIB_EXPORT const QString archivePrefix(); - - //! Return GLC_lib Archive infix string - GLC_LIB_EXPORT const QString archiveInfix(); - - //! Return true if the given file name is in a archive string - GLC_LIB_EXPORT bool isArchiveString(const QString& fileName); - - //! Return archive string form the given archive fileName and fileName entry - GLC_LIB_EXPORT QString builtArchiveString(const QString& Archive, const QString& entry); - - //! Return Archive filename from the given archive string - GLC_LIB_EXPORT QString archiveFileName(const QString& archiveString); - - //! Return Archive entry filname from the given archive string - GLC_LIB_EXPORT QString archiveEntryFileName(const QString& archiveString); - -}; - -// Return the GLC_uint decoded ID from RGBA encoded ID -GLC_uint glc::decodeRgbId(const GLubyte* pcolorId) -{ - GLC_uint returnId= 0; - returnId|= (GLC_uint)pcolorId[0] << (0 * 8); - returnId|= (GLC_uint)pcolorId[1] << (1 * 8); - returnId|= (GLC_uint)pcolorId[2] << (2 * 8); - // Only get first 24 bits - //returnId|= (GLC_uint)pcolorId[3] << (3 * 8); - - return returnId; -} - -// Encode Id to RGBA color -void glc::encodeRgbId(GLC_uint id, GLubyte* colorId) -{ - colorId[0]= static_cast((id >> (0 * 8)) & 0xFF); - colorId[1]= static_cast((id >> (1 * 8)) & 0xFF); - colorId[2]= static_cast((id >> (2 * 8)) & 0xFF); - colorId[3]= static_cast((id >> (3 * 8)) & 0xFF); -} - -// GLC_Lib version - -#define GLC_VERSION "2.0.0" -#define GLC_DESCRIPTION "GLC_lib is a Open Source C++ class library that enables the quick creation of an OpenGL application based on QT4." - - -#endif //GLC_GLOBAL_H_ - - diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_object.h b/ground/src/libs/glc_lib/install/include/GLC_lib/glc_object.h deleted file mode 100644 index 43e60b81f..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_object.h +++ /dev/null @@ -1,123 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file GLC_object.h Interface for the GLC_Object class. - -#ifndef GLC_OBJECT_H_ -#define GLC_OBJECT_H_ - -#include -#include -#include -#include -#include "glc_global.h" - -#include "glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Object -/*! \brief GLC_Object is base class for some GLC class*/ - -/*! GLC_Object is a abstract class. \n \n - * Every GLC_Object have : - * - unique ID #m_Uid generated by #GLC_GenID - * - virtual OpenGL method GLC_Object::glExecute - */ -////////////////////////////////////////////////////////////////////// - -class GLC_LIB_EXPORT GLC_Object -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Default constructor - /*! Construct a GLC_Object , Generate is UID GLC_Object::m_Uid - * and set GLC_Object::m_Name to specified name*/ - GLC_Object(const QString& name= QString()); - - //! Construct a GLC_Object from the given GLC_Object - GLC_Object(const GLC_Object& sourceObject); - - //! Virtual destructor - virtual ~GLC_Object(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return this object id - inline GLC_uint id() const - {return m_Uid;} - - //! Return this object name - inline const QString name() const - {return m_Name;} - - //! Return true if this object is equal to the given object - inline bool operator == (const GLC_Object& obj) - {return (m_Uid == obj.m_Uid) && (m_Name == obj.m_Name);} -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Set this object Id - /*! This method is thread safe*/ - void setId(const GLC_uint id); - - //! Set this object Name - /*! This method is thread safe*/ - void setName(const QString& name); - - //! Set this object from the given object - /*! This method is thread safe*/ - GLC_Object &operator=(const GLC_Object&); - -//@} - - -////////////////////////////////////////////////////////////////////// -// Protected member -////////////////////////////////////////////////////////////////////// - -protected: - //! The Unique ID of an GLC_Object - /*! Generated on GLC_Object creation*/ - GLC_uint m_Uid; - - //! Name of an GLC_Object - QString m_Name; - - //! GLC_Object Mutex - QMutex m_Mutex; -}; -#endif //GLC_OBJECT_H_ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_openglexception.h b/ground/src/libs/glc_lib/install/include/GLC_lib/glc_openglexception.h deleted file mode 100644 index edc00697b..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_openglexception.h +++ /dev/null @@ -1,76 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_openglexception.h Interface for the GLC_OpenGlException class. - -#ifndef GLC_OPENGLEXCEPTION_H_ -#define GLC_OPENGLEXCEPTION_H_ - - -#include "glc_exception.h" - -#include - -#include "glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_OpenGlException -/*! \brief GLC_OpenGlException : Class for all OpenGL error - */ -////////////////////////////////////////////////////////////////////// - -class GLC_LIB_EXPORT GLC_OpenGlException : public GLC_Exception -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - GLC_OpenGlException(const QString& message, GLenum glError); - - //! Destructor - virtual ~GLC_OpenGlException() throw(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return exception description - virtual const char* what() const throw(); -//@} - -////////////////////////////////////////////////////////////////////// -// protected members -////////////////////////////////////////////////////////////////////// -protected: - - //! Opengl Error description - QString m_GlErrorDescription; - -}; - -#endif /*GLC_OPENGLEXCEPTION_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_renderstatistics.h b/ground/src/libs/glc_lib/install/include/GLC_lib/glc_renderstatistics.h deleted file mode 100644 index c46b009de..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_renderstatistics.h +++ /dev/null @@ -1,96 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_renderstatistics.h interface for the GLC_RenderStatistics class. - -#ifndef GLC_RENDERSTATISTICS_H_ -#define GLC_RENDERSTATISTICS_H_ - -#include "glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_RenderStatistics -/*! \brief GLC_RenderStatistics is use to collect render statistics*/ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_RenderStatistics -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -private: - //! Private constructor. This class is static only - GLC_RenderStatistics(); - virtual ~GLC_RenderStatistics(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return true statistics are activated - static bool activated(); - - //! Return current body count - static unsigned int bodyCount(); - - //! Return current triangles count - static unsigned long triangleCount(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Set activation flag to the given flag - static void setActivationFlag(bool flag); - - //! Reset all count - static void reset(); - - //! Add bodies to the current body count - static void addBodies(unsigned int bodies); - - //! Add Triangles to the current tringle count - static void addTriangles(unsigned int triangles); - -//@} - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - - //! Flag to know if statistics are activated - static bool m_IsActivated; - - //! Last render geometry count - static unsigned int m_LastRenderGeometryCount; - - //! Last render polygon count - static unsigned long m_LastRenderPolygonCount; -}; - -#endif /* GLC_RENDERSTATISTICS_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_state.h b/ground/src/libs/glc_lib/install/include/GLC_lib/glc_state.h deleted file mode 100644 index e9d3acf00..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/glc_state.h +++ /dev/null @@ -1,216 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_state.h interface for the GLC_State class. - -#ifndef GLC_STATE_H_ -#define GLC_STATE_H_ - -#include - -#include "glc_cachemanager.h" - -#include "glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_State -/*! \brief GLC_State store GLC_lib state*/ - -/*! GLC_State is used to set and get glabal GLC_lib state - * */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_State -{ -private: - GLC_State(); -public: - ~GLC_State(); - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return true if VBO is supported - static bool vboSupported(); - - //! Return true if VBO is used - static bool vboUsed(); - - //! Return true if GLSL is supported - static bool glslSupported(); - - //! Return true if frameBuffer is supported - static bool frameBufferSupported(); - - //! Return true if GLSL is used - static bool glslUsed(); - - //! Return true if Point Sprite is supported - static bool pointSpriteSupported(); - - //! Return true if selection shader is used - static bool selectionShaderUsed(); - - //! Return true if is in selection mode - static bool isInSelectionMode(); - - //! Return the Opengl version - static QString version(); - - //! Return the Opengl vendor - static QString vendor(); - - //! Return the Opengl renderer - static QString renderer(); - - //! Return true if OpenGL Vendor is NVIDIA - static bool vendorIsNvidia(); - - //! Return true if pixel culling is activate - static bool isPixelCullingActivated(); - - //! Return true if the cache is used - static bool cacheIsUsed(); - - //! Return the current cache manager - static GLC_CacheManager& currentCacheManager(); - - //! Return true if space partitionning is used - static bool isSpacePartitionningActivated(); - - //! Return the default octree depth - static int defaultOctreeDepth(); - - //! Return true if frustum culling is activated - static bool isFrustumCullingActivated(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Intialize the state - static void init(); - - //! Set VBO support - static void setVboSupport(); - - //! Set VBO usage - static void setVboUsage(const bool); - - //! Set GLSL support - static void setGlslSupport(); - - //! Set Point Sprite support - static void setPointSpriteSupport(); - - //! Set the frame buffer support - static void setFrameBufferSupport(); - - //! Set GLSL usage - static void setGlslUsage(const bool); - - //! Set selection shader usage - static void setSelectionShaderUsage(const bool); - - //! Set selection mode - static void setSelectionMode(const bool); - - //! Set pixel culling state - static void setPixelCullingUsage(const bool); - - //! Set the cache usage - static void setCacheUsage(const bool); - - //! Set the current cache manager - static void setCurrentCacheManager(const GLC_CacheManager&); - - //! Set space partionning usage - static void setSpacePartionningUsage(const bool); - - //! Set the default octree depth - static void setDefaultOctreeDepth(int); - - //! Set the frustum culling usage - static void setFrustumCullingUsage(bool); - -//@} - -////////////////////////////////////////////////////////////////////// -//Private attributes -////////////////////////////////////////////////////////////////////// -private: - //! VBO supported flag - static bool m_VboSupported; - - //! VBO used - static bool m_UseVbo; - - //! GLSL supported flag - static bool m_GlslSupported; - - //! Point Sprite supported flag - static bool m_PointSpriteSupported; - - //! Use shader - static bool m_UseShader; - - //! Use selectionShader flag - static bool m_UseSelectionShader; - - //! In selection mode - static bool m_IsInSelectionMode; - - //! Pixel culling activation - static bool m_IsPixelCullingActivated; - - //! The Opengl card version - static QString m_Version; - - //! The Opengl card vendor - static QString m_Vendor; - - //! The Opengl card renderer - static QString m_Renderer; - - //! Cache usage - static bool m_UseCache; - - //! The current cache manager - static GLC_CacheManager m_CacheManager; - - //! Space partitionning activation - static bool m_IsSpacePartitionningActivated; - - //! Frustum culling activated - static bool m_IsFrustumCullingActivated; - - //! Frame buffer supported - static bool m_IsFrameBufferSupported; - -}; - -#endif /*GLC_STATE_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_3dstoworld.h b/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_3dstoworld.h deleted file mode 100644 index c4bfcf7ee..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_3dstoworld.h +++ /dev/null @@ -1,172 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_3dstoworld.h interface for the GLC_3dsToWorld class. - -#ifndef GLC_3DSTOWORLD_H_ -#define GLC_3DSTOWORLD_H_ - -#include -#include -#include -#include -#include -#include -#include - -#include "../sceneGraph/glc_3dviewinstance.h" - -#include "../glc_config.h" - -class GLC_World; -class QGLContext; -class GLC_Mesh; -class GLC_StructOccurence; -class GLC_Material; - -struct Lib3dsFile; -struct Lib3dsNode; -struct Lib3dsMesh; -struct Lib3dsMaterial; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_3dsToWorld -/*! \brief GLC_3dsToWorld : Create an GLC_World from 3ds file */ - -/*! An GLC_3dsToWorld extract meshs from an .3ds file \n - * List of elements extracted from the 3ds - * - Vertex - * - Face - * - Normal coordinate - * - Material - * - Meshes - */ -////////////////////////////////////////////////////////////////////// - -class GLC_LIB_EXPORT GLC_3dsToWorld : public QObject -{ - Q_OBJECT - -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// - -public: - GLC_3dsToWorld(const QGLContext*); - virtual ~GLC_3dsToWorld(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! @name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Create an GLC_World from an input 3DS File - GLC_World* CreateWorldFrom3ds(QFile &file); - - //! Get the list of attached files - inline QStringList listOfAttachedFileName() const - {return m_ListOfAttachedFileName.toList();} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! @name Private services functions */ -//@{ -////////////////////////////////////////////////////////////////////// -private: - //! clear 3dsToWorld allocate memmory - void clear(); - - //! Create meshes from the 3ds File - void createMeshes(GLC_StructOccurence*, Lib3dsNode*); - - //! Create 3DRep from a Lib3dsMesh - GLC_3DRep create3DRep(Lib3dsMesh*); - - //! Load Material - void loadMaterial(Lib3dsMaterial*); - -//@} - -////////////////////////////////////////////////////////////////////// -// Qt Signals -////////////////////////////////////////////////////////////////////// - signals: - void currentQuantum(int); - -////////////////////////////////////////////////////////////////////// - /* Private members */ -////////////////////////////////////////////////////////////////////// -private: - //! pointer to a GLC_World - GLC_World* m_pWorld; - - //! The 3DS File name - QString m_FileName; - - //! OpenGL Context - const QGLContext* m_pQGLContext; - - //! The current mesh - GLC_Mesh* m_pCurrentMesh; - - //! The Lib3dsFile Structure - Lib3dsFile* m_pLib3dsFile; - - //! The GLC_Material Hash Table - QHash m_Materials; - - //! The next material index - int m_NextMaterialIndex; - - // The Hash of loaded meshes - QSet m_LoadedMeshes; - - // Initial quantum value - const int m_InitQuantumValue; - - // The current quantum value - int m_CurrentQuantumValue; - - // The previous quantum value - int m_PreviousQuantumValue; - - // The number of meshes - int m_NumberOfMeshes; - - // The Current mesh index - int m_CurrentMeshNumber; - - //! The list of attached file name - QSet m_ListOfAttachedFileName; - - - - - -}; - -#endif /*GLC_3DSTOWORLD_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_3dxmltoworld.h b/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_3dxmltoworld.h deleted file mode 100644 index 6c2f92475..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_3dxmltoworld.h +++ /dev/null @@ -1,353 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_3dxmltoworld.h interface for the GLC_3dxmlToWorld class. - -#ifndef GLC_3DXMLTOWORLD_H_ -#define GLC_3DXMLTOWORLD_H_ - -#include -#include -#include -#include -#include -#include -#include "../maths/glc_matrix4x4.h" -#include "../sceneGraph/glc_3dviewinstance.h" - -#include "glc_config.h" - -class GLC_World; -class QGLContext; -class QuaZip; -class QuaZipFile; -class GLC_StructReference; -class GLC_StructInstance; -class GLC_Mesh; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_3dxmlToWorld -/*! \brief GLC_3dxmlToWorld : Create an GLC_World from 3dxml file */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_3dxmlToWorld : public QObject -{ - Q_OBJECT - - //! \struct AssyLink - /*! \brief AssyLink : Assemblage link between parent id and GLC_StructInstance* */ - struct AssyLink - { - unsigned int m_ParentRefId; - GLC_StructInstance* m_pChildInstance; - unsigned int m_InstanceId; - inline bool operator < (const AssyLink& l) const - {return m_InstanceId < l.m_InstanceId;} - }; - //! \class RepLink - /*! \brief RepLink : Representation link between reference id and representation id */ - struct RepLink - { - unsigned int m_ReferenceId; - unsigned int m_RepId; - }; - //! \class MaterialRef - /*! \brief MaterialRef : Material reference containing id, name and associated file */ - struct MaterialRef - { - QString m_Id; - QString m_Name; - QString m_AssociatedFile; - }; - - //! \class OccurenceAttrib - /*! \brief OccurenceAttrib : Specifique occurence attribute */ - struct OccurenceAttrib - { - inline OccurenceAttrib() - : m_IsVisible(true) - , m_pRenderProperties(NULL) - {} - inline ~OccurenceAttrib() - {delete m_pRenderProperties;} - - //! Visibility attribute - bool m_IsVisible; - //! Render properties attribute - GLC_RenderProperties* m_pRenderProperties; - }; - - typedef QHash ReferenceHash; - typedef QHash InstanceOfHash; - typedef QHash InstanceOfExtRefHash; - typedef QSet SetOfExtRef; - typedef QList AssyLinkList; - typedef QList RepLinkList; - typedef QHash ExternalReferenceHash; - typedef QHash MaterialHash; - typedef QHash ReferenceRepHash; - -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - GLC_3dxmlToWorld(const QGLContext*); - - virtual ~GLC_3dxmlToWorld(); -//@} -////////////////////////////////////////////////////////////////////// -/*! @name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Create an GLC_World from an input 3DXML File - GLC_World* createWorldFrom3dxml(QFile &, bool StructureOnly); - - //! Create 3DRep from an 3DXML rep - GLC_3DRep create3DrepFrom3dxmlRep(const QString&); - - //! Get the list of attached files - inline QStringList listOfAttachedFileName() const - {return m_ListOfAttachedFileName.toList();} - - -//@} - -////////////////////////////////////////////////////////////////////// -// Qt Signals -////////////////////////////////////////////////////////////////////// - signals: - void currentQuantum(int); - -////////////////////////////////////////////////////////////////////// -/*! @name Private services functions */ -//@{ -////////////////////////////////////////////////////////////////////// -private: - //! Load the 3dxml's manifest - void loadManifest(); - - //! Close all files and clear memmory - void clear(); - - //! Go to an Element of a xml - void goToElement(const QString&); - - //! Go to a Rep of a xml - void goToRepId(const QString&); - - //! Go to Polygonal Rep Type - void gotToPolygonalRepType(); - - // Return the content of an element - QString getContent(const QString&); - - //! Read the specified attribute - QString readAttribute(const QString&, bool required= false); - - //! Load the product structure - void loadProductStructure(); - - //! Load a Reference3D - void loadReference3D(); - - //! Load a Instance3D - void loadInstance3D(); - - //! Load a Reference representation - void loadReferenceRep(); - - //! Load a Instance representation - void loadInstanceRep(); - - //! Load External Ref - void loadExternalRef3D(); - - //! Add a reference from 3dxml to m_ExternalReferenceHash - GLC_StructReference* createReferenceRep(QString id= QString()); - - //! Load Matrix - GLC_Matrix4x4 loadMatrix(const QString&); - - //! Create the unfolded tree - void createUnfoldedTree(); - - //! Check for XML error - //! Throw ecxeption if error occur - void checkForXmlError(const QString&); - - //! Load Level of detail - void loadLOD(GLC_Mesh*); - - //! Return true if the end of specified element is not reached - inline bool endElementNotReached(const QString& element) - {return !m_pStreamReader->atEnd() && !(m_pStreamReader->isEndElement() && (m_pStreamReader->name() == element));} - - //! Return true if the start of specified element is not reached - inline bool startElementNotReached(const QString& element) - {return !m_pStreamReader->atEnd() && !(m_pStreamReader->isStartElement() && (m_pStreamReader->name() == element));} - - //! Load a face - void loadFace(GLC_Mesh*, const int lod, double accuracy); - - //! Load polyline - void loadPolyline(GLC_Mesh*); - - //! Clear material hash - void clearMaterialHash(); - - //! Load surface attributes - GLC_Material* loadSurfaceAttributes(); - - //! get material - GLC_Material* getMaterial(); - - //! Set the stream reader to the specified file - bool setStreamReaderToFile(QString, bool test= false); - - //! Load graphics properties - void loadGraphicsProperties(); - - //! Load default view property - void loadDefaultViewProperty(); - - //! Load the local representation - void loadLocalRepresentations(); - - //! Load the extern representation - void loadExternRepresentations(); - - //! Return the instance of the current extern representation - GLC_3DRep loadCurrentExtRep(); - - //! Load CatMaterial Ref if present - void loadCatMaterialRef(); - - //! Create material from material def file - void loadMaterialDef(const MaterialRef&); - - //! Load CATRepIage if present - void loadCatRepImage(); - - //! Try to construct a texture with the specified fileName - GLC_Texture* loadTexture(QString); - - //! Factorize material use - void factorizeMaterial(GLC_3DRep*); - - //! Set fileName of the given 3DRep - void setRepresentationFileName(GLC_3DRep* pRep); - -//@} - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - //! OpenGL Context - const QGLContext* m_pQGLContext; - - //! Xml Reader - QXmlStreamReader* m_pStreamReader; - - //! The 3dxml fileName - QString m_FileName; - - //! The Quazip archive - QuaZip* m_p3dxmlArchive; - - //! The Quazip file (Entry or archive) - QuaZipFile* m_p3dxmlFile; - - //! The current file (if there is no archive) - QFile* m_pCurrentFile; - - //! The root Name of the 3dxml file - QString m_RootName; - - //! The World to return - GLC_World* m_pWorld; - - //! Reference Hash Table - ReferenceHash m_ReferenceHash; - - //! The Structure Link Hash Table - AssyLinkList m_AssyLinkList; - - //! Instance of Hash table - InstanceOfHash m_InstanceOf; - - //! The set of ext ref to load - SetOfExtRef m_SetOfExtRef; - - //! Instance of ext ref hash table - InstanceOfExtRefHash m_InstanceOfExtRefHash; - - //! Externam reference hash table - ExternalReferenceHash m_ExternalReferenceHash; - - //! Hash table of material - MaterialHash m_MaterialHash; - - //! Flag to know if the 3dxml is in an archive - bool m_IsInArchive; - - //! The Reference representation hash table - ReferenceRepHash m_ReferenceRepHash; - - //! The list of local representation link - RepLinkList m_LocalRepLinkList; - - //! The list of extern representation link - RepLinkList m_ExternRepLinkList; - - //! The set of ext rep to load - SetOfExtRef m_SetOfExtRep; - - //! The 3DREP current material - GLC_Material* m_pCurrentMaterial; - - //! The image file hash table - QHash m_TextureImagesHash; - - //! Flag indicate the loading method - bool m_LoadStructureOnly; - - //! The list of attached file name - QSet m_ListOfAttachedFileName; - - //! The current file name - QString m_CurrentFileName; - - //! The current file time and date - QDateTime m_CurrentDateTime; - - //! Hash table of occurence specific attributes - QHash m_OccurenceAttrib; - - -}; - -#endif /* GLC_3DXMLTOWORLD_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_bsreptoworld.h b/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_bsreptoworld.h deleted file mode 100644 index ad57e486b..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_bsreptoworld.h +++ /dev/null @@ -1,62 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_bsreptoworld.h interface for the GLC_BSRepToWorld class. - -#ifndef GLC_BSREPTOWORLD_H_ -#define GLC_BSREPTOWORLD_H_ - -#include -#include "../glc_config.h" - -class GLC_World; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_BSRepToWorld -/*! \brief GLC_BSRepToWorld : Create an GLC_World from BSRep file */ - -/*! An GLC_BSRepToWorld extract the only mesh from an .BSRep file*/ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_BSRepToWorld -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - GLC_BSRepToWorld(); - virtual ~GLC_BSRepToWorld(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! @name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Create and return an GLC_World* from an input BSRep File - GLC_World* CreateWorldFromBSRep(QFile &file); -//@} - -}; - -#endif /* GLC_BSREPTOWORLD_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_colladatoworld.h b/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_colladatoworld.h deleted file mode 100644 index 17da10ee5..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_colladatoworld.h +++ /dev/null @@ -1,445 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_colladatoworld.h interface for the GLC_ColladaToWorld class. - -#ifndef GLC_COLLADATOWORLD_H_ -#define GLC_COLLADATOWORLD_H_ - -#include -#include -#include -#include -#include -#include - -#include "../shading/glc_material.h" -#include "../geometry/glc_mesh.h" -#include "../sceneGraph/glc_structoccurence.h" - -#include "../glc_config.h" - -class GLC_World; -class QGLContext; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_ColladaToWorld -/*! \brief GLC_ColladaToWorld : Create an GLC_World from dae file */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_ColladaToWorld : public QObject -{ -private: - Q_OBJECT - - // The 3 supported semantic - enum Semantic - { // Values are very important ! - VERTEX= 0, - NORMAL= 1, - TEXCOORD= 2 - }; - - // input data info - struct InputData - { - int m_Offset; - QString m_Source; - Semantic m_Semantic; - }; -public: - // Collada Vertice (Position index, Normal index and TexCoord index) - struct ColladaVertice - { - ColladaVertice() - : m_Values(3) - { - m_Values[0]= 0; - m_Values[1]= 0; - m_Values[2]= 0; - } - - QVector m_Values; - }; -private: - - // Material assignement - struct MatOffsetSize - { - int m_Offset; - int m_size; - }; - // The loading mesh info - struct MeshInfo - { - MeshInfo() - : m_pMesh(NULL) - , m_Datas(3) - , m_Mapping() - , m_Index() - , m_FreeIndex(0) - {} - - ~MeshInfo() {delete m_pMesh;} - // Mesh of the mesh info - GLC_Mesh* m_pMesh; - // Bulk data vector (Position, normal, texel) - QVector > m_Datas; - // Mapping between collada vertice and index - QHash m_Mapping; - // Triangle index - IndexList m_Index; - // Next index Position - GLuint m_FreeIndex; - // QHash containing material id and associated offset and size - QHash m_Materials; - }; - - // The collada Node - struct ColladaNode - { - ColladaNode(const QString id, ColladaNode* pParent) - : m_Id(id) - , m_Matrix() - , m_InstanceGeometryIDs() - , m_InstanceOffNodeIds() - , m_ChildNodes() - , m_pParent(pParent) - {} - // Destrucot not needed - // The node id - QString m_Id; - // Position matrix - GLC_Matrix4x4 m_Matrix; - // Instance geometry id - QList m_InstanceGeometryIDs; - // Instance off another node - QList m_InstanceOffNodeIds; - // Child Node - QList m_ChildNodes; - // Parent Node - ColladaNode* m_pParent; - }; - - typedef QHash MaterialHash; - typedef QHash > BulkDataHash; -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - GLC_ColladaToWorld(const QGLContext*); - - //! Destructor - virtual ~GLC_ColladaToWorld(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! @name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Create an GLC_World from an input Collada File - GLC_World* CreateWorldFromCollada(QFile &); - - //! Get the list of attached files - inline QStringList listOfAttachedFileName() const - {return m_ListOfAttachedFileName.toList();} - -//@} - -////////////////////////////////////////////////////////////////////// -// Qt Signals -////////////////////////////////////////////////////////////////////// - signals: - void currentQuantum(int); - -////////////////////////////////////////////////////////////////////// -/*! @name Private services functions */ -//@{ -////////////////////////////////////////////////////////////////////// -private: - //! Go to an Element of a xml - void goToElement(const QString&); - - //! Go to the end Element of a xml - void goToEndElement(const QString&); - - // Return the content of an element - QString getContent(const QString&); - - //! Read the specified attribute - QString readAttribute(const QString&, bool required= false); - - //! Check for XML error - //! Throw ecxeption if error occur - void checkForXmlError(const QString&); - - //! Throw an exception with the specified text - void throwException(const QString&); - - //! Return true if the end of specified element is not reached - inline bool endElementNotReached(const QString& element) - {return !m_pStreamReader->atEnd() && !(m_pStreamReader->isEndElement() && (m_pStreamReader->name() == element));} - - //! Return true if the start of specified element is not reached - inline bool startElementNotReached(const QString& element) - {return !m_pStreamReader->atEnd() && !(m_pStreamReader->isStartElement() && (m_pStreamReader->name() == element));} - - //! Clear memmory - void clear(); - - //! Load library_images element - void loadLibraryImage(); - - //! Load image element - void loadImage(); - - //! Load library_materials element - void loadLibraryMaterials(); - - //! Load a material - void loadMaterial(); - - //! Load library_effects element - void loadLibraryEffects(); - - //! Load an effect - void loadEffect(); - - //! Load profile_COMMON - void loadProfileCommon(); - - //! Load a new param - void loadNewParam(); - - //! Load a surface - void loadSurface(const QString&); - - //! Load Sampler 2D - void loadSampler2D(const QString&); - - //! Load technique - void loadTechnique(); - - //! load material technique - void loadMaterialTechnique(const QString&); - - //! load common color or texture - void loadCommonColorOrTexture(const QString&); - - //! Load transparent - void loadTransparent(); - - //! Load transparency - void loadTransparency(const QString&); - - //! Load shininess - void loadShininess(const QString&); - - //! Read a xml Color - QColor readXmlColor(); - - //! Load library_geometries element - void loadLibraryGeometries(); - - //! Load an geometry element - void loadGeometry(); - - //! Load a mesh - void loadMesh(); - - //! Load Vertex bulk data - void loadVertexBulkData(); - - //! Load attributes and identity of mesh vertices - void loadVertices(); - - //! Load polylist - void loadPolylist(); - - //! Load Polygons - void loadPolygons(); - - //! Add the polylist to the current mesh - void addPolylistToCurrentMesh(const QList&, const QList&, const QList&, const QString&); - - //! Compute Normals for the current primitive element of the current mesh from the specified offset - void computeNormalOfCurrentPrimitiveOfCurrentMesh(int offset); - - //! Load triangles - void loadTriangles(); - - //! Add the triangles to current mesh - void addTrianglesToCurrentMesh(const QList&, const QList&, const QString&); - - //! Load the library nodes - void loadLibraryNodes(); - - //! Load the library controllers - void loadLibraryContollers(); - - //! Load library_visual_scenes element - void loadVisualScenes(); - - //! Load an instance geometry - void loadInstanceGeometry(ColladaNode*); - - //! Load an instance geometry - void loadInstanceNode(ColladaNode*); - - //! Load an instance Controller - void loadInstanceController(ColladaNode*); - - //! Load a collada controller node - void loadController(); - - //! Load a Collada Node element and return it - ColladaNode* loadNode(ColladaNode*); - - //! Translate the node - void translateNode(ColladaNode*); - - //! Scale the node - void scaleNode(ColladaNode*); - - //! Rotate the node - void rotateNode(ColladaNode*); - - //! Compose Node matrix - void composeMatrixNode(ColladaNode*); - - //! Load scene element - void loadScene(); - - //! Link texture to material - void linkTexturesToMaterials(); - - //! Create mesh and link them to material - void createMesh(); - - //! Create the scene graph struct - void createSceneGraph(); - - //! Create Occurence tree from node tree - GLC_StructOccurence* createOccurenceFromNode(ColladaNode*); - - //! Update progress bar - void updateProgressBar(); - - - -//@} -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - //! The world to built - GLC_World* m_pWorld; - - //! OpenGL Context - const QGLContext* m_pQGLContext; - - //! Xml Reader - QXmlStreamReader* m_pStreamReader; - - //! The collada fileName - QString m_FileName; - - //! The collada file - QFile* m_pFile; - - //! Map image id to image file name - QHash m_ImageFileHash; - - //! Map materialInstance to material - QHash m_MaterialLibHash; - - //! Map surface sid to image id - QHash m_SurfaceImageHash; - - //! Map sampler2D sid to surface sid - QHash m_Sampler2DSurfaceHash; - - //! Material Effect hash table - MaterialHash m_MaterialEffectHash; - - //! The current material - GLC_Material* m_pCurrentMaterial; - - //! Texture to material link - MaterialHash m_TextureToMaterialHash; - - //! Bulk data hash table - BulkDataHash m_BulkDataHash; - - //! Map vertices id to source data id - QHash m_VerticesSourceHash; - - //! The current loadeed mesh - MeshInfo* m_pMeshInfo; - - //! Hash table off geometry (MeshInfo*) - QHash m_GeometryHash; - - //! Hash table off collada node - QHash m_ColladaNodeHash; - - //! The list of top level node - QList m_TopLevelColladaNode; - - //! Mapping between material instance and material - QHash m_MaterialInstanceMap; - - //! 3DRep hash table - QHash m_3DRepHash; - - //! GLC instance Hash table - QHash m_StructInstanceHash; - - //! The current Collada Element id - QString m_CurrentId; - - //! The Collada file size - qint64 m_FileSize; - - //! The current offset in the collada file - int m_CurrentOffset; - - //! The list of attached file name - QSet m_ListOfAttachedFileName; - - //! The transparent mode is RGB_ZERO - bool m_TransparentIsRgbZero; - - -}; - -// To use ColladaVertice as a QHash key -inline bool operator==(const GLC_ColladaToWorld::ColladaVertice& vertice1, const GLC_ColladaToWorld::ColladaVertice& vertice2) -{ return (vertice1.m_Values == vertice2.m_Values);} - -inline uint qHash(const GLC_ColladaToWorld::ColladaVertice& vertice) -{ return qHash(QString::number(vertice.m_Values.at(0)) + QString::number(vertice.m_Values.at(1)) + QString::number(vertice.m_Values.at(2)));} - -#endif /* GLC_COLLADATOWORLD_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_objmtlloader.h b/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_objmtlloader.h deleted file mode 100644 index a325e909c..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_objmtlloader.h +++ /dev/null @@ -1,135 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_objmtlloader.h interface for the GLC_ObjMtlLoader class. - -#ifndef GLC_OBJMTLLOADER_H_ -#define GLC_OBJMTLLOADER_H_ - -#include -#include -#include -#include <../shading/glc_material.h> - -#include "../glc_config.h" - -class QGLContext; -////////////////////////////////////////////////////////////////////// -//! \class GLC_ObjMtlLoader -/*! \brief GLC_ObjMtlLoader : Load the mtl file associated to a OBJ File */ - -/*! An GLC_ObjMtlLoader create GLC_Material from the .mtl file \n - */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_ObjMtlLoader -{ - -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - GLC_ObjMtlLoader(const QGLContext*, const QString&); - - virtual ~GLC_ObjMtlLoader(); -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return true if the material name is found - inline bool contains(const QString &name) const - {return m_Materials.contains(name);} - - //! Get a material from is name - GLC_Material* material(const QString&); - - //! Get the list of attached files - inline QStringList listOfAttachedFileName() const - {return m_ListOfAttachedFileName.toList();} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Load the materials - bool loadMaterials(); - -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Private services functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -private: - //! Extract the material name - bool extractMaterialName(QString &); - - //! Extract the texture file name - void extractTextureFileName(QString &); - - //! Extract RGB value - bool extractRGBValue(QString &); - - //! Extract One value - bool extractOneValue(QString &); - - //! Get texture file name without parameters - QString getTextureName(QTextStream &, const QString &); - - //! Process Maya specific obj - void processMayaSpecific(); - - -//@} - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - //! The mtl file name - QString m_FileName; - - //! Current material - GLC_Material* m_pCurrentMaterial; - - //! The GLC_Material Hash Table - QHash m_Materials; - - //! the Load status - QString m_LoadStatus; - - //! OpenGL Context - const QGLContext *m_pQGLContext; - - //! The list of attached file name - QSet m_ListOfAttachedFileName; - - -}; - -#endif /*GLC_OBJMTLLOADER_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_objtoworld.h b/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_objtoworld.h deleted file mode 100644 index 33e4f37aa..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_objtoworld.h +++ /dev/null @@ -1,272 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_objToworld.h interface for the GLC_ObjToWorld class. - -#ifndef GLC_OBJTOWORLD_H_ -#define GLC_OBJTOWORLD_H_ - -#include -#include -#include -#include -#include -#include - -#include "../maths/glc_vector3d.h" -#include "../maths/glc_vector2df.h" -#include "../maths/glc_vector3df.h" -#include "../geometry/glc_mesh.h" - -#include "../glc_config.h" - -enum FaceType -{ - notSet, - coordinate, - coordinateAndTexture, - coordinateAndNormal, - coordinateAndTextureAndNormal -}; - -class GLC_World; -class GLC_ObjMtlLoader; -class QGLContext; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_ObjToWorld -/*! \brief GLC_ObjToWorld : Create an GLC_World from obj file */ - -/*! An GLC_ObjToWorld extract the meshs from an .obj file \n - * List of elements extracted from the OBJ - * - Vertex - * - Face - * - Texture coordinate - * - Normal coordinate - */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_ObjToWorld : public QObject -{ - Q_OBJECT - -public: - // OBJ Vertice (Position index, Normal index and TexCoord index) - struct ObjVertice - { - ObjVertice() - : m_Values(3) - { - m_Values[0]= 0; - m_Values[1]= 0; - m_Values[2]= 0; - } - ObjVertice(int v1, int v2, int v3) - : m_Values(3) - { - m_Values[0]= v1; - m_Values[1]= v2; - m_Values[2]= v3; - } - - QVector m_Values; - }; - - // Material assignement - struct MatOffsetSize - { - MatOffsetSize() - : m_Offset(0) - , m_size(0) - {} - int m_Offset; - int m_size; - }; - - // Current OBJ Mesh - struct CurrentObjMesh - { - CurrentObjMesh(const QString materialName) - : m_pMesh(new GLC_Mesh()) - , m_Positions() - , m_Normals() - , m_Texels() - , m_Index() - , m_pLastOffsetSize(new MatOffsetSize()) - , m_Materials() - , m_NextFreeIndex(0) - , m_ObjVerticeIndexMap() - { - m_Materials.insert(materialName, m_pLastOffsetSize); - } - ~CurrentObjMesh() - { - QHash::iterator i= m_Materials.begin(); - while (m_Materials.constEnd() != i) - { - delete i.value(); - ++i; - } - } - GLC_Mesh* m_pMesh; - QList m_Positions; - QList m_Normals; - QList m_Texels; - //! The index of the current Mesh - IndexList m_Index; - // Pointer to the last matOffsetSize - MatOffsetSize* m_pLastOffsetSize; - // QHash containing material id and associated offset and size - QHash m_Materials; - //! The next free index - int m_NextFreeIndex; - //! The Hash table of obj vertice mapping to index - QHash m_ObjVerticeIndexMap; - }; - -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// - -public: - GLC_ObjToWorld(const QGLContext*); - virtual ~GLC_ObjToWorld(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Create an GLC_World from an input OBJ File - GLC_World* CreateWorldFromObj(QFile &file); - - //! Get the list of attached files - inline QStringList listOfAttachedFileName() const{return m_ListOfAttachedFileName;} -//@} - -////////////////////////////////////////////////////////////////////// -// Private services functions -////////////////////////////////////////////////////////////////////// -private: - //! Return the name of the mtl file - QString getMtlLibFileName(QString); - - //! Scan a line previously extracted from OBJ file - void scanLigne(QString &); - - //! Change current group - void changeGroup(QString); - - //! Extract a 3D Vector from a string - QList extract3dVect(QString &); - - //! Extract a 2D Vector from a string - QList extract2dVect(QString &); - - //! Extract a face from a string - void extractFaceIndex(QString &); - - //! Set Current material index - void setCurrentMaterial(QString &line); - - //! Extract a vertex from a string - void extractVertexIndex(QString ligne, int &Coordinate, int &Normal, int &TextureCoordinate); - - //! set the OBJ File type - void setObjType(QString &); - - //! compute face normal - GLC_Vector3df computeNormal(GLuint, GLuint, GLuint); - - //! clear objToWorld allocate memmory - void clear(); - - //! Merge Mutli line in one - void mergeLines(QString*, QTextStream*); - - //! Add the current Obj mesh to the world - void addCurrentObjMeshToWorld(); - - - -////////////////////////////////////////////////////////////////////// -// Qt Signals -////////////////////////////////////////////////////////////////////// - signals: - void currentQuantum(int); - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - //! pointer to a GLC_World - GLC_World* m_pWorld; - - //! The Obj File name - QString m_FileName; - - //! OpenGL Context - const QGLContext* m_pQGLContext; - - //! the Obj Mtl loader - GLC_ObjMtlLoader* m_pMtlLoader; - - //! The current line number - int m_CurrentLineNumber; - - //! The current mesh - CurrentObjMesh* m_pCurrentObjMesh; - - //! Face type - FaceType m_FaceType; - - //! List of material already used by the current mesh - QHash m_CurrentMeshMaterials; - - //! Current material name - QString m_CurrentMaterialName; - - //! The list of attached file name - QStringList m_ListOfAttachedFileName; - - //! The position bulk data - QList m_Positions; - - //! The normal bulk data - QList m_Normals; - - //! The texture coordinate bulk data - QList m_Texels; -}; - -// To use ObjVertice as a QHash key -inline bool operator==(const GLC_ObjToWorld::ObjVertice& vertice1, const GLC_ObjToWorld::ObjVertice& vertice2) -{ return (vertice1.m_Values == vertice2.m_Values);} - -inline uint qHash(const GLC_ObjToWorld::ObjVertice& vertice) -{ return qHash(QString::number(vertice.m_Values.at(0)) + QString::number(vertice.m_Values.at(1)) + QString::number(vertice.m_Values.at(2)));} - - -#endif /*GLC_OBJTOWORLD_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_offtoworld.h b/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_offtoworld.h deleted file mode 100644 index dd99588f4..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_offtoworld.h +++ /dev/null @@ -1,159 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_offtoworld.h interface for the GLC_OffToWorld class. - -#ifndef GLC_OFFTOWORLD_H_ -#define GLC_OFFTOWORLD_H_ - -#include -#include -#include -#include -#include -#include - -#include "../maths/glc_vector3d.h" -#include "../maths/glc_vector2df.h" -#include "../maths/glc_vector3df.h" -#include "../geometry/glc_mesh.h" - -#include "../glc_config.h" - -class GLC_World; -class QGLContext; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_OffToWorld -/*! \brief GLC_OffToWorld : Create an GLC_World from off file */ - -/*! An GLC_OffToWorld extract the only mesh from an .off file \n - * List of elements extracted from the off - * - Vertex - * - Face - * - Normal coordinate - * - Face Color - * - Vertex Color - */ -////////////////////////////////////////////////////////////////////// - -class GLC_LIB_EXPORT GLC_OffToWorld : public QObject -{ - Q_OBJECT -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// - -public: - GLC_OffToWorld(); - virtual ~GLC_OffToWorld(); -//@} -////////////////////////////////////////////////////////////////////// -/*! @name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Create an GLC_World from an input OFF File - GLC_World* CreateWorldFromOff(QFile &file); -//@} - -////////////////////////////////////////////////////////////////////// -/*! @name Private services functions */ -//@{ -////////////////////////////////////////////////////////////////////// -private: - //! clear stlToWorld allocate memmory - void clear(); - - //! Extract a vertex from a string and add color component if needed - void extractVertex(QString &); - - //! Extract Number off Vertex and faces - void extractNbrVertexsAndNbrFaces(QString &); - - //! Extract a face from a string - void extractFaceIndex(QString &); - - //! compute faces normal - void computeNormal(); - - -//@} - -////////////////////////////////////////////////////////////////////// -// Qt Signals -////////////////////////////////////////////////////////////////////// - signals: - void currentQuantum(int); - -////////////////////////////////////////////////////////////////////// - /* Private members */ -////////////////////////////////////////////////////////////////////// -private: - //! pointer to a GLC_World - GLC_World* m_pWorld; - - //! The Stl File name - QString m_FileName; - - //! The current line number - int m_CurrentLineNumber; - - //! The current mesh - GLC_Mesh* m_pCurrentMesh; - - //! Index of the current vertex - int m_CurVertexIndex; - - //! The number of vertexs - int m_NbrOfVertexs; - - //! The number of faces - int m_NbrOfFaces; - - //! The OFF is a COFF - bool m_IsCoff; - - //! The OFF is 4OFF - bool m_Is4off; - - // The position bulk data - QList m_PositionBulk; - - //! The Normal Bulk data - QList m_NormalBulk; - - //! The color Bulk data - QList m_ColorBulk; - - //! The indexList - IndexList m_IndexList; - - - - -}; - -#endif /*GLC_OFFTOWORLD_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_stltoworld.h b/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_stltoworld.h deleted file mode 100644 index a25cecad6..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_stltoworld.h +++ /dev/null @@ -1,131 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_stltoworld.h interface for the GLC_StlToWorld class. - -#ifndef GLC_STLTOWORLD_H_ -#define GLC_STLTOWORLD_H_ - -#include -#include -#include -#include - -#include "../geometry/glc_mesh.h" -#include "../maths/glc_vector3df.h" - -#include "../glc_config.h" - -class GLC_World; -class QGLContext; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_StlToWorld -/*! \brief GLC_StlToWorld : Create an GLC_World from stl file */ - -/*! An GLC_StlToWorld extract the only mesh from an .stl file \n - * List of elements extracted from the STL - * - Vertex - * - Face - * - Normal coordinate - */ -////////////////////////////////////////////////////////////////////// - -class GLC_LIB_EXPORT GLC_StlToWorld : public QObject -{ - Q_OBJECT -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - GLC_StlToWorld(); - virtual ~GLC_StlToWorld(); -//@} -////////////////////////////////////////////////////////////////////// -/*! @name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Create and return an GLC_World* from an input STL File - GLC_World* CreateWorldFromStl(QFile &file); -//@} - -////////////////////////////////////////////////////////////////////// -/*! @name Private services functions */ -//@{ -////////////////////////////////////////////////////////////////////// -private: - //! clear stlToWorld allocate memmory - void clear(); - //! Scan a line previously extracted from STL file - void scanFacet(); - //! Extract a 3D Vector from a string - GLC_Vector3df extract3dVect(QString &); - //! Load Binarie STL File - void LoadBinariStl(QFile &); - - - -//@} - -////////////////////////////////////////////////////////////////////// -// Qt Signals -////////////////////////////////////////////////////////////////////// - signals: - void currentQuantum(int); - -////////////////////////////////////////////////////////////////////// - /* Private members */ -////////////////////////////////////////////////////////////////////// -private: - //! pointer to a GLC_World - GLC_World* m_pWorld; - - //! The Stl File name - QString m_FileName; - - //! The current line number - int m_CurrentLineNumber; - - //! The Text Stream - QTextStream m_StlStream; - - //! The current mesh - GLC_Mesh* m_pCurrentMesh; - - //! Current face index - IndexList m_CurrentFace; - - //! Vertex Bulk data - QList m_VertexBulk; - - //! Normal Bulk data - QList m_NormalBulk; - - //! The current index - GLuint m_CurrentIndex; -}; - -#endif /*GLC_STLTOWORLD_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_worldto3dxml.h b/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_worldto3dxml.h deleted file mode 100644 index e684b3109..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/io/glc_worldto3dxml.h +++ /dev/null @@ -1,271 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_worldto3dxml.h interface for the GLC_WorldTo3dxml class. - -#ifndef GLC_WORLDTO3DXML_H_ -#define GLC_WORLDTO3DXML_H_ -#include -#include - -#include "../sceneGraph/glc_world.h" -#include "../glc_config.h" -#include - -class QuaZip; -class QuaZipFile; -class QFile; -class GLC_Mesh; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_WorldTo3dxml -/*! \brief GLC_WorldTo3dxml : Export a GLC_World to a 3dxml file */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_WorldTo3dxml : public QObject -{ - Q_OBJECT - -public: - enum ExportType - { - Compressed3dxml, - Exploded3dxml, - StructureOnly - }; -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - GLC_WorldTo3dxml(const GLC_World& world, bool threaded= true); - virtual ~GLC_WorldTo3dxml(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! @name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Save the world to the specified file name - bool exportTo3dxml(const QString& filename, GLC_WorldTo3dxml::ExportType exportType, bool exportMaterial= true); - - //! Set the name of the 3dxml generator default is GLC_LIB - inline void setGeneratorName(const QString& generator) - {m_Generator= generator;} - - //! set interrupt flag adress - void setInterupt(QReadWriteLock* pReadWriteLock, bool* pInterupt); -//@} - -////////////////////////////////////////////////////////////////////// -/*! @name Private services functions */ -//@{ -////////////////////////////////////////////////////////////////////// -private: - - //! Write 3DXML Header - void writeHeader(); - - //! Write 3DXML reference 3D element - void writeReference3D(const GLC_StructReference* pRef); - - //! Write 3DXML reference representation - void writeReferenceRep(const GLC_3DRep* p3DRep); - - //! Write 3DXML instance 3D element - void writeInstance3D(const GLC_StructInstance* pInstance, unsigned int parentId); - - //! Write 3DXML instance 3D element - void writeInstanceRep(const GLC_3DRep* p3DRep, unsigned int parentId); - - //! Set the streamwriter to the specified file and return true if success - void setStreamWriterToFile(const QString& fileName); - - //! Add the manifest to 3DXML compressed file - void addManifest(); - - //! Export the assembly structure from the list of reference - void exportAssemblyStructure(); - - //! Export assembly from the given occurence - void exportAssemblyFromOccurence(const GLC_StructOccurence* pOccurence); - - //! Return the 3DXML string of the given matrix - QString matrixString(const GLC_Matrix4x4& matrix); - - //! Write the given 3DRep to 3DXML 3DRep - void write3DRep(const GLC_3DRep* pRep, const QString& fileName); - - //! Return the file name of the given 3DRep - QString representationFileName(const GLC_3DRep* pRep); - - //! Write the given mesh to 3DXML 3DRep - void writeGeometry(const GLC_Mesh* pMesh); - - //! Write the geometry face from the given lod and material - void writeGeometryFace(const GLC_Mesh* pMesh, int lod, GLC_uint materialId); - - //! Write surface attributes - void writeSurfaceAttributes(const GLC_Material* pMaterial); - - //! Write edges - void writeEdges(const GLC_Mesh* pMesh); - - //! Write lines attributes - void writeLineAttributes(const QColor& color); - - //! Write Material - void writeMaterial(const GLC_Material* pMaterial); - - //! Write material attributes - void writeMaterialAttributtes(const QString& name, const QString& type, const QString& value); - - //! Return a QString of a color - QString colorToString(const QColor& color); - - //! Write the CATRepImage.3dxml file - void writeCatRepImageFile(const QList& materialList); - - //! Write CATRepresentationImage of the given material and id - void writeCATRepresentationImage(const GLC_Material* pMat, unsigned int id); - - //! Write all material related files in the 3dxml - void writeAllMaterialRelatedFilesIn3dxml(); - - //! Write image file in 3DXML archive or folder - void writeImageFileIn3dxml(const QList& materialList); - - //! Write de CATMaterialRef - void writeCatMaterialRef(const QList& materialList); - - //! Write a material in the CATMaterialRef - void writeMaterialToCatMaterialRef(const GLC_Material* pMat, unsigned int* id); - - //! Add the given texture to 3DXML with the given name - void addImageTextureTo3dxml(const QImage& image, const QString& fileName); - - //! Transform the given name to the 3DXML name (no double) - QString xmlFileName(const QString& fileName); - - //! Write extension attributes to 3DXML - void writeExtensionAttributes(GLC_Attributes* pAttributes); - - //! Write the default view property of the given occurence - void writeOccurenceDefaultViewProperty(const GLC_StructOccurence* pOccurence); - - //! return true if export must continu - bool continu(); - -//@} - -////////////////////////////////////////////////////////////////////// -// Qt Signals -////////////////////////////////////////////////////////////////////// - signals: - void currentQuantum(int); - -////////////////////////////////////////////////////////////////////// - /* Private members */ -////////////////////////////////////////////////////////////////////// -private: - //! The world to export - GLC_World m_World; - - //! The export type - ExportType m_ExportType; - - //! The file name in which the world is exported - QString m_FileName; - - //! The Stream writer - QXmlStreamWriter* m_pOutStream; - - //! QString the 3DXML Generator - QString m_Generator; - - //! The current 3DXML id - unsigned int m_CurrentId; - - //! The 3DXML Archive - QuaZip* m_p3dxmlArchive; - - //! The current quazp file - QuaZipFile* m_pCurrentZipFile; - - //! The current file - QFile* m_pCurrentFile; - - //! the 3dxml absolute path - QString m_AbsolutePath; - - //! Map reference to 3dxml id - QHash m_ReferenceToIdHash; - - //! Map instance to 3dxml id - QHash m_InstanceToIdHash; - - //! Map reference rep to 3dxml id - QHash m_ReferenceRepToIdHash; - - //! Map Reference rep to 3dxml fileName - QHash m_ReferenceRepTo3dxmlFileName; - - //! InstanceRep SET - QSet m_InstanceRep; - - //! Map between material id and 3DRep name - QHash m_MaterialIdToMaterialName; - - //! Map between material id and 3dxml image id - QHash m_MaterialIdToMaterialId; - - //! Map between material id and 3DXML texture name - QHash m_MaterialIdToTexture3dxmlName; - - //! Map between material id and 3dxml image id - QHash m_MaterialIdTo3dxmlImageId; - - //! Flag to know if material must be exported - bool m_ExportMaterial; - - //! Set of files in the 3dxml - QSet m_3dxmlFileSet; - - //! file name increment - unsigned int m_FileNameIncrement; - - //! List of structOccurence with overload properties - QList m_ListOfOverLoadedOccurence; - - //! Mutex - QReadWriteLock* m_pReadWriteLock; - - //! Flag to know if export must be interupted - bool* m_pIsInterupted; - - //! Flag to know if export is threaded (the default) - bool m_IsThreaded; - -}; - -#endif /* GLC_WORLDTO3DXML_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_geomtools.h b/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_geomtools.h deleted file mode 100644 index 22ecff098..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_geomtools.h +++ /dev/null @@ -1,108 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_geomtools.h declaration of geometry tools functions - -#ifndef GLC_GEOMTOOLS_H_ -#define GLC_GEOMTOOLS_H_ - -#include -#include -#include "glc_vector3d.h" -#include "glc_line3d.h" -#include "glc_plane.h" - -#include "../geometry/glc_mesh.h" - -#include "../glc_config.h" - -namespace glc -{ - -////////////////////////////////////////////////////////////////////// -/*! \name Tools Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// - //! test if the given 2D polygon is convex - bool polygon2DIsConvex(const QList& vertices); - - //! Test if the given 3d polygon is convex - bool polygonIsConvex(QList* pIndexList, const QList& bulkList); - - //! find intersection between two 2D segments - /*! Return the intersection as QVector of GLC_Point2d - * - Empty QVector if there is no intersection - * - Qvector size 1 if there is a unique intersection - * - Qvector size 2 if the segement overlap*/ - GLC_LIB_EXPORT QVector findIntersection(const GLC_Point2d&, const GLC_Point2d&, const GLC_Point2d&, const GLC_Point2d&); - - //! Return true if there is an intersection between 2 segments - GLC_LIB_EXPORT bool isIntersected(const GLC_Point2d&, const GLC_Point2d&, const GLC_Point2d&, const GLC_Point2d&); - - //! return true if there is an intersection between a ray and a segment - GLC_LIB_EXPORT bool isIntersectedRaySegment(const GLC_Point2d&, const GLC_Vector2d&, const GLC_Point2d&, const GLC_Point2d&); - - //! Find intersection of two intervals [u0, u1] and [v0, v1] - /*! Return the intersection as QVector of GLC_Vector2d - * - Empty QVector if there is no intersection - * - Qvector size 1 if there is a unique intersection - * - Qvector size 2 if the segement overlap*/ - GLC_LIB_EXPORT QVector findIntersection(const double&, const double&, const double&, const double&); - - //! Return true if the segment is in polygon cone - GLC_LIB_EXPORT bool segmentInCone(const GLC_Point2d&, const GLC_Point2d&, const GLC_Point2d&, const GLC_Point2d&); - - //! Return true if the segment is a polygon diagonal - GLC_LIB_EXPORT bool isDiagonal(const QList&, const int, const int); - - //! Triangulate a polygon - GLC_LIB_EXPORT void triangulate(QList&, QList&, QList&); - - //! Return true if the polygon is couterclockwise ordered - GLC_LIB_EXPORT bool isCounterclockwiseOrdered(const QList&); - - //! Triangulate a polygon return true if the polygon is convex - /*! If the polygon is convex the returned index is a fan*/ - GLC_LIB_EXPORT void triangulatePolygon(QList*, const QList&); - - //! Return true if the given 3d line intersect the given plane - /*! If there is an intersection point is set to the given 3d point - * If the line lie on the plane this method return false*/ - GLC_LIB_EXPORT bool lineIntersectPlane(const GLC_Line3d& line, const GLC_Plane& plane, GLC_Point3d* pPoint); - - //! Return the projected point on the given line form the given point - GLC_LIB_EXPORT GLC_Point3d project(const GLC_Point3d& point, const GLC_Line3d& line); - - //! Return the midpoint of the two given points - inline GLC_Point3d midPoint(const GLC_Point3d& point1, const GLC_Point3d point2) - { - return point1 + (point2 - point1) * 0.5; - } - - -//@} - -}; - -#endif /*GLC_GEOMTOOLS_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_interpolator.h b/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_interpolator.h deleted file mode 100644 index a91262622..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_interpolator.h +++ /dev/null @@ -1,115 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_interpolator.h interface for the GLC_Interpolator class. - -#ifndef GLC_INTERPOLATOR_H_ -#define GLC_INTERPOLATOR_H_ - -#include "glc_vector3d.h" -#include "glc_matrix4x4.h" - -#include "../glc_config.h" - -// Types d'interpolation -enum INTERPOL_TYPE -{ - INTERPOL_LINEAIRE, - INTERPOL_ANGULAIRE, - INTERPOL_HOMOTETIE -}; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Interpolator -/*! \brief GLC_Interpolator : Matrix interpolation class*/ - -/*! An GLC_Interpolator is a class used to interpolate 2 4D matrix*/ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Interpolator -{ - -////////////////////////////////////////////////////////////////////// -// Construction -////////////////////////////////////////////////////////////////////// -public: - // Contructeur par défaut Interpolation Linéaire - GLC_Interpolator(); - -////////////////////////////////////////////////////////////////////// -// Fonctions Set -////////////////////////////////////////////////////////////////////// -public: - // Défini la matrice d'interpolation - void SetInterpolMat(int NbrPas, const GLC_Vector3d &VectDepart, const GLC_Vector3d &VectArrive - , INTERPOL_TYPE Interpolation = INTERPOL_LINEAIRE); - // Type d'interpolation - void SetType(INTERPOL_TYPE Interpolation); - // Nombre de pas - void SetNbrPas(int NbrPas); - // Vecteur d'arrivée et de depart - void SetVecteurs(const GLC_Vector3d &VectDepart, const GLC_Vector3d &VectArrive); - -////////////////////////////////////////////////////////////////////// -// Fonctions Get -////////////////////////////////////////////////////////////////////// -public: - // Retourne la matrice d'interpolation - GLC_Matrix4x4 GetInterpolMat(void) const - { - return m_InterpolMat; - } - -////////////////////////////////////////////////////////////////////// -// Fonctions de Service privée -////////////////////////////////////////////////////////////////////// -private: - // Calcul La matrice d'interpolation - bool CalcInterpolMat(void); - - // Calcul la matrice d'interpolation linéaire - bool CalcInterpolLineaireMat(void); - - // Calcul la matrice d'interpolation angulaire - bool CalcInterpolAngulaireMat(void); - -////////////////////////////////////////////////////////////////////// -// Membres privés -////////////////////////////////////////////////////////////////////// -private: - // Vecteur de départ - GLC_Vector3d m_VectDepart; - // Vecteur d'arriver - GLC_Vector3d m_VectArrive; - - // Type d'interpolation courante - INTERPOL_TYPE m_InterpolType; - - // Nombre de pas d'interpolation - int m_nNbrPas; - - // Matrice d'interpolation - GLC_Matrix4x4 m_InterpolMat; -}; - -#endif /*GLC_INTERPOLATOR_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_line3d.h b/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_line3d.h deleted file mode 100644 index 5ec6f19fe..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_line3d.h +++ /dev/null @@ -1,100 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_line3d.h Interface for the GLC_Line3d class. - -#ifndef GLC_LINE3D_H_ -#define GLC_LINE3D_H_ - -#include "glc_vector3d.h" - -#include "glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Line3d -/*! \brief GLC_Line3d : Math 3d line representation */ - -/*! GLC_Line3d is definined by a 3d point and a vector*/ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Line3d -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - GLC_Line3d(); - - //! Construct a 3d line with the given 3d point and vector - GLC_Line3d(const GLC_Point3d& point, const GLC_Vector3d& vector); - - //! Construct a 3d line with the given 3d line - GLC_Line3d(const GLC_Line3d& line); - - //! Destructor - ~GLC_Line3d(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the starting 3d point of this line - inline GLC_Point3d startingPoint() const - {return m_Point;} - - //! Return the direction vector of this line - inline GLC_Vector3d direction() const - {return m_Vector;} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Set the starting point of this 3d line - inline void setStartingPoint(const GLC_Point3d& point) - {m_Point= point;} - - //! Set the direction vector of this line - inline void setDirection(const GLC_Vector3d& direction) - {m_Vector= direction;} -//@} - -////////////////////////////////////////////////////////////////////// -// Private Member -////////////////////////////////////////////////////////////////////// -private: - //! Starting point of the 3d line - GLC_Point3d m_Point; - - //! Vector of the line - GLC_Vector3d m_Vector; - -}; - -#endif /* GLC_LINE3D_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_matrix4x4.h b/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_matrix4x4.h deleted file mode 100644 index 517705d88..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_matrix4x4.h +++ /dev/null @@ -1,638 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_matrix4x4.h interface for the GLC_Matrix4x4 class. - -#ifndef GLC_MATRIX4X4_H_ -#define GLC_MATRIX4X4_H_ - -#include -#include "glc_vector3d.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Matrix4x4 -/*! \brief GLC_Matrix4x4 is a 4 dimensions Matrix*/ - -/*! GLC_Matrix4x4 is used to represent 3d homogeneous transformation in 3d space \n - * GLC_Matrix4x4 is a row first matrix compatible with OpenGL Matrix - * */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Matrix4x4 -{ - friend class GLC_Vector3d; - -////////////////////////////////////////////////////////////////////// -// Constructor -////////////////////////////////////////////////////////////////////// -public: -//! @name Constructor -//@{ - //! Construct an identity matrix - inline GLC_Matrix4x4(); - - //! Construct a matrix from another matrix - inline GLC_Matrix4x4(const GLC_Matrix4x4 &matrix) - {memcpy(m_Matrix, matrix.m_Matrix, sizeof(double) * 16);} - - //! Construct a matrix from an array of 16 double elements. - inline GLC_Matrix4x4(const double *pArray) - {memcpy(m_Matrix, pArray, sizeof(double) * 16);} - - //! Construct a Matrix from an array of 16 float elements. - inline GLC_Matrix4x4(const float *); - - //! Construct rotation matrix from a 3d vector and an angle in radians - inline GLC_Matrix4x4(const GLC_Vector3d &Vect, const double &dAngleRad); - - //! Construct rotation matrix from 2 3d vectors - inline GLC_Matrix4x4(const GLC_Vector3d &Vect1, const GLC_Vector3d &Vect2); - - //! Construct translation matrix from a 3d vector - inline GLC_Matrix4x4(const GLC_Vector3d &Vect) - {setMatTranslate(Vect);} - - //! Construct translation matrix from coordinates in double - inline GLC_Matrix4x4(const double Tx, const double Ty, const double Tz) - {setMatTranslate(Tx, Ty, Tz);} -//@} - -////////////////////////////////////////////////////////////////////// -/*! @name Operator Overload */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the product of this matrix to the given matrix - inline GLC_Matrix4x4 operator * (const GLC_Matrix4x4 &Mat) const; - - //! Return the result of transforming the given vector by this matrix - inline GLC_Vector3d operator * (const GLC_Vector3d &Vect) const; - - //! Return true if this matrix is equal to the given matrix - inline bool operator==(const GLC_Matrix4x4& mat) const; - - //! Return true if this matrix is not equal to the given matrix - inline bool operator!=(const GLC_Matrix4x4& mat) const - {return !operator==(mat);} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Function*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the determinant of this matrix - inline double determinant(void) const; - - //! Return a const pointer to the row first array of 16 elements of this matrix - inline const double* data(void) const - {return m_Matrix;} - - //! Return a pointer to the row first array of 16 elements of this matrix - inline double* data(void) - {return m_Matrix;} - - //! Return a QVector which contains radians Euler angle of this matrix - QVector toEuler(void) const; - - //! Return the string representation of this matrix - QString toString() const; - - //! Return the rotation matrix of this matrix - inline GLC_Matrix4x4 rotationMatrix() const; - - //! Return the isometric matrix of this matrix - inline GLC_Matrix4x4 isometricMatrix() const; - - //! Return the x Scaling of this matrix - inline double scalingX() const - {return GLC_Vector3d(m_Matrix[0], m_Matrix[1], m_Matrix[2]).length();} - - //! Return the y Scaling of this matrix - inline double scalingY() const - {return GLC_Vector3d(m_Matrix[4], m_Matrix[5], m_Matrix[6]).length();} - - //! Return the z Scaling of this matrix - inline double scalingZ() const - {return GLC_Vector3d(m_Matrix[8], m_Matrix[9], m_Matrix[10]).length();} - - //! Return the inverse of this matrix - inline GLC_Matrix4x4 inverted() const - {return GLC_Matrix4x4(*this).invert();} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Function*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Set this matrix to a rotation matrix given by a 3d vector and an angle in radian - inline GLC_Matrix4x4& setMatRot(const GLC_Vector3d &, const double &); - - //! Set this matrix to a rotation matrix given by 2 3d vectors - inline GLC_Matrix4x4& setMatRot(const GLC_Vector3d &, const GLC_Vector3d &); - - //! Set this matrix to a translation matrix given by a 3d vector - inline GLC_Matrix4x4& setMatTranslate(const GLC_Vector3d &); - - //! Set this matrix to a translation matrix given by 3 double coordinates - inline GLC_Matrix4x4& setMatTranslate(const double, const double, const double); - - //! Set this matrix to a scaling matrix define by 3 double - inline GLC_Matrix4x4& setMatScaling(const double, const double, const double); - - //! Inverse this Matrix and return a reference to this matrix - inline GLC_Matrix4x4& invert(void); - - //! Set this matrix to the identify matrix and return a reference to this matrix - inline GLC_Matrix4x4& setToIdentity(); - - //! Transpose this matrix and return a reference to this matrix - inline GLC_Matrix4x4& transpose(void); - - //! Set this matrix with Euler angle and return a reference to this matrix - GLC_Matrix4x4& fromEuler(const double, const double, const double); - - //! Set this matrix column from the given 3d vector - GLC_Matrix4x4& setColumn(int index, const GLC_Vector3d& vector); - -//@} - -////////////////////////////////////////////////////////////////////// -//! Private services Functions -////////////////////////////////////////////////////////////////////// -private: - - //! Return true if the index (argument) is in the diagonal of this matrix - inline bool isInDiagonal(const int index) const - { - if ((index == 0) || (index == 5) || (index == 10) || (index == 15)) - return true; - else - return false; - } - - //! Return the determinant of this matrix cell given from 2 int - inline double getDeterminantLC(const int, const int) const; - - //! Compute Sub 3X3 matrix given by 2 int and set the given double pointeur - inline void getSubMat(const int, const int, double *) const; - - //! Return the transpose matrix of this matrix - inline GLC_Matrix4x4 getTranspose(void) const; - - //! Return the co-matrix of this matrix - inline GLC_Matrix4x4 getCoMat4x4(void) const; - - - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - - //! Number of elements in the matrix - enum {TAILLEMAT4X4 = 16}; - //! Matrix size - enum {DIMMAT4X4 = 4}; - //! Matrix row first array - double m_Matrix[TAILLEMAT4X4]; -/* -the matrix : - a[00] a[04] a[08] a[12] - - a[01] a[05] a[09] a[13] - - a[02] a[06] a[10] a[14] - - a[03] a[07] a[11] a[15] - */ -// Tx = 12, Ty = 13, Tz = 14 -}; - -//! Return the determinant of the given Matrix 3X3 -inline double getDeterminant3x3(const double *Mat3x3) -{ - double Determinant; - - Determinant= Mat3x3[0] * ( Mat3x3[4] * Mat3x3[8] - Mat3x3[7] * Mat3x3[5]); - Determinant+= - Mat3x3[3] * ( Mat3x3[1] * Mat3x3[8] - Mat3x3[7] * Mat3x3[2]); - Determinant+= Mat3x3[6] * ( Mat3x3[1] * Mat3x3[5] - Mat3x3[4] * Mat3x3[2]); - - return Determinant; -} - -////////////////////////////////////////////////////////////////////// -// Constructor/Destructor -////////////////////////////////////////////////////////////////////// - -GLC_Matrix4x4::GLC_Matrix4x4() -{ - setToIdentity(); -} - -GLC_Matrix4x4::GLC_Matrix4x4(const float *Tableau) -{ - - for (int i=0; i < TAILLEMAT4X4; i++) - { - m_Matrix[i]= static_cast(Tableau[i]); - } -} -GLC_Matrix4x4::GLC_Matrix4x4(const GLC_Vector3d &Vect, const double &dAngleRad) -{ - setToIdentity(); - setMatRot(Vect, dAngleRad); -} - -GLC_Matrix4x4::GLC_Matrix4x4(const GLC_Vector3d &Vect1, const GLC_Vector3d &Vect2) -{ - setToIdentity(); - setMatRot(Vect1, Vect2); -} - -GLC_Matrix4x4 GLC_Matrix4x4::operator * (const GLC_Matrix4x4 &Mat) const -{ - int Colonne; - int Ligne; - int i; - double ValInt; - - int IndexInt; - - GLC_Matrix4x4 MatResult; - for (Ligne= 0; Ligne < DIMMAT4X4; Ligne++) - { - for (Colonne=0; Colonne < DIMMAT4X4; Colonne++) - { - ValInt= 0.0; - IndexInt= Colonne * DIMMAT4X4; - - for (i= 0; i < DIMMAT4X4; i++) - { - ValInt+= m_Matrix[ (i * DIMMAT4X4) + Ligne] * Mat.m_Matrix[ IndexInt + i]; - } - MatResult.m_Matrix[ IndexInt + Ligne]= ValInt; - } - } - return MatResult; -} - -GLC_Vector3d GLC_Matrix4x4::operator * (const GLC_Vector3d &Vect) const -{ - double ValInt; - int i; - GLC_Vector3d VectResult; - double mat[4]; - - for (int Index= 0; Index < DIMMAT4X4; Index++) - { - ValInt= 0.0; - for (i= 0; i < DIMMAT4X4 - 1; i++) - { - ValInt+= m_Matrix[(i * DIMMAT4X4) + Index] * Vect.m_Vector[i]; - } - ValInt+= m_Matrix[(3 * DIMMAT4X4) + Index]; - mat[Index]= ValInt; - } - - double invW= 1.0; - if (fabs(mat[3]) > 0.00001) - { - invW/= mat[3]; - } - VectResult.m_Vector[0]= mat[0] * invW; - VectResult.m_Vector[1]= mat[1] * invW; - VectResult.m_Vector[2]= mat[2] * invW; - - - return VectResult; -} - -bool GLC_Matrix4x4::operator==(const GLC_Matrix4x4& mat) const -{ - bool result= true; - int i= 0; - while (result && (i < TAILLEMAT4X4)) - { - result= (qFuzzyCompare(m_Matrix[i], mat.m_Matrix[i])); - ++i; - } - return result; -} - -GLC_Matrix4x4 GLC_Matrix4x4::rotationMatrix() const -{ - GLC_Matrix4x4 result(*this); - const double invScaleX= 1.0 / scalingX(); - const double invScaleY= 1.0 / scalingY(); - const double invScaleZ= 1.0 / scalingZ(); - result.m_Matrix[0]= result.m_Matrix[0] * invScaleX; - result.m_Matrix[1]= result.m_Matrix[1] * invScaleX; - result.m_Matrix[2]= result.m_Matrix[2] * invScaleX; - - result.m_Matrix[4]= result.m_Matrix[4] * invScaleY; - result.m_Matrix[5]= result.m_Matrix[5] * invScaleY; - result.m_Matrix[6]= result.m_Matrix[6] * invScaleY; - - result.m_Matrix[8]= result.m_Matrix[8] * invScaleZ; - result.m_Matrix[9]= result.m_Matrix[9] * invScaleZ; - result.m_Matrix[10]= result.m_Matrix[10] * invScaleZ; - - result.m_Matrix[12]= 0.0; result.m_Matrix[13]= 0.0; result.m_Matrix[14]= 0.0; - result.m_Matrix[3]= 0.0; result.m_Matrix[7]= 0.0; result.m_Matrix[11]= 0.0; - result.m_Matrix[15]= 1.0; - return result; -} - -GLC_Matrix4x4 GLC_Matrix4x4::isometricMatrix() const -{ - GLC_Matrix4x4 result(*this); - const double invScaleX= 1.0 / scalingX(); - const double invScaleY= 1.0 / scalingY(); - const double invScaleZ= 1.0 / scalingZ(); - result.m_Matrix[0]= result.m_Matrix[0] * invScaleX; - result.m_Matrix[1]= result.m_Matrix[1] * invScaleX; - result.m_Matrix[2]= result.m_Matrix[2] * invScaleX; - - result.m_Matrix[4]= result.m_Matrix[4] * invScaleY; - result.m_Matrix[5]= result.m_Matrix[5] * invScaleY; - result.m_Matrix[6]= result.m_Matrix[6] * invScaleY; - - result.m_Matrix[8]= result.m_Matrix[8] * invScaleZ; - result.m_Matrix[9]= result.m_Matrix[9] * invScaleZ; - result.m_Matrix[10]= result.m_Matrix[10] * invScaleZ; - return result; -} - -GLC_Matrix4x4& GLC_Matrix4x4::setMatRot(const GLC_Vector3d &Vect, const double &dAngleRad) -{ - // Normalize the vector - GLC_Vector3d VectRot(Vect); - VectRot.normalize(); - - // Code optimisation - const double SinAngleSur2= sin(dAngleRad / 2.0); - - // Quaternion computation - const double q0= cos(dAngleRad / 2); - const double q1= VectRot.m_Vector[0] * SinAngleSur2; - const double q2= VectRot.m_Vector[1] * SinAngleSur2; - const double q3= VectRot.m_Vector[2] * SinAngleSur2; - - // Code optimisation - const double q0Carre= (q0 * q0); - const double q1Carre= (q1 * q1); - const double q2Carre= (q2 * q2); - const double q3Carre= (q3 * q3); - - m_Matrix[0]= q0Carre + q1Carre - q2Carre - q3Carre; - m_Matrix[1]= 2.0 * (q1 *q2 + q0 * q3); - m_Matrix[2]= 2.0 * (q1 * q3 - q0 * q2); - m_Matrix[3]= 0.0; - m_Matrix[4]= 2.0 * (q1 * q2 - q0 * q3); - m_Matrix[5]= q0Carre + q2Carre - q3Carre - q1Carre; - m_Matrix[6]= 2.0 * (q2 * q3 + q0 * q1); - m_Matrix[7]= 0.0; - m_Matrix[8]= 2.0 * (q1 * q3 + q0 * q2); - m_Matrix[9]= 2.0 * (q2 * q3 - q0 * q1); - m_Matrix[10]= q0Carre + q3Carre - q1Carre - q2Carre; - m_Matrix[11]= 0.0; - - m_Matrix[12]= 0.0; //TX - m_Matrix[13]= 0.0; //TY - m_Matrix[14]= 0.0; //TZ - m_Matrix[15]= 1.0; - - return *this; -} - -GLC_Matrix4x4& GLC_Matrix4x4::setMatRot(const GLC_Vector3d &Vect1, const GLC_Vector3d &Vect2) -{ - - // Compute rotation matrix - const GLC_Vector3d VectAxeRot(Vect1 ^ Vect2); - // Check if rotation vector axis is not null - if (!VectAxeRot.isNull()) - { // Ok, vector not null - const double Angle= acos(Vect1 * Vect2); - setMatRot(VectAxeRot, Angle); - } - - return *this; -} - -GLC_Matrix4x4& GLC_Matrix4x4::setMatTranslate(const GLC_Vector3d &Vect) -{ - m_Matrix[0]= 1.0; m_Matrix[4]= 0.0; m_Matrix[8]= 0.0; m_Matrix[12]= Vect.m_Vector[0]; - m_Matrix[1]= 0.0; m_Matrix[5]= 1.0; m_Matrix[9]= 0.0; m_Matrix[13]= Vect.m_Vector[1]; - m_Matrix[2]= 0.0; m_Matrix[6]= 0.0; m_Matrix[10]= 1.0; m_Matrix[14]= Vect.m_Vector[2]; - m_Matrix[3]= 0.0; m_Matrix[7]= 0.0; m_Matrix[11]= 0.0; m_Matrix[15]= 1.0; - - return *this; -} - -GLC_Matrix4x4& GLC_Matrix4x4::setMatTranslate(const double Tx, const double Ty, const double Tz) -{ - m_Matrix[0]= 1.0; m_Matrix[4]= 0.0; m_Matrix[8]= 0.0; m_Matrix[12]= Tx; - m_Matrix[1]= 0.0; m_Matrix[5]= 1.0; m_Matrix[9]= 0.0; m_Matrix[13]= Ty; - m_Matrix[2]= 0.0; m_Matrix[6]= 0.0; m_Matrix[10]= 1.0; m_Matrix[14]= Tz; - m_Matrix[3]= 0.0; m_Matrix[7]= 0.0; m_Matrix[11]= 0.0; m_Matrix[15]= 1.0; - - return *this; -} - -GLC_Matrix4x4& GLC_Matrix4x4::setMatScaling(const double sX, const double sY, const double sZ) -{ - m_Matrix[0]= sX; m_Matrix[4]= 0.0; m_Matrix[8]= 0.0; m_Matrix[12]= 0.0; - m_Matrix[1]= 0.0; m_Matrix[5]= sY; m_Matrix[9]= 0.0; m_Matrix[13]= 0.0; - m_Matrix[2]= 0.0; m_Matrix[6]= 0.0; m_Matrix[10]= sZ; m_Matrix[14]= 0.0; - m_Matrix[3]= 0.0; m_Matrix[7]= 0.0; m_Matrix[11]= 0.0; m_Matrix[15]= 1.0; - - return *this; -} - - -GLC_Matrix4x4& GLC_Matrix4x4::invert(void) -{ - const double det= determinant(); - - // Test if the inverion is possible - if (det == 0.0f) return *this; - - const double invDet = 1.0 / det; - GLC_Matrix4x4 TCoMat= getCoMat4x4().getTranspose(); - - for (int i= 0; i < TAILLEMAT4X4; i++) - { - m_Matrix[i]= TCoMat.m_Matrix[i] * invDet; - } - - return *this; -} - -GLC_Matrix4x4& GLC_Matrix4x4::setToIdentity() -{ - m_Matrix[0]= 1.0; m_Matrix[4]= 0.0; m_Matrix[8]= 0.0; m_Matrix[12]= 0.0; - m_Matrix[1]= 0.0; m_Matrix[5]= 1.0; m_Matrix[9]= 0.0; m_Matrix[13]= 0.0; - m_Matrix[2]= 0.0; m_Matrix[6]= 0.0; m_Matrix[10]= 1.0; m_Matrix[14]= 0.0; - m_Matrix[3]= 0.0; m_Matrix[7]= 0.0; m_Matrix[11]= 0.0; m_Matrix[15]= 1.0; - - return *this; -} - -GLC_Matrix4x4& GLC_Matrix4x4::transpose(void) -{ - GLC_Matrix4x4 MatT(m_Matrix); - int IndexOrigine; - int IndexTrans; - for (int Colonne= 0; Colonne < DIMMAT4X4; Colonne++) - { - for (int Ligne=0 ; Ligne < DIMMAT4X4; Ligne++) - { - IndexOrigine= (Colonne * DIMMAT4X4) + Ligne; - IndexTrans= (Ligne * DIMMAT4X4) + Colonne; - - MatT.m_Matrix[IndexTrans]= m_Matrix[IndexOrigine]; - } - } - - // Load the transposed in matrix in this matrix - memcpy(m_Matrix, MatT.m_Matrix, sizeof(double) * 16); - - return *this; -} - -double GLC_Matrix4x4::determinant(void) const -{ - double Determinant= 0.0; - double SubMat3x3[9]; - int Signe= 1; - - for (int Colonne= 0; Colonne < DIMMAT4X4; Colonne++, Signe*= -1) - { - getSubMat(0, Colonne, SubMat3x3); - Determinant+= Signe * m_Matrix[Colonne * DIMMAT4X4] * getDeterminant3x3(SubMat3x3); - } - - return Determinant; - -} - -double GLC_Matrix4x4::getDeterminantLC(const int Ligne, const int Colonne) const -{ - double Mat3x3[9]; - double Determinant; - - getSubMat(Ligne, Colonne, Mat3x3); - - if ( 0 == ((Ligne + Colonne) % 2)) // Even number - Determinant= m_Matrix[(Colonne + DIMMAT4X4) + Ligne] * getDeterminant3x3(Mat3x3); - else - Determinant= - m_Matrix[(Colonne + DIMMAT4X4) + Ligne] * getDeterminant3x3(Mat3x3); - - return Determinant; -} - -void GLC_Matrix4x4::getSubMat(const int Ligne, const int Colonne, double *ResultMat) const -{ - - int LigneResult; - int ColonneResult; - int IndexOrigine; - int IndexResult; - - for (int ColonneOrigine= 0; ColonneOrigine < DIMMAT4X4; ColonneOrigine++) - { - if (ColonneOrigine != Colonne) - { - if (ColonneOrigine < Colonne) - ColonneResult= ColonneOrigine; - else - ColonneResult= ColonneOrigine - 1; - - for (int LigneOrigine= 0; LigneOrigine < DIMMAT4X4; LigneOrigine++) - { - if (LigneOrigine != Ligne) - { - if (LigneOrigine < Ligne) - LigneResult= LigneOrigine; - else - LigneResult= LigneOrigine - 1; - IndexOrigine= (ColonneOrigine * DIMMAT4X4) + LigneOrigine; - IndexResult= (ColonneResult * (DIMMAT4X4 - 1)) + LigneResult; - - ResultMat[IndexResult]= m_Matrix[IndexOrigine]; - } - } - } - } -} - -GLC_Matrix4x4 GLC_Matrix4x4::getTranspose(void) const -{ - GLC_Matrix4x4 MatT(m_Matrix); - int IndexOrigine; - int IndexTrans; - for (int Colonne= 0; Colonne < DIMMAT4X4; Colonne++) - { - for (int Ligne=0 ; Ligne < DIMMAT4X4; Ligne++) - { - IndexOrigine= (Colonne * DIMMAT4X4) + Ligne; - IndexTrans= (Ligne * DIMMAT4X4) + Colonne; - - MatT.m_Matrix[IndexTrans]= m_Matrix[IndexOrigine]; - } - } - - return MatT; -} - -GLC_Matrix4x4 GLC_Matrix4x4::getCoMat4x4(void) const -{ - GLC_Matrix4x4 CoMat(m_Matrix); - double SubMat3x3[9]; - int Index; - - for (int Colonne= 0; Colonne < DIMMAT4X4; Colonne++) - { - for (int Ligne=0 ; Ligne < DIMMAT4X4; Ligne++) - { - getSubMat(Ligne, Colonne, SubMat3x3); - Index= (Colonne * DIMMAT4X4) + Ligne; - if (((Colonne + Ligne + 2) % 2) == 0) // Even Number - CoMat.m_Matrix[Index]= getDeterminant3x3(SubMat3x3); - else - CoMat.m_Matrix[Index]= -getDeterminant3x3(SubMat3x3); - } - } - - return CoMat; -} - - -#endif /*GLC_MATRIX4X4_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_plane.h b/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_plane.h deleted file mode 100644 index 0e3f2956b..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_plane.h +++ /dev/null @@ -1,160 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_plane.h Interface for the GLC_Plane class. - -#ifndef GLC_PLANE_H_ -#define GLC_PLANE_H_ - -#include "glc_vector3d.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Plane -/*! \brief GLC_Plane : Math plane representation */ - -/*! GLC_Plane is definined by its equation : Ax + By + CZ + D= 0 */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Plane -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - GLC_Plane(); - - //! Contruct a plan with specified parameter - /*! Plane equation : Ax + By + CZ + D= 0*/ - GLC_Plane(double A, double B, double C, double D); - - //! Construct a plane with normal vector and the minimum distance from this plane to the origin - GLC_Plane(const GLC_Vector3d& normal, double minimumDistance); - - //! Construct a plane with normal vector and a 3d point - GLC_Plane(const GLC_Vector3d& normal, const GLC_Point3d& point); - - //! Contruct a plane with 3 given 3d points - /*! first : origine, second x, third y*/ - GLC_Plane(const GLC_Point3d&, const GLC_Point3d&, const GLC_Point3d&); - - //! Copy constructor - GLC_Plane(const GLC_Plane&); - - //! Assignement operator - GLC_Plane &operator=(const GLC_Plane&); - - //! Destructor - ~GLC_Plane(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Return A coef - inline double coefA() const - {return m_Eq[0];} - - //! Return B coef - inline double coefB() const - {return m_Eq[1];} - - //! Return C coef - inline double coefC() const - {return m_Eq[2];} - - //! Return D coef - inline double coefD() const - {return m_Eq[3];} - - //! Return the signed distance to a point - inline double distanceToPoint(const GLC_Point3d& p) const - {return m_Eq[0] * p.x() + m_Eq[1] * p.y() + m_Eq[2] * p.z() + m_Eq[3];} - - //! Equality operator - bool operator==(GLC_Plane) const; - - //! diff operator - inline bool operator!=(const GLC_Plane& p) const - {return !operator==(p);} - - //! Return this plane normal - inline GLC_Vector3d normal() const - {return GLC_Vector3d(m_Eq[0], m_Eq[1], m_Eq[2]);} - - //! Return true if the given point is on this plane - inline bool lieOnThisPlane(const GLC_Point3d& p) - {return (m_Eq[0] * p.x() + m_Eq[1] * p.y() + m_Eq[2] * p.z() + m_Eq[3]) == 0.0f;} - - //! Return a pointer to this plane equation data - const double* data() const - {return m_Eq;} - - //! Return the plane data to string - QString toString() const; -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Set A coef - inline void setA(double a) - {m_Eq[0]= a;} - - //! Set B coef - inline void setB(double b) - {m_Eq[1]= b;} - - //! Set C coef - inline void setC(double c) - {m_Eq[2]= c;} - - //! Set D coef - inline void setD(double d) - {m_Eq[3]= d;} - - //! Normalize the plane - void normalize(); - - //! Set the plane from the given normal and point and return a reference to this plane - GLC_Plane& setPlane(const GLC_Vector3d& normal, const GLC_Point3d& point); - - -//@} - -////////////////////////////////////////////////////////////////////// -// Private Member -////////////////////////////////////////////////////////////////////// -private: - //! Plane is define by equation : Ax + By + Cz + D= 0 - double m_Eq[4]; -}; - -#endif /* GLC_PLANE_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_utils_maths.h b/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_utils_maths.h deleted file mode 100644 index ae9ff1152..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_utils_maths.h +++ /dev/null @@ -1,48 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ -//! \file glc_utils_maths.h Mathematic constants. -/*! \brief Definition of usefull constants*/ - -#ifndef GLC_UTILS_MATHS_H_ -#define GLC_UTILS_MATHS_H_ - -// Standard C math library -#include -namespace glc -{ - /*! \def EPSILON - * \brief Define precison of comparaison*/ - - const double EPSILON= 1e-10; - - /*! \def PI - * \brief Define the magic number PI */ - const double PI= acos(-1.0); - - //! Convert the given degre angle in radian - inline double toRadian(double angle) - {return PI * angle / 180.0;} -}; - -#endif /*GLC_UTILS_MATHS_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_vector2d.h b/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_vector2d.h deleted file mode 100644 index 3bf6e38fa..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_vector2d.h +++ /dev/null @@ -1,276 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_vector2d.h interface for the GLC_Vector2d class. - -#ifndef GLC_VECTOR2D_H_ -#define GLC_VECTOR2D_H_ - -#include -#include "glc_utils_maths.h" -#include "glc_vector2df.h" - -#include "glc_config.h" - -////////////////////////////////////////////////////////////////////// -// definition global -////////////////////////////////////////////////////////////////////// - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Vector2d -/*! \brief GLC_Vector2d is a 2 dimensions Vector*/ - -/*! GLC_Vector2d is used to represent 2D position and vectors. - * */ -////////////////////////////////////////////////////////////////////// - -class GLC_LIB_EXPORT GLC_Vector2d -{ - friend class GLC_Vector4d; - friend class GLC_Vector3d; - - /*! Overload unary "-" operator*/ - inline friend GLC_Vector2d operator - (const GLC_Vector2d &Vect) - { - return GLC_Vector2d(-Vect.dVecteur[0], -Vect.dVecteur[1]); - } - - -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - /*! Default constructor - * Value is set to - * \n X = 0.0 - * \n Y = 0.0 - */ - inline GLC_Vector2d() - { - dVecteur[0]= 0.0; - dVecteur[1]= 0.0; - } - - /*! Standard constructor With x, y = 0.0*/ - inline GLC_Vector2d(const double &dX, const double &dY) - { - dVecteur[0]= dX; - dVecteur[1]= dY; - } - - /*! Recopy constructor - * Sample use - * \code - * NewVect = new GLC_Vector2d(OldVect); - * \endcode - */ - inline GLC_Vector2d(const GLC_Vector2d &Vect) - { - dVecteur[0]= Vect.dVecteur[0]; - dVecteur[1]= Vect.dVecteur[1]; - } -//@} -////////////////////////////////////////////////////////////////////// -/*! @name Operator Overload */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - /*! Overload binary "+" operator*/ - inline GLC_Vector2d operator + (const GLC_Vector2d &Vect) const - { - GLC_Vector2d VectResult(dVecteur[0] + Vect.dVecteur[0], dVecteur[1] + Vect.dVecteur[1]); - - return VectResult; - } - - /*! Overload "=" operator*/ - inline GLC_Vector2d& operator = (const GLC_Vector2d &Vect) - { - dVecteur[0]= Vect.dVecteur[0]; - dVecteur[1]= Vect.dVecteur[1]; - - return *this; - } - - /*! Overload "=" operator*/ - inline GLC_Vector2d& operator = (const GLC_Vector2df &Vect) - { - dVecteur[0]= static_cast(Vect.vector[0]); - dVecteur[1]= static_cast(Vect.vector[1]); - - return *this; - } - - - /*! Overload "+=" operator*/ - inline GLC_Vector2d* operator += (const GLC_Vector2d &Vect) - { - *this= *this + Vect; - return this; - } - - - /*! Overload binary "-" operator*/ - inline GLC_Vector2d operator - (const GLC_Vector2d &Vect) const - { - GLC_Vector2d VectResult(dVecteur[0] - Vect.dVecteur[0], dVecteur[1] - Vect.dVecteur[1]); - - return VectResult; - } - - /*! Overload binary "-=" operator*/ - inline GLC_Vector2d* operator -= (const GLC_Vector2d &Vect) - { - *this= *this - Vect; - return this; - } - - /*! Overload dot product "^" operator*/ - inline double operator ^ (const GLC_Vector2d &Vect) const - { - return dVecteur[0] * Vect.dVecteur[1] - dVecteur[1] * Vect.dVecteur[0]; - } - - /*! Overload scalar product "*" operator between 2 vector*/ - inline double operator * (const GLC_Vector2d &Vect) const - { - return dVecteur[0] * Vect.dVecteur[0] + dVecteur[1] * Vect.dVecteur[1]; - } - - /*! Overload scalar product "*" operator between 1 vector and one scalar*/ - inline GLC_Vector2d operator * (double Scalaire) const - { - return GLC_Vector2d(dVecteur[0] * Scalaire, dVecteur[1] * Scalaire);; - } - - - /*! Overload equality "==" operator*/ - inline bool operator == (const GLC_Vector2d &Vect) const - { - bool bResult= qFuzzyCompare(dVecteur[0], Vect.dVecteur[0]); - bResult= bResult && qFuzzyCompare(dVecteur[1], Vect.dVecteur[1]); - - return bResult; - } - - /*! Overload "!=" operator*/ - inline bool operator != (const GLC_Vector2d &Vect) const - { - return !(*this == Vect); - } - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - /*! X Composante*/ - inline GLC_Vector2d& setX(const double &dX) - { - dVecteur[0]= dX; - return *this; - } - - /*! Y Composante*/ - inline GLC_Vector2d& setY(const double &dY) - { - dVecteur[1]= dY; - return *this; - } - - /*! All Composante*/ - inline GLC_Vector2d& setVect(const double &dX, const double &dY) - { - dVecteur[0]= dX; - dVecteur[1]= dY; - return *this; - } - - /*! From another Vector*/ - inline GLC_Vector2d& setVect(const GLC_Vector2d &Vect) - { - dVecteur[0]= Vect.dVecteur[0]; - dVecteur[1]= Vect.dVecteur[1]; - return *this; - } - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - /*! X Composante*/ - inline double getX(void) const - { - return dVecteur[0]; - } - /*! Y Composante*/ - inline double getY(void) const - { - return dVecteur[1]; - } - /*! retourne un pointeur constant vers le tableau du vecteur.*/ - inline const double *return_dVect(void) const - { - return dVecteur; - } - /*! Return true if the vector is null*/ - inline bool isNull(void) const - { - return qFuzzyCompare(dVecteur[0], 0.0) && qFuzzyCompare(dVecteur[1], 0.0); - } - //! return the string representation of vector - inline QString toString() const - { - return QString("[") + QString::number(dVecteur[0]) + QString(" , ") + QString::number(dVecteur[1]) + QString("]"); - } - //! return a vector perpendicular to this - inline GLC_Vector2d perp() const - { - return GLC_Vector2d(-dVecteur[1], dVecteur[0]); - } -//@} - -////////////////////////////////////////////////////////////////////// -//name Private attributes -////////////////////////////////////////////////////////////////////// -private: - /*! Vector array definition \n - * vector[0] X \n - * vector[1] Y \n - */ - double dVecteur[2]; - -}; //class GLC_Vector2d - -//! Define GLC_Point2D -typedef GLC_Vector2d GLC_Point2d; - -#endif /*GLC_VECTOR2D_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_vector2df.h b/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_vector2df.h deleted file mode 100644 index 7095fcf80..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_vector2df.h +++ /dev/null @@ -1,165 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_vector2df.h interface for the GLC_Vector2df class. - -#ifndef GLC_VECTOR2DF_H_ -#define GLC_VECTOR2DF_H_ - -#include "glc_utils_maths.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -// definition global -////////////////////////////////////////////////////////////////////// - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Vector2df -/*! \brief GLC_Vector2df is a 2 dimensions Vector*/ - -/*! GLC_Vector2df is used to represent 2D position and vectors. - * */ -////////////////////////////////////////////////////////////////////// - -class GLC_LIB_EXPORT GLC_Vector2df -{ - friend class GLC_Vector2d; -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - /*! Default constructor - * Value is set to - * \n X = 0.0 - * \n Y = 0.0 - */ - inline GLC_Vector2df() - { - vector[0]= 0.0f; - vector[1]= 0.0f; - } - - //! Standard constructor With x, y = 0.0 - inline GLC_Vector2df(const float &dX, const float &dY) - { - vector[0]= dX; - vector[1]= dY; - } - - /*! Copy constructor - * Sample use - * \code - * NewVect = new GLC_Vector2d(OldVect); - * \endcode - */ - inline GLC_Vector2df(const GLC_Vector2df &Vect) - { - vector[0]= Vect.vector[0]; - vector[1]= Vect.vector[1]; - } -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! X Compound - inline GLC_Vector2df& setX(const float &dX) - { - vector[0]= dX; - return *this; - } - - //! Y Compound - inline GLC_Vector2df& setY(const float &dY) - { - vector[1]= dY; - return *this; - } - - //! All Compound - inline GLC_Vector2df& setVect(const float &dX, const float &dY) - { - vector[0]= dX; - vector[1]= dY; - return *this; - } - - //! From another Vector - inline GLC_Vector2df& setVect(const GLC_Vector2df &Vect) - { - vector[0]= Vect.vector[0]; - vector[1]= Vect.vector[1]; - return *this; - } - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return X Compound - inline float X(void) const - { - return vector[0]; - } - //! Return Y Compound - inline float Y(void) const - { - return vector[1]; - } - //! Return a pointer to vector data - inline const float *return_dVect(void) const - { - return vector; - } - //! Return true if the vector is null - inline bool isNull(void) const - { - return (qFuzzyCompare(vector[0], 0.0f) && qFuzzyCompare(vector[1], 0.0f)); - } - -//@} - -////////////////////////////////////////////////////////////////////// -//name Private attributes -////////////////////////////////////////////////////////////////////// -private: - /*! Vector array definition \n - * vector[0] X \n - * vector[1] Y \n - */ - float vector[2]; - -}; //class GLC_Vector2df - -//! Define GLC_Point2D -typedef GLC_Vector2df GLC_Point2df; - -#endif /*GLC_VECTOR2DF_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_vector3d.h b/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_vector3d.h deleted file mode 100644 index 8349a3ab8..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_vector3d.h +++ /dev/null @@ -1,435 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_vector3d.h interface for the GLC_Vector3d class. - -#ifndef GLC_VECTOR3D_H_ -#define GLC_VECTOR3D_H_ - -#include - -#include "glc_utils_maths.h" -#include "glc_vector3df.h" -#include "glc_vector2d.h" -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Vector3d -/*! \brief GLC_Vector3d is a 3 dimensions Vector*/ - -/*! GLC_Vector3d is used to represent 3D vectors in 3D space coordinate. - * */ -////////////////////////////////////////////////////////////////////// - -class GLC_LIB_EXPORT GLC_Vector3d -{ - friend class GLC_Vector4d; - friend class GLC_Matrix4x4; - - //! Overload unary "-" operator - inline friend GLC_Vector3d operator - (const GLC_Vector3d &Vect) - {return GLC_Vector3d(-Vect.m_Vector[0], -Vect.m_Vector[1], -Vect.m_Vector[2]);} - - //! Overload scalar operator - inline friend GLC_Vector3d operator*(double s, const GLC_Vector3d &v) - {return GLC_Vector3d(s * v.m_Vector[0], s * v.m_Vector[1], s * v.m_Vector[2]);} - -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - /*! Value is set to - * \n X = 0.0 - * \n Y = 0.0 - * \n Z = 0.0 - */ - inline GLC_Vector3d(); - - //! Standard constructor with coordinate: (x, y, z) - inline GLC_Vector3d(double x, double y, double z); - - //! Construct a 3d vector from another 3d vector - inline GLC_Vector3d(const GLC_Vector3d &vector) - {memcpy(m_Vector, vector.m_Vector, sizeof(double) * 3);} - - //! Construct a 3d vector from another 3d float vector - inline GLC_Vector3d(const GLC_Vector3df &vector); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the x coordinate of this vector - inline double x() const - {return m_Vector[0];} - - //! Return the y coordinate of this vector - inline double y() const - {return m_Vector[1];} - - //! Return the z coordinate of this vector - inline double z() const - {return m_Vector[2];} - - //! Return a const pointer to this vector data - inline const double *data() const - {return m_Vector;} - - //! Return true if this vector is null - inline bool isNull() const - {return (m_Vector[0] == 0.0f) && (m_Vector[1] == 0.0f) && (m_Vector[2] == 0.0f);} - - //! Return the length of this vector - inline double length() const - {return sqrt(m_Vector[0] * m_Vector[0] + m_Vector[1] * m_Vector[1] + m_Vector[2] * m_Vector[2]);} - - //! Return the 2D vector specified by the given mask vector - /*! retrieve component corresponding to mask vector NULL component*/ - inline GLC_Vector2d toVector2d(const GLC_Vector3d& mask) const; - - //! Return the Angle from this vector to the given vector - inline double angleWithVect(GLC_Vector3d Vect) const; - - //! Return the float 3D vector from this vector - inline GLC_Vector3df toVector3df() const - {return GLC_Vector3df(static_cast(m_Vector[0]), static_cast(m_Vector[1]), static_cast(m_Vector[2]));} - - //! Return the string of this vector - inline QString toString() const; - - //! Return the inverted vector of this vector - inline GLC_Vector3d inverted() const - {return GLC_Vector3d(*this).invert();} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! @name Operator Overload */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the Addition of this vector to the given vector - inline GLC_Vector3d operator + (const GLC_Vector3d &vector) const - {return GLC_Vector3d(m_Vector[0] + vector.m_Vector[0], m_Vector[1] + vector.m_Vector[1], m_Vector[2] + vector.m_Vector[2]);} - - //! Copy the given vector to this vector and return a reference to this vector - inline GLC_Vector3d& operator = (const GLC_Vector3d &vector) - { - if (this != &vector) memcpy(m_Vector, vector.m_Vector, sizeof(double) * 3); - return *this; - } - - //! Copy the given float vector to this vector and return a reference to this vector - inline GLC_Vector3d& operator = (const GLC_Vector3df &); - - //! Add this vector to the given vector and return a reference to this vector - inline GLC_Vector3d& operator += (const GLC_Vector3d &vector) - { - *this= *this + vector; - return *this; - } - - //! Return the substracts of the given vector to this vector - inline GLC_Vector3d operator - (const GLC_Vector3d &Vect) const - {return GLC_Vector3d(m_Vector[0] - Vect.m_Vector[0], m_Vector[1] - Vect.m_Vector[1], m_Vector[2] - Vect.m_Vector[2]);} - - //! Substracts the given vector to this vector and return a reference to this vector - GLC_Vector3d& operator -= (const GLC_Vector3d &Vect) - { - *this= *this - Vect; - return *this; - } - - //! Return the cross product of this vector to the given vector - inline GLC_Vector3d operator ^ (const GLC_Vector3d &vector) const; - - //! Return the scalar product of this vector to the given vector - inline double operator * (const GLC_Vector3d &Vect) const - {return m_Vector[0] * Vect.m_Vector[0] + m_Vector[1] * Vect.m_Vector[1] + m_Vector[2] * Vect.m_Vector[2];} - - //! Return the scalar product of this vector to the given scalar - inline GLC_Vector3d operator * (double Scalaire) const - {return GLC_Vector3d(m_Vector[0] * Scalaire, m_Vector[1] * Scalaire, m_Vector[2] * Scalaire);} - - - //! Return true if this vector is fuzzyequal to the given vector - inline bool operator == (const GLC_Vector3d &vector) const; - - //! Return true if this vector is > to the given vector - inline bool operator > (const GLC_Vector3d &vector) const; - - //! Return true if this vector is < to the given vector - inline bool operator < (const GLC_Vector3d &vector) const; - - //! Return false if this vector is fuzzyequal to the given vector - inline bool operator != (const GLC_Vector3d &Vect) const - {return !(*this == Vect);} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Set x coordinate of this vector from the given x coordinate - inline GLC_Vector3d& setX(const double &dX) - { - m_Vector[0]= dX; - return *this; - } - - //! Set y coordinate of this vector from the given y coordinate - inline GLC_Vector3d& setY(const double &dY) - { - m_Vector[1]= dY; - return *this; - } - - //! Set z coordinate of this vector from the given z coordinate - inline GLC_Vector3d& setZ(const double &dZ) - { - m_Vector[2]= dZ; - return *this; - } - - //! Set (x, y, z) coordinate of this vector from the given (x, y, z) coordinates - inline GLC_Vector3d& setVect(double, double, double); - - //! Set (x, y, z) coordinate of this vector from the given vector coordinates - GLC_Vector3d& setVect(const GLC_Vector3d &vector) - { - memcpy(m_Vector, vector.m_Vector, sizeof(double) * 3); - return *this; - } - - //! Set vector lenght from the given scalar and return a reference of this vector - inline GLC_Vector3d& setLength(double); - - //! Normalize this vector and return a reference to it - inline GLC_Vector3d& normalize() - {return setLength(1.0);} - - //! Invert this vector and return a reference to it - inline GLC_Vector3d& invert(); - -//@} - - -////////////////////////////////////////////////////////////////////// -//Private attributes -////////////////////////////////////////////////////////////////////// -private: - /*! Vector array definition \n - * vector[0] X \n - * vector[1] Y \n - * vector[2] Z \n - */ - double m_Vector[3]; - -}; //class GLC_Vector3d - -// Vector constant in glc namespace -namespace glc -{ - // Axis definition - /*! \var X_AXIS - * \brief X axis Vector*/ - const GLC_Vector3d X_AXIS(1.0, 0.0, 0.0); - - /*! \var Y_AXIS - * \brief Y axis Vector*/ - const GLC_Vector3d Y_AXIS(0.0, 1.0, 0.0); - - /*! \var Z_AXIS - * \brief Z axis Vector*/ - const GLC_Vector3d Z_AXIS(0.0, 0.0, 1.0); -}; - -//! Define GLC_Point3D -typedef GLC_Vector3d GLC_Point3d; - -//! Write the vector to stream -inline QDataStream &operator<<(QDataStream & stream, const GLC_Vector3d & vector) -{ - stream << vector.x() << vector.y() << vector.z(); - return stream; -} - -//! Read the vector from stream -inline QDataStream &operator>>(QDataStream &stream, GLC_Vector3d &vector) -{ - double x, y, z; - stream >> x >> y >> z; - vector.setVect(x, y, z); - return stream; -} - -////////////////////////////////////////////////////////////////////// -// inline method implementation -////////////////////////////////////////////////////////////////////// - -GLC_Vector3d::GLC_Vector3d() -{ - m_Vector[0]= 0.0; - m_Vector[1]= 0.0; - m_Vector[2]= 0.0; -} - -GLC_Vector3d::GLC_Vector3d(double x, double y, double z) -{ - m_Vector[0]= x; - m_Vector[1]= y; - m_Vector[2]= z; -} - -GLC_Vector3d::GLC_Vector3d(const GLC_Vector3df &vector) -{ - m_Vector[0]= static_cast(vector.m_Vector[0]); - m_Vector[1]= static_cast(vector.m_Vector[1]); - m_Vector[2]= static_cast(vector.m_Vector[2]); -} - -GLC_Vector3d& GLC_Vector3d::operator = (const GLC_Vector3df &Vect) -{ - m_Vector[0]= static_cast(Vect.m_Vector[0]); - m_Vector[1]= static_cast(Vect.m_Vector[1]); - m_Vector[2]= static_cast(Vect.m_Vector[2]); - - return *this; -} - -GLC_Vector3d GLC_Vector3d::operator ^ (const GLC_Vector3d &vector) const -{ - GLC_Vector3d vectResult; - vectResult.m_Vector[0]= m_Vector[1] * vector.m_Vector[2] - m_Vector[2] * vector.m_Vector[1]; - vectResult.m_Vector[1]= m_Vector[2] * vector.m_Vector[0] - m_Vector[0] * vector.m_Vector[2]; - vectResult.m_Vector[2]= m_Vector[0] * vector.m_Vector[1] - m_Vector[1] * vector.m_Vector[0]; - - return vectResult; -} - -bool GLC_Vector3d::operator == (const GLC_Vector3d &vector) const -{ - bool bResult= qFuzzyCompare(m_Vector[0], vector.m_Vector[0]); - bResult= bResult && qFuzzyCompare(m_Vector[1], vector.m_Vector[1]); - bResult= bResult && qFuzzyCompare(m_Vector[2], vector.m_Vector[2]); - - return bResult; -} - -bool GLC_Vector3d::operator > (const GLC_Vector3d &vector) const -{ - bool result= m_Vector[0] > vector.m_Vector[0]; - result= result && (m_Vector[1] > vector.m_Vector[1]); - result= result && (m_Vector[2] > vector.m_Vector[2]); - return result; -} - -bool GLC_Vector3d::operator < (const GLC_Vector3d &vector) const -{ - bool result= m_Vector[0] < vector.m_Vector[0]; - result= result && (m_Vector[1] < vector.m_Vector[1]); - result= result && (m_Vector[2] < vector.m_Vector[2]); - return result; -} - -GLC_Vector3d& GLC_Vector3d::setVect(double x, double y, double z) -{ - m_Vector[0]= x; - m_Vector[1]= y; - m_Vector[2]= z; - - return *this; -} - -inline GLC_Vector3d& GLC_Vector3d::setLength(double norme) -{ - const double normCur= sqrt( m_Vector[0] * m_Vector[0] + m_Vector[1] * m_Vector[1] + m_Vector[2] * m_Vector[2]); - - if (normCur != 0.0f) - { - const double Coef = norme / normCur; - - m_Vector[0] = m_Vector[0] * Coef; - m_Vector[1] = m_Vector[1] * Coef; - m_Vector[2] = m_Vector[2] * Coef; - } - return *this; -} - -GLC_Vector3d& GLC_Vector3d::invert() -{ - m_Vector[0]= - m_Vector[0]; - m_Vector[1]= - m_Vector[1]; - m_Vector[2]= - m_Vector[2]; - return *this; -} - -GLC_Vector2d GLC_Vector3d::toVector2d(const GLC_Vector3d& mask) const -{ - GLC_Vector2d resultVect; - if (mask.m_Vector[0] == 0.0) - { - resultVect.setX(m_Vector[0]); - if (mask.m_Vector[1] == 0.0) resultVect.setY(m_Vector[1]); - else resultVect.setY(m_Vector[2]); - } - else resultVect.setVect(m_Vector[1], m_Vector[2]); - - return resultVect; -} - -double GLC_Vector3d::angleWithVect(GLC_Vector3d Vect) const -{ - GLC_Vector3d ThisVect(*this); - ThisVect.normalize(); - Vect.normalize(); - // Rotation axis - const GLC_Vector3d VectAxeRot(ThisVect ^ Vect); - // Check if the rotation axis vector is null - if (!VectAxeRot.isNull()) - { - return acos(ThisVect * Vect); - } - else return 0.0; -} - -QString GLC_Vector3d::toString() const -{ - QString result("["); - - result+= QString::number(m_Vector[0]) + QString(" , "); - result+= QString::number(m_Vector[1]) + QString(" , "); - result+= QString::number(m_Vector[2]) + QString("]"); - - return result; -} - -#endif /*GLC_VECTOR3D_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_vector3df.h b/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_vector3df.h deleted file mode 100644 index b50115d8e..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_vector3df.h +++ /dev/null @@ -1,190 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_vector3df.h interface for the GLC_Vector3df class. - -#ifndef GLC_VECTOR3DF_H_ -#define GLC_VECTOR3DF_H_ -#include "glc_utils_maths.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Vector3df -/*! \brief GLC_Vector3df is a 3 dimensions Vector*/ - -/*! GLC_Vector3df is used to represent 3D position and vectors. - * */ -////////////////////////////////////////////////////////////////////// - -class GLC_LIB_EXPORT GLC_Vector3df -{ - friend class GLC_Vector4d; - friend class GLC_Vector3d; -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - /*! Default constructor - * Value is set to - * \n X = 0.0 - * \n Y = 0.0 - * \n Z = 0.0 - */ - inline GLC_Vector3df() - { - m_Vector[0]= 0.0f; - m_Vector[1]= 0.0f; - m_Vector[2]= 0.0f; - } - - //! Standard constructor With x, y, z - inline GLC_Vector3df(const float &dX, const float &dY, const float &dZ) - { - setVect(dX, dY, dZ); - } - - /*! Copy constructor - * Sample use - * \code - * NewVect = new GLC_Vector3d(OldVect); - * \endcode - */ - inline GLC_Vector3df(const GLC_Vector3df &Vect) - { - m_Vector[0]= Vect.m_Vector[0]; - m_Vector[1]= Vect.m_Vector[1]; - m_Vector[2]= Vect.m_Vector[2]; - } -//@} - - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! X Compound - inline GLC_Vector3df& setX(const float &dX) - { - m_Vector[0]= dX; - return *this; - } - - //! Y Compound - inline GLC_Vector3df& setY(const float &dY) - { - m_Vector[1]= dY; - return *this; - } - - //! Z Compound - inline GLC_Vector3df& setZ(const float &dZ) - { - m_Vector[2]= dZ; - return *this; - } - - //! All Compound - inline GLC_Vector3df& setVect(const float &dX, const float &dY, const float &dZ) - { - m_Vector[0]= dX; - m_Vector[1]= dY; - m_Vector[2]= dZ; - - return *this; - } - - //! From another Vector - GLC_Vector3df& setVect(const GLC_Vector3df &Vect) - { - m_Vector[0]= Vect.m_Vector[0]; - m_Vector[1]= Vect.m_Vector[1]; - m_Vector[2]= Vect.m_Vector[2]; - return *this; - } - - //! Invert Vector - inline GLC_Vector3df& setInv(void) - { - m_Vector[0]= - m_Vector[0]; - m_Vector[1]= - m_Vector[1]; - m_Vector[2]= - m_Vector[2]; - return *this; - } - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return X Compound - inline float X(void) const - { - return m_Vector[0]; - } - //! Return Y Compound - inline float Y(void) const - { - return m_Vector[1]; - } - //! Return Z Compound - inline float Z(void) const - { - return m_Vector[2]; - } - //! Return a pointer to vector data - inline const float *data(void) const - { - return m_Vector; - } - //! Return true if the vector is null - inline bool isNull(void) const - { - return qFuzzyCompare(m_Vector[0], 0.0f) && qFuzzyCompare(m_Vector[1], 0.0f) - && qFuzzyCompare(m_Vector[2], 0.0f); - } - -//@} - -////////////////////////////////////////////////////////////////////// -//name Private attributes -////////////////////////////////////////////////////////////////////// -private: - /*! Vector array definition \n - * data[0] X \n - * data[1] Y \n - * data[2] Z \n - */ - float m_Vector[3]; - -}; //class GLC_Vector3d - -//! Define GLC_Point3D -typedef GLC_Vector3df GLC_Point3df; - -#endif /*GLC_VECTOR3DF_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_vector4d.h b/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_vector4d.h deleted file mode 100644 index ef8960e28..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/maths/glc_vector4d.h +++ /dev/null @@ -1,395 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_vector4d.h interface for the GLC_Vector4d class. - -#ifndef GLC_VECTOR4D_H_ -#define GLC_VECTOR4D_H_ - -#include -#include - -#include "glc_utils_maths.h" -#include "glc_vector2d.h" -#include "glc_vector3d.h" -#include "glc_vector3df.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Vector4d -/*! \brief GLC_Vector4d is a 4 dimensions Vector*/ - -/*! GLC_Vector4d is used to represent 3D position and vectors. \n - * it had 4 Dimensions for compatibility purpose with GLC_Matrix4x4 - * */ -////////////////////////////////////////////////////////////////////// - -class GLC_LIB_EXPORT GLC_Vector4d -{ - //! GLC_Matrix4x4 class - friend class GLC_Matrix4x4; - - //! Overload unary "-" operator - inline friend GLC_Vector4d operator - (const GLC_Vector4d &Vect) - { - return GLC_Vector4d(-Vect.vector[0], -Vect.vector[1], -Vect.vector[2]); - } - - -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - /*! Default constructor - * Value is set to - * \n X = 0.0 - * \n Y = 0.0 - * \n Z = 0.0 - * \n W = 1.0*/ - inline GLC_Vector4d() - { - vector[0]= 0.0; - vector[1]= 0.0; - vector[2]= 0.0; - - vector[3]= 1.0; - } - //! Standard constructor With x, y, z and w with default value of 1.0 - inline GLC_Vector4d(const double &dX, const double &dY, const double &dZ, const double &dW= 1.0) - { - setVect(dX, dY, dZ, dW); - } - //! Copy constructor - inline GLC_Vector4d(const GLC_Vector4d &Vect) - { - vector[0]= Vect.vector[0]; - vector[1]= Vect.vector[1]; - vector[2]= Vect.vector[2]; - vector[3]= Vect.vector[3]; - } - - //! Copy from an GLC_Vector3d - inline GLC_Vector4d(const GLC_Vector3d &Vect) - { - vector[0]= Vect.m_Vector[0]; - vector[1]= Vect.m_Vector[1]; - vector[2]= Vect.m_Vector[2]; - vector[3]= 1.0; - } - - //! Copy from an GLC_Vector3d - inline GLC_Vector4d(const GLC_Vector3df &Vect) - { - vector[0]= static_cast(Vect.m_Vector[0]); - vector[1]= static_cast(Vect.m_Vector[1]); - vector[2]= static_cast(Vect.m_Vector[2]); - vector[3]= 1.0; - } - - //! Copy from an GLC_Vector3d - inline GLC_Vector4d(const GLC_Vector2d &Vect) - { - vector[0]= Vect.dVecteur[0]; - vector[1]= Vect.dVecteur[1]; - vector[2]= 0.0; - vector[3]= 1.0; - } - -//@} - -////////////////////////////////////////////////////////////////////// -/*! @name Operator Overload */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Overload binary "+" operator - inline GLC_Vector4d operator + (const GLC_Vector4d &Vect) const - { - GLC_Vector4d VectResult(vector[0] + Vect.vector[0], vector[1] + Vect.vector[1], - vector[2] + Vect.vector[2]); - - return VectResult; - } - - //! Overload "=" operator - inline GLC_Vector4d& operator = (const GLC_Vector4d &Vect) - { - vector[0]= Vect.vector[0]; - vector[1]= Vect.vector[1]; - vector[2]= Vect.vector[2]; - vector[3]= Vect.vector[3]; - - return *this; - } - - //! Overload "=" operator - inline GLC_Vector4d& operator = (const GLC_Vector3d &Vect) - { - vector[0]= Vect.m_Vector[0]; - vector[1]= Vect.m_Vector[1]; - vector[2]= Vect.m_Vector[2]; - vector[3]= 1.0; - - return *this; - } - - //! Overload "=" operator - inline GLC_Vector4d& operator = (const GLC_Vector3df &Vect) - { - vector[0]= static_cast(Vect.m_Vector[0]); - vector[1]= static_cast(Vect.m_Vector[1]); - vector[2]= static_cast(Vect.m_Vector[2]); - vector[3]= 1.0; - - return *this; - } - - //! Overload "=" operator - inline GLC_Vector4d& operator = (const GLC_Vector2d &Vect) - { - vector[0]= Vect.dVecteur[0]; - vector[1]= Vect.dVecteur[1]; - vector[2]= 0.0; - vector[3]= 1.0; - - return *this; - } - - //! Overload "+=" operator - inline GLC_Vector4d* operator += (const GLC_Vector4d &Vect) - { - *this= *this + Vect; - return this; - } - - - //! Overload binary "-" operator - inline GLC_Vector4d operator - (const GLC_Vector4d &Vect) const - { - GLC_Vector4d VectResult(vector[0] - Vect.vector[0], vector[1] - Vect.vector[1], - vector[2] - Vect.vector[2]); - - return VectResult; - } - - //! Overload binary "-=" operator - GLC_Vector4d* operator -= (const GLC_Vector4d &Vect) - { - *this= *this - Vect; - return this; - } - - //! Overload dot product "^" operator - GLC_Vector4d operator ^ (const GLC_Vector4d &Vect) const; - - //! Overload scalar product "*" operator between 2 vector - inline double operator * (const GLC_Vector4d &Vect) const - { - // W Component is ignored - return vector[0] * Vect.vector[0] + vector[1] * Vect.vector[1] + - vector[2] * Vect.vector[2]; - } - - //! Overload scalar product "*" operator between 1 vector and one scalar - inline GLC_Vector4d operator * (double Scalaire) const - { - return GLC_Vector4d(vector[0] * Scalaire, vector[1] * Scalaire, vector[2] * Scalaire); - } - - - //! Overload equality "==" operator - bool operator == (const GLC_Vector4d &Vect) const; - - //! Overload dot product "!=" operator - inline bool operator != (const GLC_Vector4d &Vect) const - { - return !(*this == Vect); - } - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! X Compound - inline GLC_Vector4d& setX(const double &dX) - { - vector[0]= dX; - return *this; - } - - //! Y Compound - inline GLC_Vector4d& setY(const double &dY) - { - vector[1]= dY; - return *this; - } - - //! Z Compound - inline GLC_Vector4d& setZ(const double &dZ) - { - vector[2]= dZ; - return *this; - } - - //! W Compound - GLC_Vector4d& setW(const double &dW); - - //! All Compound - GLC_Vector4d& setVect(const double &dX, const double &dY, const double &dZ, const double &dW= 1); - - //! From another Vector - inline GLC_Vector4d& setVect(const GLC_Vector4d &Vect) - { - vector[0]= Vect.vector[0]; - vector[1]= Vect.vector[1]; - vector[2]= Vect.vector[2]; - vector[3]= Vect.vector[3]; - return *this; - } - - //! Vector Normal - GLC_Vector4d& setNormal(const double &Norme); - - /*! Invert Vector*/ - inline GLC_Vector4d& invert(void) - { - vector[0]= - vector[0]; - vector[1]= - vector[1]; - vector[2]= - vector[2]; - return *this; - } - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return X Compound - inline double X(void) const - { - return vector[0]; - } - //! Return Y Compound - inline double Y(void) const - { - return vector[1]; - } - //! Return Z Compound - inline double Z(void) const - { - return vector[2]; - } - //! Return W Compound - inline double W(void) const - { - return vector[3]; - } - inline GLC_Vector3d toVector3d() const - { - return GLC_Vector3d(vector[0], vector[1], vector[2]); - } - inline GLC_Vector3df toVector3df() const - { - return GLC_Vector3df(static_cast(vector[0]), static_cast(vector[1]), static_cast(vector[2])); - } - //! Return a pointer to vector data - inline const double *data(void) const - { - return vector; - } - //! Return Vector Norm - inline double norm(void) const - { - return sqrt(vector[0] * vector[0] + vector[1] * vector[1] - + vector[2] * vector[2]); - } - /*! Vector is null*/ - inline bool isNull(void) const - { - bool result; - - result= qFuzzyCompare(vector[0], 0.0) && qFuzzyCompare(vector[1], 0.0) - && qFuzzyCompare(vector[2], 0.0); - - return result; - } - - //! Return the Angle with another vector - double getAngleWithVect(GLC_Vector4d Vect) const; - - //! Return the vector string - QString toString() const; - - //! Return the 2D vector specified by a mask vector - /*! retrieve component corresponding to - * mask NULL component*/ - GLC_Vector2d toVector2d(const GLC_Vector4d&) const; - - //! Return a QVector of 3 values - inline QVector toFloat3dQVector() const - { - QVector result; - result << static_cast(vector[0]) << static_cast(vector[1]) << static_cast(vector[2]); - return result; - } -//@} - -////////////////////////////////////////////////////////////////////// -// Private services functions -////////////////////////////////////////////////////////////////////// -private: - - //! Normalize Vector w <- 1 - void normalizeW(void); - -////////////////////////////////////////////////////////////////////// -//name Private attributes -////////////////////////////////////////////////////////////////////// -private: - /*! Vector array definition \n - * vector[0] X \n - * vector[1] Y \n - * vector[2] Z \n - * vector[3] 1 - */ - enum {VECT4DIMENSION = 4}; - double vector[VECT4DIMENSION]; - -}; //class GLC_Vector4d - -//! Define GLC_Point4D -//typedef GLC_Vector4d GLC_Point4d; - -//! Non-member stream operator -QDataStream &operator<<(QDataStream &, const GLC_Vector4d &); -QDataStream &operator>>(QDataStream &, GLC_Vector4d &); - -#endif /*GLC_VECTOR4D_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_3dviewcollection.h b/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_3dviewcollection.h deleted file mode 100644 index bf76fe69c..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_3dviewcollection.h +++ /dev/null @@ -1,412 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_3dviewcollection.h interface for the GLC_3DViewCollection class. - -#ifndef GLC_3DVIEWCOLLECTION_H_ -#define GLC_3DVIEWCOLLECTION_H_ - - -#include -#include "glc_3dviewinstance.h" -#include "../glc_global.h" -#include "../viewport/glc_frustum.h" - -#include "../glc_config.h" - -class GLC_SpacePartitioning; -class GLC_Material; -class GLC_Shader; -class GLC_Viewport; - -//! GLC_3DViewInstance Hash table -typedef QHash< GLC_uint, GLC_3DViewInstance> ViewInstancesHash; - -//! GLC_3DViewInstance pointer Hash table -typedef QHash PointerViewInstanceHash; - -//! Hash table of GLC_3DViewInstance Hash table which use a shader -typedef QHash HashList; - -//! Map Shader id to instances id (instances which use the shader) -typedef QHash ShaderIdToInstancesId; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_3DViewCollection -/*! \brief GLC_3DViewCollection : GLC_3DViewInstance flat collection */ - -/*! An GLC_3DViewCollection contains : - * - A hash table containing GLC_3DViewInstance Class - * - A hash table use to associate shader with GLC_3DViewInstance - */ -////////////////////////////////////////////////////////////////////// - -class GLC_LIB_EXPORT GLC_3DViewCollection -{ - -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - GLC_3DViewCollection(); - - //! Destructor - /*! Delete all Node in the Hash Table and clear the Hash Table*/ - virtual ~GLC_3DViewCollection(); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Return true if the collection is empty - inline bool isEmpty() const - {return m_3DViewInstanceHash.size() == 0;} - - //! Return the number of Node in the collection - inline int size(void) const - {return m_3DViewInstanceHash.size();} - - //! Return all GLC_3DViewInstance from collection - QList instancesHandle(); - - //! Return all visible GLC_3DViewInstance from the collection - QList visibleInstancesHandle(); - - //! Return all viewable GLC_3DViewInstance from the collection - QList viewableInstancesHandle(); - - //! Return a GLC_3DViewInstance from collection - /*! If the element is not found in collection a empty node is return*/ - GLC_3DViewInstance* instanceHandle(GLC_uint Key); - - //! Return the entire collection Bounding Box - GLC_BoundingBox boundingBox(void); - - //! Return the number of Node in the selection Hash - inline int selectionSize(void) const - {return m_SelectedInstances.size();} - - //! Get the Hash table of Selected Nodes - inline PointerViewInstanceHash* selection() - {return &m_SelectedInstances;} - - //! Return true if the Instance Id is in the collection - inline bool contains(GLC_uint key) const - {return m_3DViewInstanceHash.contains(key);} - - //! Return true if the element is selected - inline bool isSelected(GLC_uint key) const - {return m_SelectedInstances.contains(key);} - - //! Return the showing state - inline bool showState() const - {return m_IsInShowSate;} - - //! Return the number of drawable objects - int drawableObjectsSize() const; - - //! Return the element shading group - inline GLuint shadingGroup(GLC_uint key) const - { return m_ShaderGroup.value(key);} - - //! Return true if the element is in a shading group - inline bool isInAShadingGroup(GLC_uint key) const - { return m_ShaderGroup.contains(key);} - - //! Return instances name from the specified shading group - QList instanceNamesFromShadingGroup(GLuint) const; - - //! Return the number of used shading group - int numberOfUsedShadingGroup() const; - - //! Return true if the space partitioning is used - inline bool spacePartitioningIsUsed() const - {return m_UseSpacePartitioning;} - - //! Return an handle to the space partitioning - inline GLC_SpacePartitioning* spacePartitioningHandle() - {return m_pSpacePartitioning;} - - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Bind the specified shader to the collection - /* return true if success false if shader is already bind*/ - bool bindShader(GLuint); - - //! Unbind the specified shader from the collection - /* return true if success false otherwise*/ - bool unBindShader(GLuint); - - //! Unbind All shader - bool unBindAllShader(); - - //! Add a GLC_3DViewInstance in the collection - /*! return true if success false otherwise - * If shading group is specified, add instance in desire shading group*/ - bool add(const GLC_3DViewInstance& ,GLuint shaderID=0); - - //! Change instance shading group - /* Move the specified instances into - * the specified shading group - * Return true if success false otherwise*/ - void changeShadingGroup(GLC_uint, GLuint); - - //! Remove a GLC_Geometry from the collection and delete it - /*! - Find the GLC_Geometry in the collection - * - Delete the GLC_Geometry - * - Remove the Geometry container from collection - * - Delete the associated OpenGL Display list - * - Remove the Display list container from collection - * - Invalidate the collection - * return true if success false otherwise*/ - bool remove(GLC_uint Key); - - //! Remove and delete all GLC_Geometry from the collection - void clear(void); - - //! Select a Instance - bool select(GLC_uint, bool primitive= false); - - //! Select all instances in current show state - void selectAll(); - - //! unselect a Instance - bool unselect(GLC_uint); - - //! unselect all Instance - void unselectAll(); - - //! Set the polygon mode for all Instance - void setPolygonModeForAll(GLenum, GLenum); - - //! Set Instance visibility - void setVisibility(const GLC_uint, const bool); - - //! Show all instances of the collection - void showAll(); - - //! Hide all instances of collection - void hideAll(); - - //! Set the Show or noShow state - inline void swapShowState() - { - m_IsInShowSate= !m_IsInShowSate; - // Bounding box validity - if (NULL != m_pBoundingBox) - { - delete m_pBoundingBox; - m_pBoundingBox= NULL; - } - } - - //! Set the LOD usage - inline void setLodUsage(const bool usage, GLC_Viewport* pView) - { - m_UseLod= usage; - m_pViewport= pView; - } - - //! Bind the space partitioning - void bindSpacePartitioning(GLC_SpacePartitioning*); - - //! Unbind the space partitioning - void unbindSpacePartitioning(); - - //! Use the space partitioning - inline void setSpacePartitionningUsage(bool use) - {m_UseSpacePartitioning= use;} - - //! Update the instance viewable state - /*! Update the frustrum culling from the viewport - * If the specified matrix pointer is not null*/ - void updateInstanceViewableState(GLC_Matrix4x4* pMatrix= NULL); - - //! Update the instance viewable state with the specified frustum - void updateInstanceViewableState(const GLC_Frustum&); - - //! Set the attached viewport of this collection - inline void setAttachedViewport(GLC_Viewport* pViewport) - {m_pViewport= pViewport;} -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Display the specified collection group - /*! The main group is 0 - * The selection group is 1 - * User group are identified by user id - */ - void render(GLuint, glc::RenderFlag); - - //! Display all shader group - void renderShaderGroup(glc::RenderFlag); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// - -private: - //! Display collection's member - void glDraw(GLuint, glc::RenderFlag); - - //! Draw instances of a PointerViewInstanceHash - inline void glDrawInstancesOf(PointerViewInstanceHash*, glc::RenderFlag); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Privates services Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// - -private: - //! Set the Bounding box validity - void setBoundingBoxValidity(void); - -//@} - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - //! GLC_3DViewInstance Hash Table - ViewInstancesHash m_3DViewInstanceHash; - - //! BoundingBox of the collection - GLC_BoundingBox* m_pBoundingBox; - - //! Selected Node Hash Table - PointerViewInstanceHash m_SelectedInstances; - - //! List of other Node Hash Table - HashList m_ShadedPointerViewInstanceHash; - - //! Shader groups hash - ShaderIdToInstancesId m_ShaderGroup; - - //! Normal Node Hash Table - PointerViewInstanceHash m_MainInstances; - - //! Show State - bool m_IsInShowSate; - - //! Level of detail usage - bool m_UseLod; - - //! The viewport associted to the collection for LOD Usage - GLC_Viewport* m_pViewport; - - //! The space partitioning - GLC_SpacePartitioning* m_pSpacePartitioning; - - //! The space partition usage - bool m_UseSpacePartitioning; - - -}; - -// Draw instances of a PointerViewInstanceHash -void GLC_3DViewCollection::glDrawInstancesOf(PointerViewInstanceHash* pHash, glc::RenderFlag renderFlag) -{ - bool forceDisplay= false; - if (GLC_State::isInSelectionMode()) - { - forceDisplay= true; - } - - PointerViewInstanceHash::iterator iEntry= pHash->begin(); - // The current instance - GLC_3DViewInstance* pCurInstance; - if (forceDisplay) - { - while (iEntry != pHash->constEnd()) - { - pCurInstance= iEntry.value(); - if ((pCurInstance->viewableFlag() != GLC_3DViewInstance::NoViewable) && (pCurInstance->isVisible() == m_IsInShowSate)) - { - pCurInstance->render(renderFlag, m_UseLod, m_pViewport); - } - ++iEntry; - } - } - else - { - if (!(renderFlag == glc::TransparentRenderFlag)) - { - while (iEntry != pHash->constEnd()) - { - pCurInstance= iEntry.value(); - if ((pCurInstance->viewableFlag() != GLC_3DViewInstance::NoViewable) && (pCurInstance->isVisible() == m_IsInShowSate)) - { - if (!pCurInstance->isTransparent() || pCurInstance->renderPropertiesHandle()->isSelected() || (renderFlag == glc::WireRenderFlag)) - { - pCurInstance->render(renderFlag, m_UseLod, m_pViewport); - } - } - - ++iEntry; - } - - } - else - { - while (iEntry != pHash->constEnd()) - { - pCurInstance= iEntry.value(); - if ((pCurInstance->viewableFlag() != GLC_3DViewInstance::NoViewable) && (pCurInstance->isVisible() == m_IsInShowSate)) - { - if (pCurInstance->hasTransparentMaterials()) - { - pCurInstance->render(renderFlag, m_UseLod, m_pViewport); - } - } - - ++iEntry; - } - } - - } -} - -#endif //GLC_3DVIEWCOLLECTION_H_ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_3dviewinstance.h b/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_3dviewinstance.h deleted file mode 100644 index 651e7b991..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_3dviewinstance.h +++ /dev/null @@ -1,427 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_instance.h interface for the GLC_3DViewInstance class. - -#ifndef GLC_3DVIEWINSTANCE_H_ -#define GLC_3DVIEWINSTANCE_H_ - -#include "../glc_global.h" -#include "../glc_boundingbox.h" -#include "../glc_object.h" -#include "../maths/glc_matrix4x4.h" -#include "../glc_state.h" -#include "../geometry/glc_3drep.h" -#include "../shading/glc_renderproperties.h" - -#include - -#include "glc_config.h" - -class GLC_Viewport; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_3DViewInstance -/*! \brief GLC_3DViewInstance : GLC_3DRep + bounding box*/ - -/*! An GLC_3DViewInstance contain : - * - GLC_3DRep - * - Geometry Bounding box in position - * - Positionning 4 x 4 matrix - */ -////////////////////////////////////////////////////////////////////// - -class GLC_LIB_EXPORT GLC_3DViewInstance : public GLC_Object -{ -public: - //! Viewable instance property - enum Viewable - { - FullViewable= 120, - PartialViewable= 121, - NoViewable= 122 - }; -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - GLC_3DViewInstance(); - - //! Contruct instance with a geometry - GLC_3DViewInstance(GLC_Geometry* pGeom); - - //! Contruct instance with a 3DRep - GLC_3DViewInstance(const GLC_3DRep&); - - //! Copy constructor - GLC_3DViewInstance(const GLC_3DViewInstance& ); - - //! Assignement operator - GLC_3DViewInstance &operator=(const GLC_3DViewInstance&); - - //! Destructor - ~GLC_3DViewInstance(); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return true if the all instance's mesh are transparent - inline bool isTransparent() const; - - //! Return true if the instance contains mesh which contains transparent material - inline bool hasTransparentMaterials() const; - - //! Return true if the instance as no geometry - inline bool isEmpty() const - {return m_3DRep.isEmpty();} - - //! Return true if the instance is selected - inline bool isSelected(void) const - {return m_RenderProperties.isSelected();} - - //! Return the number of geometry - inline int numberOfGeometry() const - {return m_3DRep.numberOfBody();} - - - //! Return the geometry at the specified position - inline GLC_Geometry* geomAt(int index) const - { - if (!m_3DRep.isEmpty()) return m_3DRep.geomAt(index); - else return NULL; - } - - //! Get the bounding box - GLC_BoundingBox boundingBox(); - - //! Get the validity of the Bounding Box - inline bool boundingBoxValidity() const - {return (m_pBoundingBox != NULL) && m_IsBoundingBoxValid && m_3DRep.boundingBoxIsValid();} - - //! Return transfomation 4x4Matrix - inline const GLC_Matrix4x4& matrix() const - {return m_AbsoluteMatrix;} - - //! Make a deep copy of the instance - GLC_3DViewInstance deepCopy() const; - - //! Instanciate the instance - GLC_3DViewInstance instanciate(); - - //! Get the Polygon mode off the instance - /*! Polygon Mode can Be : GL_POINT, GL_LINE, or GL_FILL*/ - inline GLenum polygonMode() const - {return m_RenderProperties.polygonMode();} - - //! Return an handle to the renderProperties - inline GLC_RenderProperties* renderPropertiesHandle() - {return &m_RenderProperties;} - - //! Get the visibility state of instance - inline bool isVisible() const - {return m_IsVisible;} - - //! Return true if the instance is viewable - inline GLC_3DViewInstance::Viewable viewableFlag() const - {return m_ViewableFlag;} - - //! Return true if the geom at the index is viewable - inline bool isGeomViewable(int index) const - {return m_ViewableGeomFlag.at(index);} - - //! Get number of faces - inline unsigned int numberOfFaces() const - {return m_3DRep.faceCount();} - - //! Get number of vertex - inline unsigned int numberOfVertex() const - {return m_3DRep.vertexCount();} - - //! Get number of materials - inline unsigned int numberOfMaterials() const - {return m_3DRep.materialCount();} - - //! Get materials List - inline QSet materialSet() const - {return m_3DRep.materialSet();} - - //! Return the default LOD Value - inline int defaultLodValue() const - {return m_DefaultLOD;} - - //! Return the instance representation - inline GLC_3DRep representation() const - {return m_3DRep;} - - //! Return the number of body contains in the 3DRep - inline int numberOfBody() const - {return m_3DRep.numberOfBody();} - - //! Return the global default LOD value - inline static int globalDefaultLod() - { - return m_GlobalDefaultLOD; - } - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Set the instance Geometry - /*! - * instance must be null - */ - bool setGeometry(GLC_Geometry* pGeom); - - //! Remove empty geometries - inline void removeEmptyGeometry() - {m_3DRep.clean();} - - //! Reverse geometry normals - inline void reverseGeometriesNormals() - {m_3DRep.reverseNormals();} - - //! Translate Instance - GLC_3DViewInstance& translate(double Tx, double Ty, double Tz); - - //! Translate Instance - inline GLC_3DViewInstance& translate(const GLC_Vector3d& v) - { - return translate(v.x(), v.y(), v.z()); - } - - //! Move instance with a 4x4Matrix - GLC_3DViewInstance& multMatrix(const GLC_Matrix4x4 &MultMat); - - //! Replace the instance Matrix - GLC_3DViewInstance& setMatrix(const GLC_Matrix4x4 &SetMat); - - //! Reset the instance Matrix - GLC_3DViewInstance& resetMatrix(void); - - //! Polygon's display style - /*! Face Polygon Mode can be : GL_FRONT_AND_BACK, GL_FRONT, or GL_BACK - * mode can be : GL_POINT, GL_LINE, or GL_FILL */ - inline void setPolygonMode(GLenum Face, GLenum Mode) - {m_RenderProperties.setPolygonMode(Face, Mode);} - - //! Select the instance - inline void select(bool primitive) - {m_RenderProperties.select(primitive);} - - //! Unselect the instance - inline void unselect(void) - {m_RenderProperties.unselect();} - - //! Set instance visibility - inline void setVisibility(bool visibility) - {m_IsVisible= visibility;} - - //! Set Instance Id - inline void setId(const GLC_uint id) - { - GLC_Object::setId(id); - glc::encodeRgbId(m_Uid, m_colorId); - } - - //! Set the default LOD value - inline void setDefaultLodValue(int lod) - { - m_DefaultLOD= lod; - } - - //! Set the viewable flag - inline bool setViewable(GLC_3DViewInstance::Viewable flag); - - //! Set the viewable flag of a geometry - inline void setGeomViewable(int index, bool flag) - {m_ViewableGeomFlag[index]= flag;} - - - //! Set the global default LOD value - static void setGlobalDefaultLod(int); - - //! Set the renderProperties of this 3DView instance - inline void setRenderProperties(const GLC_RenderProperties& renderProperties) - {m_RenderProperties= renderProperties;} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Display the instance - void render(glc::RenderFlag renderFlag= glc::ShadingFlag, bool useLoad= false, GLC_Viewport* pView= NULL); - - //! Display the instance in Body selection mode - void renderForBodySelection(); - - //! Display the instance in Primitive selection mode of the specified body id and return the body index - int renderForPrimitiveSelection(GLC_uint); - - -private: - //! Set instance visualisation properties - inline void OpenglVisProperties() - { - // Polygons display mode - glPolygonMode(m_RenderProperties.polyFaceMode(), m_RenderProperties.polygonMode()); - // Change the current matrix - glMultMatrixd(m_AbsoluteMatrix.data()); - } - - -//@} - -////////////////////////////////////////////////////////////////////// -// private services functions -////////////////////////////////////////////////////////////////////// -private: - //! compute the instance bounding box - void computeBoundingBox(void); - - //! Clear current instance - void clear(); - - //! Compute LOD - int choseLod(const GLC_BoundingBox&, GLC_Viewport*, bool); - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - - //! The 3D rep of the instance - GLC_3DRep m_3DRep; - - //! BoundingBox of the instance - GLC_BoundingBox* m_pBoundingBox; - - //! Geometry matrix - GLC_Matrix4x4 m_AbsoluteMatrix; - - //! Bounding box validity - bool m_IsBoundingBoxValid; - - //! The 3DViewInstance rendering properties - GLC_RenderProperties m_RenderProperties; - - //! Visibility - bool m_IsVisible; - - //! The instance color ID - GLubyte m_colorId[4]; - - //! The Default LOD - int m_DefaultLOD; - - //! Flag to know if the instance is viewable - Viewable m_ViewableFlag; - - //! vector of Flag to know if geometies of this instance are viewable - QVector m_ViewableGeomFlag; - - //! A Mutex - static QMutex m_Mutex; - - //! The global default LOD - static int m_GlobalDefaultLOD; - - -}; - -// Return true if the all instance's mesh are transparent -bool GLC_3DViewInstance::isTransparent() const -{ - if (m_3DRep.isEmpty()) return false; - if (m_RenderProperties.renderingMode() == glc::OverwriteTransparency) return true; - if (m_RenderProperties.renderingMode() == glc::OverwriteMaterial) - { - return m_RenderProperties.overwriteMaterial()->isTransparent(); - } - const int size= m_3DRep.numberOfBody(); - bool result= true; - int i= 0; - while((i < size) && result) - { - result= result && m_3DRep.geomAt(i)->isTransparent(); - ++i; - } - return result && m_RenderProperties.needToRenderWithTransparency(); -} - -// Return true if the instance contains mesh which contains transparent material -bool GLC_3DViewInstance::hasTransparentMaterials() const -{ - if (m_3DRep.isEmpty()) return false; - if (m_RenderProperties.needToRenderWithTransparency()) return true; - const int size= m_3DRep.numberOfBody(); - bool result= false; - int i= 0; - while ((i < size) && !result) - { - result= result || m_3DRep.geomAt(i)->hasTransparentMaterials(); - ++i; - } - return result; -} -//! Set the viewable flag -bool GLC_3DViewInstance::setViewable(GLC_3DViewInstance::Viewable flag) -{ - const int bodyCount= m_3DRep.numberOfBody(); - if (bodyCount != m_ViewableGeomFlag.size()) - { - m_ViewableGeomFlag.fill(true, bodyCount); - } - bool asChange= m_ViewableFlag != flag; - if (asChange) - { - m_ViewableFlag= flag; - if (flag != GLC_3DViewInstance::PartialViewable) - { - bool viewable= (flag == GLC_3DViewInstance::FullViewable); - - for (int i= 0; i < bodyCount; ++i) - { - m_ViewableGeomFlag[i]= viewable; - } - } - } - return asChange; -} - - -#endif /*GLC_3DVIEWINSTANCE_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_attributes.h b/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_attributes.h deleted file mode 100644 index aa85a6fa9..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_attributes.h +++ /dev/null @@ -1,123 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_attributes.h interface for the GLC_Attributes class. - -#ifndef GLC_ATTRIBUTES_H_ -#define GLC_ATTRIBUTES_H_ - -#include -#include -#include - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Attributes -/*! \brief GLC_Attributes : User attributes of instance and reference */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Attributes -{ - -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default Constructor - GLC_Attributes(); - - //! Copy Constructor - GLC_Attributes(const GLC_Attributes&); - - //! Overload "=" operator - GLC_Attributes& operator=(const GLC_Attributes&); - - //! Destructor - virtual ~GLC_Attributes(); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return true if attributes is empty - inline bool isEmpty() const - {return m_AttributesHash.isEmpty();} - - //! Return the size of attributes - inline int size() const - {return m_AttributesHash.size();} - - //! Return true if the specified attribute exist - bool contains(const QString& name) const - {return m_AttributesHash.contains(name);} - - //! Return the list of attribute name - inline QList names() const - {return m_AttributesHash.keys();} - - //! Return the value of the specified attributes - /*! Return NULL String if attribute doesn't exist*/ - inline QString value(const QString& name) const - {return m_AttributesHash.value(name);} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Insert an attribute - inline void insert(const QString& name, const QString& value) - {m_AttributesHash.insert(name, value);} - - //! Remove an attribute - inline void remove(const QString& name) - {m_AttributesHash.remove(name);} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! @name Operator Overload */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Equal operator overload - inline bool operator==(const GLC_Attributes& attr) const - {return m_AttributesHash == attr.m_AttributesHash;} - -//@} -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - //! Attributes Hash table - QHash m_AttributesHash; -}; - -#endif /* GLC_ATTRIBUTES_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_octree.h b/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_octree.h deleted file mode 100644 index 4715669f0..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_octree.h +++ /dev/null @@ -1,117 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_octree.h interface for the GLC_Octree class. - -#ifndef GLC_OCTREE_H_ -#define GLC_OCTREE_H_ - -#include "glc_spacepartitioning.h" -#include "../glc_config.h" - -class GLC_OctreeNode; -class GLC_Material; -class GLC_3DViewInstance; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Octree -/*! \brief GLC_Octree : represent space partioning implementation with octree */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Octree : public GLC_SpacePartitioning -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -//////////////////////////////////////////////////////////////////////s -public: - //! Create an empty octree of the given 3D view collection - GLC_Octree(GLC_3DViewCollection*); - - //! Create the octree from the given octree - GLC_Octree(const GLC_Octree&); - - //! Destructor - virtual ~GLC_Octree(); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the default octree Depth - static int defaultDepth(); - - //! Return the list off instances inside or intersect the given bounding box - virtual QList listOfIntersectedInstances(const GLC_BoundingBox& bBox); - -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Update the viewable 3d view instance of this octree from the given frustum - virtual void updateViewableInstances(const GLC_Frustum&); - - //! Update this octree space partionning - virtual void updateSpacePartitioning(); - - //! Set this octree depth - /*! If space partitionning is already done, update it*/ - void setDepth(int); - - //! Create octree box representation in the given collection with the specified material - void createBox(GLC_Material*, GLC_3DViewCollection* pCol= NULL); - - //! Set the default octree depth - static void setDefaultDepth(int depth); - -//@} - -////////////////////////////////////////////////////////////////////// -// Private services function -////////////////////////////////////////////////////////////////////// -private: - - //! Create octree box representation in the given 3d view collection - /*! Create box of the given Octree node with the given material*/ - void createBoxWithMaterial(GLC_3DViewCollection*, GLC_OctreeNode*, GLC_Material*); - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - //! Octree root node - GLC_OctreeNode* m_pRootNode; - - //! Octree depth - int m_OctreeDepth; - - //! The default octree Depth - static int m_DefaultOctreeDepth; -}; - -#endif /* GLC_OCTREE_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_octreenode.h b/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_octreenode.h deleted file mode 100644 index 2e8bc0894..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_octreenode.h +++ /dev/null @@ -1,172 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_octreenode.h interface for the GLC_OctreeNode class. - - -#ifndef GLC_OCTREENODE_H_ -#define GLC_OCTREENODE_H_ - -#include "glc_3dviewinstance.h" -#include "../glc_boundingbox.h" -#include "../glc_config.h" -#include "../viewport/glc_frustum.h" -#include -#include - -class GLC_LIB_EXPORT GLC_OctreeNode; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_OctreeNode -/*! \brief GLC_OctreeNode : A node of Space partioning implemented with octree */ -////////////////////////////////////////////////////////////////////// -class GLC_OctreeNode -{ - typedef QList NodeList; -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Construct a octree node from the given bounding box within the given octree node - GLC_OctreeNode(const GLC_BoundingBox&, GLC_OctreeNode* pParent= NULL); - - //! Construct a octree node from the first given octree node within the second given octree node - GLC_OctreeNode(const GLC_OctreeNode&, GLC_OctreeNode* pParent= NULL); - - //! Destructor - virtual ~GLC_OctreeNode(); -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - // Return this octree node bounding box - inline GLC_BoundingBox& boundingBox() - {return m_BoundingBox;} - - //! Return True if this octree node intersect the bounding box - inline bool intersect(const GLC_BoundingBox& boundingBox); - - //! Return true if this octree has child octree node - inline bool hasChild() const - {return !m_Children.isEmpty();} - - //! Return the child octree node at the given index - /*! The child must exist*/ - inline GLC_OctreeNode* childAt(int i) const - { - Q_ASSERT(i < m_Children.size()); - return m_Children.at(i); - } - - //! Return this octree node child octree node count - inline int childCount() const - {return m_Children.size();} - - //! Return true if this node contains 3D view instances - inline bool hasGeometry() const - {return !m_3DViewInstanceSet.isEmpty();} - - //! Return true if this octree node is empty - /*! An empty node doesn't contains child and 3d view instance*/ - inline bool isEmpty() const - {return m_Empty;} - - //! Return true if intersection are calculated with bounded sphere - static bool intersectionWithBoundingSphereUsed(); - - //! Return the list off instances inside or intersect the given bounding box - QSet setOfIntersectedInstances(const GLC_BoundingBox& bBox); - - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Add 8 octree node children to this octree node - void addChildren(); - - //! Add 3d view instance in this octree node branch - void addInstance(GLC_3DViewInstance*, int); - - //! Update 3d view instances visibility of this octree node branch from the given frustum - /*! Viewable 3d view instance are inserted the the given set if exist also the set is created*/ - void updateViewableInstances(const GLC_Frustum&, QSet* pInstanceSet= NULL); - - //! Remove empty child octree node from this octree node - void removeEmptyChildren(); - - //! Set intersection to bounding sphere - static void useBoundingSphereIntersection(bool); -//@} - -////////////////////////////////////////////////////////////////////// -// Private services function -////////////////////////////////////////////////////////////////////// -private: - //! Unable the node and sub node view flag - void unableViewFlag(QSet*); - - //! Disable the node and sub node view flag - void disableViewFlag(QSet*); - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - //! Octree node bounding box - GLC_BoundingBox m_BoundingBox; - - //! Parent Octree node - GLC_OctreeNode* m_pParent; - - //! Children list of octree node - NodeList m_Children; - - //! This node set of 3DViewInstance - QSet m_3DViewInstanceSet; - - //! Flag to know if the node is empty - bool m_Empty; - - //! Flag to know if intersection is calculated with bounding sphere - static bool m_useBoundingSphere; - -}; - -bool GLC_OctreeNode::intersect(const GLC_BoundingBox& boundingBox) -{ - if (m_useBoundingSphere) - return m_BoundingBox.intersectBoundingSphere(boundingBox); - else - return m_BoundingBox.intersect(boundingBox); -} - -#endif /* GLC_OCTREENODE_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_spacepartitioning.h b/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_spacepartitioning.h deleted file mode 100644 index 3f8759faa..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_spacepartitioning.h +++ /dev/null @@ -1,94 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_spacepartitioning.h interface for the GLC_SpacePartitioning class. - -#ifndef GLC_SPACEPARTITIONING_H_ -#define GLC_SPACEPARTITIONING_H_ - -#include "../glc_config.h" -#include "../glc_boundingbox.h" -#include "../viewport/glc_frustum.h" - -class GLC_3DViewCollection; -class GLC_3DViewInstance; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_SpacePartitioning -/*! \brief GLC_SpacePartitioning : Abstract class for space partitionning */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_SpacePartitioning -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - GLC_SpacePartitioning(GLC_3DViewCollection*); - - //! Copy constructor - GLC_SpacePartitioning(const GLC_SpacePartitioning&); - - //! Destructor - virtual ~GLC_SpacePartitioning(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the 3DViewCollection of the space partitioning - inline GLC_3DViewCollection* collectionHandle() - {return m_pCollection;} - - //! Return the list off instances inside or intersect the given bounding box - virtual QList listOfIntersectedInstances(const GLC_BoundingBox&)= 0; - - -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Update visible GLC_3DViewInstance - virtual void updateViewableInstances(const GLC_Frustum&)= 0; - - //! Update the space partionning - virtual void updateSpacePartitioning()= 0; - -//@} - -////////////////////////////////////////////////////////////////////// -// Protected members -////////////////////////////////////////////////////////////////////// -protected: - //! The Collection containing 3dview Instances - GLC_3DViewCollection* m_pCollection; - -}; - -#endif /* GLC_SPACEPARTITIONING_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_structinstance.h b/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_structinstance.h deleted file mode 100644 index 7d3d235b1..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_structinstance.h +++ /dev/null @@ -1,197 +0,0 @@ - -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_structinstance.h interface for the GLC_StructInstance class. - -#ifndef GLC_STRUCTINSTANCE_H_ -#define GLC_STRUCTINSTANCE_H_ - -#include -#include -#include "../maths/glc_matrix4x4.h" -#include "glc_3dviewinstance.h" -#include "glc_attributes.h" - -#include "../glc_config.h" - -class GLC_StructReference; -class GLC_StructOccurence; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_StructInstance -/*! \brief GLC_StructInstance : A scene graph instance node */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_StructInstance -{ -public: - //! Default constructor - GLC_StructInstance(GLC_StructReference* pRef= NULL); - - //! Create instance with a rep - GLC_StructInstance(GLC_Rep*); - - //! Copy constructor - GLC_StructInstance(const GLC_StructInstance&); - - //! Copy constructor - GLC_StructInstance(GLC_StructInstance*); - - //! Create empty instance - GLC_StructInstance(const QString&); - - //! Set the reference of an empty instance - void setReference(GLC_StructReference*); - - // Destructor - virtual ~GLC_StructInstance(); -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return true if this instance have occurence - inline bool hasStructOccurence() const - { return !m_ListOfOccurences.isEmpty();} - - //! Return the number of occurence - inline int numberOfOccurence() const - {return m_ListOfOccurences.size();} - - //! Return first occurence handle - inline GLC_StructOccurence* firstOccurenceHandle() const - { return m_ListOfOccurences.first();} - - //! Return the relative matrix of this instance - inline GLC_Matrix4x4 relativeMatrix() const - { return m_RelativeMatrix;} - - //! Return the reference of this instance - inline GLC_StructReference* structReference() const - { return m_pStructReference;} - - //! Return the list off occurence of this instance - inline QList listOfStructOccurences() const - { return m_ListOfOccurences;} - - //! Return the instance name - inline QString name() const - {return m_Name;} - - //! Return true if the reference contains User attributes - inline bool containsAttributes() const - { return ((NULL != m_pAttributes) && !m_pAttributes->isEmpty());} - - //! Return handle to the reference attributes - inline GLC_Attributes* attributesHandle() const - {return m_pAttributes;} - -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! An occurence of this instance have been created - inline void structOccurenceCreated(GLC_StructOccurence* pOccurence) - { - Q_ASSERT(!m_ListOfOccurences.contains(pOccurence)); - m_ListOfOccurences.append(pOccurence); - } - - inline void structOccurenceDeleted(GLC_StructOccurence *pOccurence) - {m_ListOfOccurences.removeOne(pOccurence);} - - //! Move the instance by specified matrix - inline GLC_StructInstance* move(const GLC_Matrix4x4& matrix) - { - m_RelativeMatrix= matrix * m_RelativeMatrix; - return this; - } - - //! Translate Instance - inline GLC_StructInstance* translate(double Tx, double Ty, double Tz) - { - m_RelativeMatrix= GLC_Matrix4x4(Tx, Ty, Tz) * m_RelativeMatrix; - return this; - } - - //! Translate Instance - inline GLC_StructInstance* translate(const GLC_Vector3d& v) - { - return translate(v.x(), v.y(), v.z()); - } - - //! Replace the instance Matrix - inline GLC_StructInstance* setMatrix(const GLC_Matrix4x4 &SetMat) - { - m_RelativeMatrix= SetMat; - return this; - } - - //! Reset the instance Matrix - inline GLC_StructInstance* resetMatrix() - { - m_RelativeMatrix = GLC_Matrix4x4(); - return this; - } - - //! Set the instance name - inline void setName(const QString& name) - {m_Name= name;} - - //! Set the instance attributes - void setAttributes(const GLC_Attributes& attr) - { - delete m_pAttributes; - m_pAttributes= new GLC_Attributes(attr); - } - - -//@} - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - //! Number of this Instance - int* m_pNumberOfInstance; - - //! The Struct reference of this instance - GLC_StructReference* m_pStructReference; - - //! The list of instance's occurences - QList m_ListOfOccurences; - - //! The relative matrix - GLC_Matrix4x4 m_RelativeMatrix; - - //! The instance Name - QString m_Name; - - //! The Reference attributes - GLC_Attributes* m_pAttributes; -}; - -#endif /* GLC_STRUCTINSTANCE_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_structoccurence.h b/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_structoccurence.h deleted file mode 100644 index 6482129b7..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_structoccurence.h +++ /dev/null @@ -1,267 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_structoccurence.h interface for the GLC_StructOccurence class. - -#ifndef GLC_STRUCTOCCURENCE_H_ -#define GLC_STRUCTOCCURENCE_H_ - -#include "../maths/glc_matrix4x4.h" -#include "../glc_boundingbox.h" -#include "glc_structinstance.h" -#include - -#include "../glc_config.h" - -class GLC_WorldHandle; -class GLC_Material; -class GLC_RenderProperties; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_StructOccurence -/*! \brief GLC_StructOccurence : A scene graph occurence node */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_StructOccurence -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// - -public: - //! Default constructor - GLC_StructOccurence(); - - //! Create Occurence of the specified instance - GLC_StructOccurence(GLC_StructInstance*, GLC_WorldHandle* pWorldHandle= NULL, GLuint shaderId=0); - - //! Construct Occurence withe the specified GLC_3DRep - GLC_StructOccurence(GLC_3DRep*); - - //! Copy constructor - GLC_StructOccurence(GLC_WorldHandle*, const GLC_StructOccurence&, bool shareInstance); - - //! Destructor - virtual ~GLC_StructOccurence(); -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the Occurence id - inline GLC_uint id() const - {return m_Uid;} - - //! Return Occurence instance name - inline const QString name() const - {return m_pStructInstance->name();} - - //! Return the absolute matrix - inline GLC_Matrix4x4 absoluteMatrix() const - { return m_AbsoluteMatrix;} - - //! Return true if this occurence is orphan - inline bool isOrphan() const - { return NULL == m_pParent;} - - //! Return true if this occurence has a representation - inline bool hasRepresentation() const - { return m_HasRepresentation;} - - //! Return the instance of this occurence - inline GLC_StructInstance* structInstance() const - { return m_pStructInstance;} - - //! Return the reference of this occurence - inline GLC_StructReference* structReference() const - { - Q_ASSERT(NULL != m_pStructInstance); - return m_pStructInstance->structReference(); - } - - //! Return the number of childs - inline int childCount() const - { return m_Childs.size();} - - //! Return true if the occurence has child - inline bool hasChild() const - {return childCount() > 0;} - - //! Return The parent - inline GLC_StructOccurence* parent() const - {return m_pParent;} - - //! Return a child - /*! The index must exist*/ - inline GLC_StructOccurence* child(const int index) const - {return m_Childs.at(index);} - - //! Return the list of children - inline QList children() const - { return m_Childs;} - - //! Get number of faces - unsigned int numberOfFaces() const; - - //! Get number of vertex - unsigned int numberOfVertex() const; - - //! Get number of materials - unsigned int numberOfMaterials() const; - - //! Get materials List - QSet materialSet() const; - - //! Clone the occurence - GLC_StructOccurence* clone(GLC_WorldHandle*, bool shareInstance) const; - - //! Return true if the occurence is visible - bool isVisible() const; - - //! Return the occurence Bounding Box - GLC_BoundingBox boundingBox() const; - - //! Return the occurence number of this occurence - inline unsigned int occurenceNumber() const - {return m_OccurenceNumber;} - - //! Return an handle of the renderProperties of this occurence - GLC_RenderProperties* renderPropertiesHandle() const - {return m_pRenderProperties;} - - //! Return the number of node of this branch - unsigned int nodeCount() const; - - -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Set Occurence instance Name - inline void setName(const QString name) {m_pStructInstance->setName(name);} - - //! Update the absolute matrix - GLC_StructOccurence* updateAbsoluteMatrix(); - - //! Update children obsolute Matrix - GLC_StructOccurence* updateChildrenAbsoluteMatrix(); - - //! Add Child - /*! The new child must be orphan*/ - void addChild(GLC_StructOccurence*); - - //! Add Child instance and returns the newly created occurence - GLC_StructOccurence* addChild(GLC_StructInstance*); - - //! make the occurence orphan - void makeOrphan(); - - //! Remove the specified child - /*! The removed child will not be deleted*/ - bool removeChild(GLC_StructOccurence* pChild); - - //! Reverse Normals of this Occurence and childs - void reverseNormals(); - - //! Check the presence of representation - void checkForRepresentation(); - - //! Set the occurence world Handle - void setWorldHandle(GLC_WorldHandle*); - - //! Load the representation and return true if success - bool loadRepresentation(); - - //! UnLoad the representation and return true if success - bool unloadRepresentation(); - - //! Set the occurence number of this occurence - inline void setOccurenceNumber(unsigned int n) - {m_OccurenceNumber= n;} - - //! Update the occurence number of this occurence branch - unsigned int updateOccurenceNumber(unsigned int n); - - //! Set this occurence visibility - void setVisibility(bool visibility); - - //! set the renderProperties of this occurence - void setRenderProperties(const GLC_RenderProperties& renderProperties); - - //! Remove empty children - void removeEmptyChildren(); - -//@} - -////////////////////////////////////////////////////////////////////// -// Private services function -////////////////////////////////////////////////////////////////////// -private: - //! Detach the occurence from the GLC_World - void detach(); - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - //! Occurence Unique ID - GLC_uint m_Uid; - - //! the occurence's World Handle - GLC_WorldHandle* m_pWorldHandle; - - //! Number of this Occurence - int* m_pNumberOfOccurence; - - //! The struct instance of this occurence - GLC_StructInstance* m_pStructInstance; - - //! The parent of this occurence - GLC_StructOccurence* m_pParent; - - //! The Child of this occurence - QList m_Childs; - - //! The absolute matrix of the occurence - GLC_Matrix4x4 m_AbsoluteMatrix; - - //! true if occurence has a representation - bool m_HasRepresentation; - - //! The occurence number - unsigned int m_OccurenceNumber; - - //! Flag to know if a occurence without instance is visible - bool m_IsVisible; - - //! The occurence rendering properties - GLC_RenderProperties* m_pRenderProperties; - -}; - -#endif /* GLC_STRUCTOCCURENCE_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_structreference.h b/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_structreference.h deleted file mode 100644 index 18678dbe8..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_structreference.h +++ /dev/null @@ -1,209 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_structreference.h interface for the GLC_StructReference class. - -#ifndef GLC_STRUCTREFERENCE_H_ -#define GLC_STRUCTREFERENCE_H_ - -#include -#include - -#include "../geometry/glc_3drep.h" -#include "glc_3dviewinstance.h" -#include "glc_attributes.h" -#include "glc_structinstance.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_StructReference -/*! \brief GLC_StructReference : A scene graph reference node */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_StructReference -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default Constructor - GLC_StructReference(const QString& name= QString()); - - //! Create reference with representation - GLC_StructReference(GLC_Rep*); - - //! Copy constructor - GLC_StructReference(const GLC_StructReference&); - - //! Overload "=" operator - GLC_StructReference& operator=(const GLC_StructReference&); - - //! Destructor - virtual ~GLC_StructReference(); -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return true if this reference has instance - inline bool hasStructInstance() const - { return !m_SetOfInstance.isEmpty();} - - //! Return first instance handle - inline GLC_StructInstance* firstInstanceHandle() const - { return *(m_SetOfInstance.begin());} - - //! Return the list of instance of this reference - inline QList listOfStructInstances() const - { return m_SetOfInstance.toList();} - - //! Return the list of occurence of this reference - QList listOfStructOccurence() const; - - //! Return true if this reference has a representation - inline bool hasRepresentation() const - {return NULL != m_pRepresentation;} - - //! Return an handle on the representation - inline GLC_Rep* representationHandle() const - { - return m_pRepresentation; - } - - //! Return the name - inline QString name() const - {return m_Name;} - - //! Get number of faces - inline unsigned int numberOfFaces() const - { - Q_ASSERT(NULL != m_pRepresentation); - GLC_3DRep* pRep= dynamic_cast(m_pRepresentation); - if (NULL != pRep) return pRep->faceCount(); - else return 0; - } - - //! Get number of vertex - inline unsigned int numberOfVertex() const - { - Q_ASSERT(NULL != m_pRepresentation); - GLC_3DRep* pRep= dynamic_cast(m_pRepresentation); - if (NULL != pRep) return pRep->vertexCount(); - else return 0; - } - - //! Get number of materials - inline unsigned int numberOfMaterials() const - { - Q_ASSERT(NULL != m_pRepresentation); - GLC_3DRep* pRep= dynamic_cast(m_pRepresentation); - if (NULL != pRep) return pRep->materialCount(); - else return 0; - } - - //! Return the number of body - inline unsigned int numberOfBody() const - { - if(NULL != m_pRepresentation) - { - GLC_3DRep* pRep= dynamic_cast(m_pRepresentation); - if (NULL != pRep) return pRep->numberOfBody(); - else return 0; - } - else return 0; - } - - //! Get materials List - inline QSet materialSet() const - { - Q_ASSERT(NULL != m_pRepresentation); - GLC_3DRep* pRep= dynamic_cast(m_pRepresentation); - if (NULL != pRep) return pRep->materialSet(); - else return QSet(); - } - - //! Return true if the reference contains User attributes - inline bool containsAttributes() const - { return ((NULL != m_pAttributes) && !m_pAttributes->isEmpty());} - - //! Return handle to the reference attributes - inline GLC_Attributes* attributesHandle() const - {return m_pAttributes;} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! An Instance of this reference have been created - inline void structInstanceCreated(GLC_StructInstance* pInstance) - { - Q_ASSERT(!m_SetOfInstance.contains(pInstance)); - m_SetOfInstance << pInstance; - } - - //! An Instance of this reference have been deleted - inline void structInstanceDeleted(GLC_StructInstance* pInstance) - {m_SetOfInstance.remove(pInstance);} - - //! Set the reference name - inline void setName(const QString& name) - {m_Name= name;} - - //! Set the reference representation - /*! Representation must not exist*/ - void setRepresentation(const GLC_3DRep& rep); - - //! Set the reference attributes - void setAttributes(const GLC_Attributes& attr) - { - delete m_pAttributes; - m_pAttributes= new GLC_Attributes(attr); - } - -//@} - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// -private: - //! The Set of reference's instances - QSet m_SetOfInstance; - - //! The representation of reference - GLC_Rep* m_pRepresentation; - - //! The Reference Name - QString m_Name; - - //! The Reference attributes - GLC_Attributes* m_pAttributes; - -}; - -#endif /* GLC_STRUCTREFERENCE_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_world.h b/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_world.h deleted file mode 100644 index 872ed58b8..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_world.h +++ /dev/null @@ -1,227 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_world.h interface for the GLC_World class. - -#ifndef GLC_WORLD_H_ -#define GLC_WORLD_H_ - -#include "glc_3dviewcollection.h" -#include "glc_structoccurence.h" -#include "glc_structreference.h" -#include "glc_structinstance.h" -#include "glc_worldhandle.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_World -/*! \brief GLC_World : The Root of GLC_Lib Scene Graph*/ -/*! - * GLC_World contain : - * - The Scene root GLC_Product. - * - a GLC_3DViewCollection which manage all scene shapes (GLC_3DViewInstance) - * - */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_World -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - GLC_World(); - - //! Copy constructor - GLC_World(const GLC_World&); - - //! Destructor - virtual ~GLC_World(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the entire world Bounding Box - inline GLC_BoundingBox boundingBox() - { return m_pWorldHandle->collection()->boundingBox();} - - //! Return the root of the world - inline GLC_StructOccurence* rootOccurence() const - {return m_pRoot;} - - //! Return the world collection - inline GLC_3DViewCollection* collection() - {return m_pWorldHandle->collection();} - - //! Return the size of the world - inline int size() const - {return m_pWorldHandle->collection()->size();} - - //! Return true if the world is empty - inline bool isEmpty() const - {return m_pWorldHandle->collection()->isEmpty();} - - //! Return number of faces - inline int numberOfFaces() const - {return m_pRoot->numberOfFaces();} - - //! Return number of vertex - inline int numberOfVertex() const - {return m_pRoot->numberOfVertex();} - - //! Return the number of materials - inline int numberOfMaterials() const - {return m_pRoot->numberOfMaterials();} - - //! Return the list of material - inline QList listOfMaterials() const - {return m_pRoot->materialSet().toList();} - - //! Return list of world's instances - inline QList instancesHandle() const - {return m_pWorldHandle->collection()->instancesHandle();} - - //! Return all visible GLC_3DViewInstance from the world - inline QList visibleInstancesHandle() const - {return m_pWorldHandle->collection()->visibleInstancesHandle();} - - //! Return instances name from the specified shading group - inline QList instanceNamesFromShadingGroup(GLuint id) const - {return m_pWorldHandle->collection()->instanceNamesFromShadingGroup(id);} - - //! Return the number of used shading group - inline int numberOfUsedShadingGroup() const - {return m_pWorldHandle->collection()->numberOfUsedShadingGroup();} - - //! Return the worldHandle of this world - inline GLC_WorldHandle* worldHandle() - {return m_pWorldHandle;} - - //! Return the occurence specified by an id - /*! Id must be a valid identifier*/ - inline GLC_StructOccurence* occurence(GLC_uint id) const - {return m_pWorldHandle->getOccurence(id);} - - //! Return the list off occurences - inline QList listOfOccurence() const - {return m_pWorldHandle->occurences();} - - //! Return the number of occurence - inline int numberOfOccurence() const - {return m_pWorldHandle->numberOfOccurence();} - - //! Return true if the world contians specified id - inline int contains(GLC_uint id) const - {return m_pWorldHandle->contains(id);} - - //! Return the list of instance - inline QList instances() const - {return m_pWorldHandle->instances();} - - //! Return the list of Reference - inline QList references() const - {return m_pWorldHandle->references();} - - //! Return the number of body - inline int numberOfBody() const - {return m_pWorldHandle->numberOfBody();} - - //! Return the world Up vector - inline GLC_Vector3d upVector() const - {return m_pWorldHandle->upVector();} - - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Merge this world with another world - void mergeWithAnotherWorld(GLC_World &); - - //! Reverse worlds part normal - inline void reversePartNormal() {m_pRoot->reverseNormals();} - - //! Clear this world - GLC_World& clear() {return *this= GLC_World();} - - //! Set the World root Name - inline void setRootName(const QString& name) - { - m_pRoot->setName(name); - } - - //! Set the world Up Vector - inline void setUpVector(const GLC_Vector3d& vect) - {m_pWorldHandle->setUpVector(vect);} - - //! Set the attached viewport of this world - inline void setAttachedViewport(GLC_Viewport* pViewport) - {m_pWorldHandle->setAttachedViewport(pViewport);} - - -//@} - -////////////////////////////////////////////////////////////////////// -/*! @name Operator Overload */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Assignement operator - GLC_World& operator=(const GLC_World&); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Display the world - inline void render(GLuint groupId, glc::RenderFlag renderFlag= glc::ShadingFlag) - {m_pWorldHandle->collection()->render(groupId, renderFlag);} - - //! Display the world's shader group - inline void renderShaderGroup(glc::RenderFlag renderFlag= glc::ShadingFlag) - {m_pWorldHandle->collection()->renderShaderGroup(renderFlag);} - -//@} -////////////////////////////////////////////////////////////////////// -// private members -////////////////////////////////////////////////////////////////////// -private: - //! The World Handle - GLC_WorldHandle* m_pWorldHandle; - - //! The root of the structure - GLC_StructOccurence* m_pRoot; -}; - -#endif /*GLC_WORLD_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_worldhandle.h b/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_worldhandle.h deleted file mode 100644 index aca9bab02..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/sceneGraph/glc_worldhandle.h +++ /dev/null @@ -1,158 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ - -#ifndef GLC_WORLDHANDLE_H_ -#define GLC_WORLDHANDLE_H_ - -#include "glc_3dviewcollection.h" -#include "glc_structoccurence.h" - -#include - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_WorldHandle -/*! \brief GLC_WorldHandle : Handle of shared GLC_World*/ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_WorldHandle -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! The default constructor - GLC_WorldHandle(); - - //! The default destructor - ~GLC_WorldHandle(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the collection - inline GLC_3DViewCollection* collection() - {return &m_Collection;} - - //! Return the number of world associated with this handle - inline int numberOfWorld() const - {return m_NumberOfWorld;} - - //! Return true if there is only one world associated with this handle - inline bool isOrphan() const - {return m_NumberOfWorld == 0;} - - //! Return true if the specified occurence id is in this world - inline bool contains(GLC_uint id) const - {return m_OccurenceHash.contains(id);} - - //! Return the occurence specified by an id - /*! Id must be a valid identifier*/ - inline GLC_StructOccurence* getOccurence(GLC_uint id) const - { - Q_ASSERT(m_OccurenceHash.contains(id)); - return m_OccurenceHash.value(id); - } - - //! Return the list off occurences - inline QList occurences() const - {return m_OccurenceHash.values();} - - //! Return the number of occurence - inline int numberOfOccurence() const - {return m_OccurenceHash.size();} - - //! Return the list of instance - QList instances() const; - - //! Return the list of Reference - QList references() const; - - //! Return the number of body - int numberOfBody() const; - - //! Return the world Up vector - inline GLC_Vector3d upVector() const - {return m_UpVector;} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Increment the number of world - inline void increment() - {++m_NumberOfWorld;} - - //! Decrement the number of world - inline void decrement() - {--m_NumberOfWorld;} - - //! An Occurence has been added - void addOccurence(GLC_StructOccurence* pOccurence, bool isSelected= false, GLuint shaderId= 0); - - //! An Occurence has been removed - void removeOccurence(GLC_StructOccurence* pOccurence); - - //! All Occurence has been removed - inline void removeAllOccurences() - { - m_OccurenceHash.clear(); - } - - //! Set the world Up Vector - inline void setUpVector(const GLC_Vector3d& vect) - {m_UpVector= vect;} - - //! Set the attached viewport of this world handle - inline void setAttachedViewport(GLC_Viewport* pViewport) - {m_Collection.setAttachedViewport(pViewport);} - - -//@} - -////////////////////////////////////////////////////////////////////// -// private members -////////////////////////////////////////////////////////////////////// -private: - //! The Collection - GLC_3DViewCollection m_Collection; - - //! Number of this world - int m_NumberOfWorld; - - //! The hash table containing struct occurence - QHash m_OccurenceHash; - - //! The world Up Vector - GLC_Vector3d m_UpVector; -}; - -#endif /* GLC_WORLDHANDLE_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/shading/glc_light.h b/ground/src/libs/glc_lib/install/include/GLC_lib/shading/glc_light.h deleted file mode 100644 index 8544898ab..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/shading/glc_light.h +++ /dev/null @@ -1,274 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_light.h interface for the GLC_Light class. - -#ifndef GLC_LIGHT_H_ -#define GLC_LIGHT_H_ - -#include -#include -#include "../glc_object.h" -#include "../maths/glc_vector3d.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Light -/*! \brief GLC_Light : OpenGL Point Light*/ - -/*! An GLC_Light is an OpenGL point Light source at a 3D location\n - * Point light is omnidirectional and have color*/ -////////////////////////////////////////////////////////////////////// - -class GLC_LIB_EXPORT GLC_Light : public GLC_Object -{ -public: - //! Light Type enum - enum LightType - { - LightPosition= 0, - LightDirection= 1, - LightSpot= 2 - }; -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Construct a default GLC_Light - /*! By default, ambient color is black, diffuse Color is white and specular color is white*/ - GLC_Light(const QColor& color= Qt::white); - - //! Construct a default GLC_Light - /*! By default, ambient color is black, diffuse Color is white and specular color is white*/ - GLC_Light(LightType lightType, const QColor& color= Qt::white); - - //! Copy constructor - GLC_Light(const GLC_Light& light); - - //! Delete OpenGL list - virtual ~GLC_Light(void); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the maximum number light - static int maxLightCount(); - - //! Return the number of builtable light - static int builtAbleLightCount(); - - //! Return a GLC_Point3d representing light position - inline GLC_Point3d position(void) const - {return m_Position;} - - //! Return the QColor of the light's ambient color - inline QColor ambientColor() const - {return m_AmbientColor;} - - //! Return the QColor of the light's Diffuse color - inline QColor diffuseColor() const - { return m_DiffuseColor;} - - //! Return the QColor of the light's Specular color - inline QColor specularColor() const - {return m_SpecularColor;} - - //! Return true if the light used two sided ilumination - inline bool isTwoSided() const - {return m_TwoSided;} - - //! Return the type of this light - inline LightType type() const - {return m_LightType;} - - //! Return the OpenGL ID of this light - inline GLenum openglID() const - {return m_LightID;} - - //! Return this light const attenuation - inline GLfloat constantAttenuation() const - {return m_ConstantAttenuation;} - - //! Return this light linear attenuation - inline GLfloat linearAttenuation() const - {return m_LinearAttenuation;} - - //! Return this light quadratic attenuation - inline GLfloat quadraticAttenuation() const - {return m_QuadraticAttenuation;} - - //! Return this light spot direction - inline GLC_Vector3d spotDirection() const - {return m_SpotDirection;} - - //! Return this light spot cutoff angle - inline GLfloat spotCutoffAngle() const - {return m_SpotCutoffAngle;} - - //! Return this light spot exponent - inline GLfloat spotEponent() const - {return m_SpotExponent;} -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Init Max number of light - static void init(); - - //! Set lihgt's position by a point - void setPosition(const GLC_Point3d &pos); - - //! Set lihgt's position by a 3 GLfloat - void setPosition(GLfloat x, GLfloat y, GLfloat z); - - //! Set light's ambiant color by a QColor - void setAmbientColor(const QColor &color); - - //! Set light's diffuse color by a QColor - void setDiffuseColor(const QColor &color); - - //! Set light's specular color by a QColor - void setSpecularColor(const QColor &color); - - //! Set Mode - void setTwoSided(const bool mode); - - //! Set this light constant attenuation - void setConstantAttenuation(GLfloat constantAttenuation); - - //! Set this light linear attenuation - void setLinearAttenuation(GLfloat linearAttenuation); - - //! Set this light quadratic attenuation - void setQuadraticAttenuation(GLfloat quadraticAttenuation); - - //! Set this light spot direction - void setSpotDirection(const GLC_Vector3d& direction); - - //! Set this light spot cutoff angle - void setSpotCutoffAngle(GLfloat cutoffAngle); - - //! Set this light spot exponent - void setSpotEponent(GLfloat exponent); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Enable the light - inline void enable() const - {glEnable(m_LightID);} - - // Disable the light - inline void disable() const - {glDisable(m_LightID);} - - //! Execute OpenGL light - virtual void glExecute(GLenum Mode= GL_COMPILE_AND_EXECUTE); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// - -private: - //! OpenGL light set up - void glDraw(); - - //! Display List creation - void creationList(GLenum Mode); - - //! Delete OpenGL Display list - void deleteList(); - -//@} - -////////////////////////////////////////////////////////////////////// -// Private Members -////////////////////////////////////////////////////////////////////// - -private: - //! OpenGL light ID - GLenum m_LightID; - - //! The Light type - LightType m_LightType; - - //! OpenGL Display list ID - GLuint m_ListID; - - //! OpenGL list validity - bool m_ListIsValid; - - //! Light ambiant color - QColor m_AmbientColor; - //! Light diffuse color - QColor m_DiffuseColor; - //! Light specular color - QColor m_SpecularColor; - - //! Light position - GLC_Point3d m_Position; - - //! The spot light direction - GLC_Vector3d m_SpotDirection; - - //! The spot exponent - GLfloat m_SpotExponent; - - //! The spot cutoff angle - GLfloat m_SpotCutoffAngle; - - //! Constant attenation - GLfloat m_ConstantAttenuation; - - //! Linear attenuation - GLfloat m_LinearAttenuation; - - //! Quadratic attenuation - GLfloat m_QuadraticAttenuation; - - //! Lighting mode - bool m_TwoSided; - - // Static member - //! Maximum number of light - static GLint m_MaxLight; - - //! Free light set - static QSet m_FreeLightSet; -}; -#endif //GLC_LIGHT_H_ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/shading/glc_material.h b/ground/src/libs/glc_lib/install/include/GLC_lib/shading/glc_material.h deleted file mode 100644 index 4818beafe..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/shading/glc_material.h +++ /dev/null @@ -1,281 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_material.h interface for the GLC_Material class. - -#ifndef GLC_MATERIAL_H_ -#define GLC_MATERIAL_H_ - - -#include "../glc_object.h" -#include "glc_texture.h" -#include -#include -#include - -#include "../glc_config.h" - -class GLC_Geometry; - -typedef QHash< GLC_uint, GLC_Geometry*> WhereUsed; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Material -/*! \brief GLC_Material : OpenGL surface material properties */ - -/*! An GLC_Material specifies surface material properties */ -////////////////////////////////////////////////////////////////////// - - -class GLC_LIB_EXPORT GLC_Material : public GLC_Object -{ - friend QDataStream &operator<<(QDataStream &, const GLC_Material &); - friend QDataStream &operator>>(QDataStream &, GLC_Material &); - -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Construct Colored GLC_Material - //! Default constructor - GLC_Material(); - - /*! By default, Ambiant Color is dark grey*/ - GLC_Material(const QColor &); - - /*! By default, Ambiant Color is dark grey*/ - GLC_Material(const QString& name, const GLfloat *); - - //! Construct textured GLC_Material - GLC_Material(GLC_Texture* pTexture, const char *pName); - - //! Copy constructor - /*! Hast usage table are not copying - */ - GLC_Material(const GLC_Material &InitMaterial); - - //! Remove material where used geometry - virtual ~GLC_Material(void); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the class Chunk ID - static quint32 chunckID(); - - //! Return true if the material is used - bool isUnused() const - {return m_WhereUsed.isEmpty() && m_OtherUsage.isEmpty();} - - //! Return true is material has attached texture - inline bool hasTexture() const - {return m_pTexture != NULL;} - - //! Get Ambiant color - QColor ambientColor() const; - - //! Get diffuse color - QColor diffuseColor() const; - - //! Get specular color - QColor specularColor() const; - - //! Get the emissive color - QColor emissiveColor() const; - - //! Get Shininess - inline GLfloat shininess() const - {return m_Shininess;} - - //! Get the texture File Name - QString textureFileName() const; - - //! Get Texture Id - GLuint textureID() const; - - //! return true if the texture is loaded - bool textureIsLoaded() const; - - //! Return true if the material is transparent - inline bool isTransparent() const - {return m_Opacity < 1.0;} - - //! Return true if materials are equivalent - bool operator==(const GLC_Material&) const; - - //! Return the material opacity - inline double opacity() const - {return m_DiffuseColor.alphaF();} - - //! Return the number of this material usage - inline int numberOfUsage() const - {return m_WhereUsed.size() + m_OtherUsage.size();} - - //! Return the texture handle - inline GLC_Texture* textureHandle() const - {return m_pTexture;} - - //! Return the material hash code - uint hashCode() const; - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Assignement operator - /*! The Hash Table WhereUse - * is not modified - */ - inline GLC_Material &operator=(const GLC_Material& mat) - { - setMaterial(&mat); - return *this; - } - - //! Set Material properties - /*! The Hash Table WhereUse - * is not modified - */ - void setMaterial(const GLC_Material*); - - //! Set Ambiant Color - void setAmbientColor(const QColor& ambientColor); - - //! Set Diffuse color - void setDiffuseColor(const QColor& diffuseColor); - - //! Set Specular color - void setSpecularColor(const QColor& specularColor); - - //! Set Emissive - void setEmissiveColor(const QColor& lightEmission); - - //! Set Shininess - inline void setShininess(GLfloat Shininess) - { m_Shininess= Shininess;} - - //! Set Texture - void setTexture(GLC_Texture* pTexture); - - //! remove Material Texture - void removeTexture(); - - //! Add Geometry to the "where used" hash table - /*! This method is thread safe*/ - bool addGLC_Geom(GLC_Geometry* pGeom); - - //! Remove Geometry to the "where used" hash table - /*! This method is thread safe*/ - bool delGLC_Geom(GLC_uint Key); - - //! Add the id to the other used Set - /*! This method is thread safe*/ - bool addUsage(GLC_uint); - - //! Remove the id to the other used Set - /*! This method is thread safe*/ - bool delUsage(GLC_uint); - - //! Set the material opacity - void setOpacity(const qreal); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Load the texture - void glLoadTexture(void); - - //! Execute OpenGL Material - virtual void glExecute(); - - //! Execute OpenGL Material with overWrite transparency - virtual void glExecute(float); - -//@} - -////////////////////////////////////////////////////////////////////// -// Private services Functions -////////////////////////////////////////////////////////////////////// -private: - //! Init Ambiant Color - void initDiffuseColor(void); - - //! Init other color - void initOtherColor(void); - - -////////////////////////////////////////////////////////////////////// -// Private Member -////////////////////////////////////////////////////////////////////// - -private: - - //! Ambiant Color - QColor m_AmbientColor; - //! Diffuse Color - QColor m_DiffuseColor; - //! Specular Color - QColor m_SpecularColor; - - //! emmisive lighting - QColor m_EmissiveColor; - - //! Shiness - GLfloat m_Shininess; - - //! Hash table of geomtries which used this material - WhereUsed m_WhereUsed; - - //! Set of id of other objects that uses this material - QSet m_OtherUsage; - - //! Material's texture - GLC_Texture* m_pTexture; - - //! Material opacity - qreal m_Opacity; - - //! Class chunk id - static quint32 m_ChunkId; - -}; - -//! Non-member stream operator -QDataStream &operator<<(QDataStream &, const GLC_Material &); -QDataStream &operator>>(QDataStream &, GLC_Material &); - -#endif //GLC_MATERIAL_H_ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/shading/glc_renderproperties.h b/ground/src/libs/glc_lib/install/include/GLC_lib/shading/glc_renderproperties.h deleted file mode 100644 index dfd486b1a..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/shading/glc_renderproperties.h +++ /dev/null @@ -1,332 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ - -//! \file glc_renderproperties.h interface for the GLC_RenderProperties class. - -#ifndef GLC_RENDERPROPERTIES_H_ -#define GLC_RENDERPROPERTIES_H_ - -#include "glc_material.h" -#include "../glc_global.h" - -#include -#include -#include - -#include "../glc_config.h" - -//! Define render mode enum in glc namespace -namespace glc -{ - //! Geometry rendering mode enumeration - enum RenderMode - { - NormalRenderMode, - OverwriteMaterial, - OverwriteTransparency, - PrimitiveSelected, - OverwritePrimitiveMaterial, - BodySelection, - PrimitiveSelection - }; - - //! Geometry rendring flag enumaration - enum RenderFlag - { - ShadingFlag= 800, - WireRenderFlag, - TransparentRenderFlag - }; -}; -////////////////////////////////////////////////////////////////////// -//! \class GLC_RenderProperties -/*! \brief GLC_RenderProperties encapsulate the render properties - * off all GLC_3DViewInstance class*/ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_RenderProperties -{ - -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - GLC_RenderProperties(); - - //! Copy constructor - GLC_RenderProperties(const GLC_RenderProperties&); - - //! Assignement operator - GLC_RenderProperties &operator=(const GLC_RenderProperties&); - - //! Destructor - virtual ~GLC_RenderProperties(); -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return true if it is selected - inline bool isSelected() const - {return m_IsSelected;} - - //! Return the rendering mode - inline glc::RenderMode renderingMode() const - {return m_RenderMode;} - - //! Return the saved rendering mode - inline glc::RenderMode savedRenderingMode() const - {return m_SavedRenderMode;} - - //! Return an handle to the overwrite material - inline GLC_Material* overwriteMaterial() const - {return m_pOverwriteMaterial;} - - //! Return the overwrite transparency - inline float overwriteTransparency() const - {return m_OverwriteOpacity;} - - //! Return an handle to the set of selected primitives id of the current body - inline QSet* setOfSelectedPrimitivesId() const - { - Q_ASSERT(NULL != m_pBodySelectedPrimitvesId); - if (m_pBodySelectedPrimitvesId->contains(m_CurrentBody)) - return m_pBodySelectedPrimitvesId->value(m_CurrentBody); - else return NULL; - } - - //! Return true if the set of selected primitive id is empty - inline bool setOfSelectedPrimitiveIdIsEmpty() const - {return (!((NULL != m_pBodySelectedPrimitvesId) && m_pBodySelectedPrimitvesId->contains(m_CurrentBody)));} - - //! Return true if the specified primitive id of the specified body index is selected - bool primitiveIsSelected(int index, GLC_uint id) const; - - //! Return an handle to the overwrite primitive material Hash - inline QHash* hashOfOverwritePrimitiveMaterials() const - { - Q_ASSERT(NULL != m_pOverwritePrimitiveMaterialMaps); - if (m_pOverwritePrimitiveMaterialMaps->contains(m_CurrentBody)) - return m_pOverwritePrimitiveMaterialMaps->value(m_CurrentBody); - else return NULL; - } - - //! Return true if the hash of overwrite primitive material is empty - inline bool hashOfOverwritePrimitiveMaterialsIsEmpty() const - {return (!((NULL != m_pOverwritePrimitiveMaterialMaps) && m_pOverwritePrimitiveMaterialMaps->contains(m_CurrentBody)));} - - //! Get the PolyFace mode - /*! PolyFace Mode can Be : GL_FRONT_AND_BACK, GL_FRONT, or GL_BACK*/ - inline GLenum polyFaceMode() const - {return m_PolyFace;} - - //! Get the Polygon mode - /*! Polygon Mode can Be : GL_POINT, GL_LINE, or GL_FILL*/ - inline GLenum polygonMode() const - {return m_PolyMode;} - - //! Return rendering flag render flag - inline glc::RenderFlag renderingFlag() const - {return m_RenderingFlag;} - - //! Return true if rendering properties needs to render with transparency - bool needToRenderWithTransparency() const; - - //! Return the current body index - inline int currentBodyIndex() const - {return m_CurrentBody;} - - //! Return true if this rendering properties has defaut value - bool isDefault() const; - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Clear the content of the render properties and update materials usage - void clear(); -//@} -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Select the instance - inline void select(bool primitive); - - //! Unselect the instance - inline void unselect(void); - - //! Set the rendering mode - inline void setRenderingMode(glc::RenderMode mode) - {m_RenderMode= mode;} - - //! Set the overwrite material - void setOverwriteMaterial(GLC_Material*); - - //! Set the overwrite transparency - inline void setOverwriteTransparency(float alpha) - {m_OverwriteOpacity= alpha;} - - //! Add the set of selected primitives id of the specified body - void addSetOfSelectedPrimitivesId(const QSet&, int body= 0); - - //! Add a selected primitive of the specified body - void addSelectedPrimitive(GLC_uint, int body= 0); - - //! Clear selectedPrimitive Set - void clearSelectedPrimitives(); - - //! Add an overwrite primitive material - void addOverwritePrimitiveMaterial(GLC_uint, GLC_Material*, int bodyIndex= 0); - - //! Clear overwrite primitive materials - void clearOverwritePrimitiveMaterials(); - - //! Polygon's display style - /*! Face Polygon Mode can be : GL_FRONT_AND_BACK, GL_FRONT, or GL_BACK - * mode can be : GL_POINT, GL_LINE, or GL_FILL */ - inline void setPolygonMode(GLenum Face, GLenum Mode) - { - m_PolyFace= Face; - m_PolyMode= Mode; - } - - //! Set the rendering flag - inline void setRenderingFlag(glc::RenderFlag flag) - {m_RenderingFlag= flag;} - - //! Set the current body index - inline void setCurrentBodyIndex(int index) - {m_CurrentBody= index;} - - //! Used the specified material - inline void useMaterial(GLC_Material*); - - //! Unused the specified material - inline void unUseMaterial(GLC_Material*); - - -//@} - -////////////////////////////////////////////////////////////////////// -//Private attributes -////////////////////////////////////////////////////////////////////// -private: - //! The render properties uid : GLC_GenUserID (For GLC_Material usage) - GLC_uint m_Uid; - - //! Flag to know if it is selected - bool m_IsSelected; - - //! OpenGL polygon rendering mode - GLenum m_PolyFace; - GLenum m_PolyMode; - - //! Geometry rendering mode - glc::RenderMode m_RenderMode; - - //! Geometry saved rendering mode - glc::RenderMode m_SavedRenderMode; - - //! The overwrite material - GLC_Material* m_pOverwriteMaterial; - - //! The overwrite opacity - float m_OverwriteOpacity; - - //! The selected primitive id regrouped by body - QHash* >* m_pBodySelectedPrimitvesId; - - //! The overwrite primitive material mapping - QHash* >* m_pOverwritePrimitiveMaterialMaps; - - //! Transparent material render flag - glc::RenderFlag m_RenderingFlag; - - //! The current rendere body - int m_CurrentBody; - - //! The Hash table of overwrite primitive maped to the number of usages in this render properties - QHash m_MaterialsUsage; - -}; - -// Select the instance -void GLC_RenderProperties::select(bool primitive) -{ - m_IsSelected= true; - if (primitive && (m_RenderMode != glc::PrimitiveSelected)) - { - m_SavedRenderMode= m_RenderMode; - m_RenderMode= glc::PrimitiveSelected; - } -} - -// Unselect the instance -void GLC_RenderProperties::unselect(void) -{ - m_IsSelected= false; - if (m_RenderMode == glc::PrimitiveSelected) - { - m_RenderMode= m_SavedRenderMode; - } -} -// Used the specified material -void GLC_RenderProperties::useMaterial(GLC_Material* pMaterial) -{ - if (m_MaterialsUsage.contains(pMaterial)) - { - QHash::iterator iMat= m_MaterialsUsage.find(pMaterial); - iMat.value()= iMat.value() + 1; - } - else - { - m_MaterialsUsage.insert(pMaterial, 1); - pMaterial->addUsage(m_Uid); - } - -} - -// Unused the specified material -void GLC_RenderProperties::unUseMaterial(GLC_Material* pMaterial) -{ - Q_ASSERT(m_MaterialsUsage.contains(pMaterial)); - QHash::iterator iMat= m_MaterialsUsage.find(pMaterial); - iMat.value()= iMat.value() - 1; - if (iMat.value() == 0) - { - pMaterial->delUsage(m_Uid); - if (pMaterial->isUnused()) delete pMaterial; - m_MaterialsUsage.remove(pMaterial); - } -} - -#endif /* GLC_RENDERPROPERTIES_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/shading/glc_selectionmaterial.h b/ground/src/libs/glc_lib/install/include/GLC_lib/shading/glc_selectionmaterial.h deleted file mode 100644 index 047fcb3f3..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/shading/glc_selectionmaterial.h +++ /dev/null @@ -1,78 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ -//! \file glc_selectionmaterial.h interface for the GLC_SelectionMaterial class. - -#ifndef GLC_SELECTIONMATERIAL_H_ -#define GLC_SELECTIONMATERIAL_H_ - -#include -#include -#include "../glc_ext.h" -#include "glc_shader.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_SelectionMaterial -/*! \brief GLC_SelectionMaterial : Material used for selection feedback*/ - -////////////////////////////////////////////////////////////////////// - -class GLC_LIB_EXPORT GLC_SelectionMaterial -{ -private: - GLC_SelectionMaterial(); - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Execute OpenGL Material - static void glExecute(); - //! Init shader - inline static void initShader() {m_SelectionShader.createAndCompileProgrammShader();} - //! delete shader - static void deleteShader(); - //! Set shader - inline static void setShaders(QFile& vertex, QFile& fragment) - {m_SelectionShader.setVertexAndFragmentShader(vertex, fragment);} - //! Use shader - inline static void useShader() {m_SelectionShader.use();} - //! Unused shader - inline static void unUseShader() {m_SelectionShader.unuse();} - -//@} - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// - -private: - //! Selection Shader - static GLC_Shader m_SelectionShader; - -}; - -#endif /*GLC_SELECTIONMATERIAL_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/shading/glc_shader.h b/ground/src/libs/glc_lib/install/include/GLC_lib/shading/glc_shader.h deleted file mode 100644 index 08c8105f0..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/shading/glc_shader.h +++ /dev/null @@ -1,200 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_shader.h interface for the GLC_Shader class. - -#ifndef GLC_SHADER_H_ -#define GLC_SHADER_H_ - -#include "../glc_ext.h" -#include -#include -#include -#include - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Shader -/*! \brief GLC_Shader : OpenGL shader abstraction*/ - -/*! An GLC_Shader encapsulate vertex, fragment shader and programm\n - * GLC_Shader provide functionnality to load, compile and execute - * GLSL vertex and fragment shader. - */ - -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Shader -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - GLC_Shader(); - - //! Construct shader with specifie vertex and fragment - GLC_Shader(QFile&, QFile&); - - //! Copy constructor - GLC_Shader(const GLC_Shader&); - - //! Shader destructor - ~GLC_Shader(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the program shader id - inline GLuint id() const - {return m_ProgramShader;} - - //! Return true if the shader is usable - inline bool isUsable() const - {return m_ProgramShader != 0;} - - //! Return true if the shader can be deleted - bool canBeDeleted() const; - - //! Return the shader's name - inline QString name() const - {return m_Name;} -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Set Vertex and fragment shaders - void setVertexAndFragmentShader(QFile&, QFile&); - - //! Replace this shader by a copy of another shader - /* If this shader is usable replacing shader must be usable*/ - void replaceShader(const GLC_Shader&); - - //! Assignement operator which use replace shader method - inline GLC_Shader& operator=(const GLC_Shader& shader) - { - replaceShader(shader); - return *this; - } - - //! Set the Shader Name - inline void setName(const QString& name) - {m_Name= name;} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Use this shader program - /*! Throw GLC_Exception if the program is not usable*/ - void use(); - - //! use specified program shader - /*! Throw GLC_Exception if the program is not usable*/ - static void use(GLuint); - - //! unuse programm shader - static void unuse(); - - //! Compile and attach shaders to a program shader - /*! Throw GLC_Exception if vertex and fragment shader are not been set*/ - void createAndCompileProgrammShader(); - - //!Delete the shader - void deleteShader(); - -private: - //! Create and compile vertex shader - void createAndLinkVertexShader(); - - //! Create and compile fragment shader - void createAndLinkFragmentShader(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name private services Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// - //! Load Vertex shader - void loadVertexShader(); - - //! Load fragment shaders - void loadFragmentShader(); - - //! Set Vertex shader - void setVertexShader(QFile&); - - //! Set fragment shaders - void setFragmentShader(QFile&); - - //! Return char* of an Ascii file - QByteArray readShaderFile(QFile&); - - -//@} - -////////////////////////////////////////////////////////////////////// -// private members -////////////////////////////////////////////////////////////////////// -private: - //! The programm ID Stack - static QStack m_ProgrammStack; - - //! The current programm ID - static GLuint m_CurrentProgramm; - - //! A Mutex - static QMutex m_Mutex; - - //! Vertex shader file - QByteArray m_VertexByteArray; - - //! Vertex shader ID - GLuint m_VertexShader; - - //! Fragment shader file - QByteArray m_FragmentByteArray; - - //! Fragment shader ID - GLuint m_FragmentShader; - - //! Programm shader ID - GLuint m_ProgramShader; - - //! The Shader's name - QString m_Name; - -}; - -#endif /*GLC_SHADER_H_*/ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/shading/glc_texture.h b/ground/src/libs/glc_lib/install/include/GLC_lib/shading/glc_texture.h deleted file mode 100644 index 135f71319..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/shading/glc_texture.h +++ /dev/null @@ -1,188 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_texture.h interface for the GLC_Texture class. - -#ifndef GLC_TEXTURE_H_ -#define GLC_TEXTURE_H_ - -#include -#include - -#include "../glc_config.h" - -///////////////////////////////////////////////////////////////////// -//! \class GLC_Texture -/*! \brief GLC_Texture : Image texture */ - -/*! Image texture define a texture map in 2 D coordinate system*/ -////////////////////////////////////////////////////////////////////// - - -class GLC_LIB_EXPORT GLC_Texture -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// - -public: - //! Default constructor - GLC_Texture(const QGLContext*); - - //! Constructor with fileName - GLC_Texture(const QGLContext*, const QString&); - - //! Constructor with QFile - GLC_Texture(const QGLContext*, const QFile&); - - //! Constructor with QImage - GLC_Texture(const QGLContext*, const QImage&, const QString& fileName= QString()); - - //! Copy constructor - GLC_Texture(const GLC_Texture& TextureToCopy); - - //! Overload "=" operator - GLC_Texture& operator=(const GLC_Texture&); - - //! Default Destructor - virtual ~GLC_Texture(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the QGLContext of the texture - inline QGLContext* context() const - {return m_pQGLContext;} - - //! Return the texture File Name - inline QString fileName() const - {return m_FileName;} - - //! Return OpenGL Texture Id - inline GLuint GL_ID() const - {return m_GlTextureID;} - - //! Return true if the texture is loaded - inline bool isLoaded() const - {return (m_GlTextureID != 0);} - - //! Return the texture size - inline QSize size() const - {return m_TextureSize;} - - //! Return the maximum texture size - static QSize maxSize() - {return m_MaxTextureSize;} - - //! Return true if texture are the same - bool operator==(const GLC_Texture&) const; - - //! Return true if the texture has alpha channel - inline bool hasAlphaChannel() const - { return m_HasAlphaChannel;} - - //! Return the an image of the texture - inline QImage imageOfTexture() const - { return m_textureImage;} - - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - // Set the maximum texture size - static void setMaxTextureSize(const QSize&); - -//@} -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Load the texture - void glLoadTexture(void); - //! Bind texture in 2D mode - void glcBindTexture(void); - - -////////////////////////////////////////////////////////////////////// -/*! @name Private services functions */ -//@{ -////////////////////////////////////////////////////////////////////// -private: - //! Load the image of this texture from the given fileName and return resutling image - QImage loadFromFile(const QString& fileName); - - //! Remove this Opengl texture id - void removeThisOpenGLTextureId(); - - //! Add this Opengl texture id - void addThisOpenGLTextureId(); - -//@} - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// - -private: - //! OpenGL Context - QGLContext *m_pQGLContext; - - //! Texture Name - QString m_FileName; - - //! OpenGL Texture ID - GLuint m_GlTextureID; - - //! QImage off the texture - QImage m_textureImage; - - //! Size of the texture - QSize m_TextureSize; - - //! Flag to know if the texture has alpha channel - bool m_HasAlphaChannel; - - //! Static member used to check texture size - static QSize m_MaxTextureSize; - static const QSize m_MinTextureSize; - - //! Static hash table to manage OpenGL testure ID - static QHash m_TextureIdUsage; -}; - -//! Non-member stream operator -QDataStream &operator<<(QDataStream &, const GLC_Texture &); -QDataStream &operator>>(QDataStream &, GLC_Texture &); - - -#endif //GLC_TEXTURE_H_ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_camera.h b/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_camera.h deleted file mode 100644 index 5a61ffb2b..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_camera.h +++ /dev/null @@ -1,273 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Copyright (C) 2009 Laurent Bauer - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_camera.h Interface for the GLC_Camera class. - -#ifndef GLC_CAMERA_H_ -#define GLC_CAMERA_H_ - -#include "../glc_object.h" -#include "../maths/glc_vector3d.h" -#include "../maths/glc_matrix4x4.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Camera -/*! \brief GLC_Camera : OpenGL perpective viewpoint */ - -/*! An GLC_Camera define Viewpoint and orientation - * of an OpenGL perpective camera*/ -////////////////////////////////////////////////////////////////////// - -class GLC_LIB_EXPORT GLC_Camera : - public GLC_Object -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - /*! Point of view (0, 0, 1) Up Vector (0, 1, 0)*/ - GLC_Camera(); - - //! Explicit constructor - /* VectUp and VectCam could not be parallel - * VectUp could not be NULL - * VectCam could not be NULL */ - GLC_Camera(const GLC_Point3d &, const GLC_Point3d &, const GLC_Vector3d &); - - //! Copy constructor - GLC_Camera(const GLC_Camera&); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Get the distance between the eye and the target of camera - inline double distEyeTarget(void) const - {return (m_Eye - m_Target).length();} - - //! Get camera's eye coordinate point - inline GLC_Point3d eye(void) const - {return m_Eye;} - - //! Get camera's target coordinate point - inline GLC_Point3d target(void) const - {return m_Target;} - - //! Get camera's Up vector - inline GLC_Vector3d upVector(void) const - {return m_VectUp;} - - //! Get camera's forward vector (from eye to target) - inline GLC_Vector3d forward(void) const - {return m_Target - m_Eye;} - - //! Side camera vector - inline GLC_Vector3d sideVector() const - {return ((m_Target - m_Eye).normalize() ^ m_VectUp).normalize();} - - //! Get camera's orbit composition matrix - inline GLC_Matrix4x4 viewMatrix(void) const - {return m_ModelViewMatrix;} - - //! equality operator - bool operator==(const GLC_Camera&) const; - - //! almost equality (Bauer Laurent) - bool isAlmostEqualTo(const GLC_Camera&, const double distanceAccuracy=0.05) const; - - //! Return the default up vector - inline GLC_Vector3d defaultUpVector() const - {return m_DefaultVectUp;} - - //! Return the standard front view form this camera - GLC_Camera frontView() const; - - //! Return the standard rear view form this camera - GLC_Camera rearView() const; - - //! Return the standard right view form this camera - GLC_Camera rightView() const; - - //! Return the standard left view form this camera - GLC_Camera leftView() const; - - //! Return the standard top view form this camera - GLC_Camera topView() const; - - //! Return the standard bottom view form this camera - GLC_Camera bottomView() const; - - //! Return the standard isoview from his camera - /*! Iso View is at the front top left*/ - GLC_Camera isoView() const; - - //! Return the model view matrix of the camera - inline GLC_Matrix4x4 modelViewMatrix() const - { - GLC_Matrix4x4 translate(-m_Eye); - GLC_Matrix4x4 modelView= GLC_Matrix4x4(m_ModelViewMatrix * translate); - return modelView; - } - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Camera orbiting - GLC_Camera& orbit(GLC_Vector3d VectOldPoss, GLC_Vector3d VectCurPoss); - - //! panoramic movement - GLC_Camera& pan(GLC_Vector3d VectDep); - - //! move camera's eye along camera vector (eye -> target) - /*! Factor must be > 0*/ - GLC_Camera& zoom(double factor); - - //! Move camera - GLC_Camera& move(const GLC_Matrix4x4 &MatMove); - - //! Rotate around an axis - GLC_Camera& rotateAround(const GLC_Vector3d&, const double&, const GLC_Point3d&); - - //! Rotate around camera target - GLC_Camera& rotateAroundTarget(const GLC_Vector3d&, const double&); - - //! Camera translation - GLC_Camera& translate(const GLC_Vector3d &VectTrans); - - //! Set the camera - /* VectUp and VectCam could not be parallel - * VectUp could not be NULL - * VectCam could not be NULL */ - GLC_Camera& setCam(GLC_Point3d Eye, GLC_Point3d Target, GLC_Vector3d Up); - - //! Set the camera by copying another camera - GLC_Camera& setCam(const GLC_Camera&); - - //! Set camera's eye coordinate vector - GLC_Camera& setEyeCam(const GLC_Point3d &Eye); - - //! Set camera's target coordinate vector - GLC_Camera& setTargetCam(const GLC_Point3d &Target); - - //! Set camera's Up vector - GLC_Camera& setUpCam(const GLC_Vector3d &Up); - - //! Set the distance between eye and target (move eye) - GLC_Camera& setDistEyeTarget(double Longueur); - - //! Set the distance between target and eye (move target) - GLC_Camera& setDistTargetEye(double Longueur); - - //! Assignement operator - GLC_Camera& operator=(const GLC_Camera&); - - //! Set the default Up vector - /*! Must Be X, Y or Z Axis*/ - inline GLC_Camera& setDefaultUpVector(const GLC_Vector3d& up) - { - Q_ASSERT((up == glc::X_AXIS) || (up == glc::Y_AXIS) || (up == glc::Z_AXIS)); - m_DefaultVectUp= up; - return *this; - } - - //! Set the standard front view form this camera - inline void setFrontView() - {setCam(frontView());} - - //! Set the standard rear view form this camera - inline void setRearView() - {setCam(rearView());} - - //! Set the standard right view form this camera - inline void setRightView() - {setCam(rightView());} - - //! Set the standard left view form this camera - inline void setLeftView() - {setCam(leftView());} - - //! Set the standard top view form this camera - inline void setTopView() - {setCam(topView());} - - //! Set the standard bottom view form this camera - inline void setBottomView() - {setCam(bottomView());} - - //! Set the standard isoview from his camera - /*! Iso View is at the front top left*/ - inline void setIsoView() - {setCam(isoView());} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Execute OpenGL Camera - void glExecute(); - -//@} - -////////////////////////////////////////////////////////////////////// -// Private services Functions -////////////////////////////////////////////////////////////////////// -private: - //! compute composition matrix - void createMatComp(void); - - -////////////////////////////////////////////////////////////////////// -// Private Member -////////////////////////////////////////////////////////////////////// -private: - //! Camera's eye point - GLC_Point3d m_Eye; - - //! Camera's target point - GLC_Point3d m_Target; - - //! Camera's Up vector - GLC_Vector3d m_VectUp; - - //! Camera model view matrix - GLC_Matrix4x4 m_ModelViewMatrix; - - //! The default Up axis - GLC_Vector3d m_DefaultVectUp; -}; -#endif //GLC_CAMERA_H_ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_flymover.h b/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_flymover.h deleted file mode 100644 index 7df021e36..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_flymover.h +++ /dev/null @@ -1,127 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_flymover.h Interface for the GLC_FlyMover class. - -#ifndef GLC_FLYMOVER_H_ -#define GLC_FLYMOVER_H_ -#include "glc_mover.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_FlyMover -/*! \brief GLC_FlyMover : Fly Mode interactive manipulation */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_FlyMover : public GLC_Mover -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - GLC_FlyMover(GLC_Viewport*, const QList& repsList= QList()); - - //! Copy constructor - GLC_FlyMover(const GLC_FlyMover& flyMover); - - //! Destructor - virtual ~GLC_FlyMover(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return a clone of the mover - virtual GLC_Mover* clone() const; - - //! Return the turning rate in degres - inline double turningRate() const - {return m_TurnRate / glc::PI * 180.0;} - - //! Return the flying velocity - inline double flyingVelocity() const - {return m_Velocity;} -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Initialized the mover - virtual void init(QMouseEvent * e); - - //! Move the camera - virtual bool move(QMouseEvent * e); - - //! Ends this mover - virtual void ends(); - - //! Set the maximum turning rate in degre - inline void setMaximumTurnRate(double turnRate) - {m_TurnRate= turnRate;} - - //! Set the flying velocity - void setFlyingVelocity(double velocity); - - //! increase the flying velocity - void increaseVelocity(double factor); - -//@} - -protected: - void timerEvent(QTimerEvent*); - -///////////////////////////////////////////////////////////////////// -// Private services Functions -////////////////////////////////////////////////////////////////////// -private: - //! Map the position of mouse for the fly mode - GLC_Vector3d mapForFlying(double x, double y); - - //! Fly - void fly(); - -////////////////////////////////////////////////////////////////////// -// Private Members -////////////////////////////////////////////////////////////////////// -private: - //! THe turning rate - double m_TurnRate; - - //! The timer id - int m_TimerId; - - //! the timer interval - int m_TimerInterval; - - //! fly velocity - double m_Velocity; - -}; - -#endif /* GLC_FLYMOVER_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_frustum.h b/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_frustum.h deleted file mode 100644 index f80935db4..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_frustum.h +++ /dev/null @@ -1,167 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_frustum.h Interface for the GLC_Frustum class. - -#ifndef GLC_FRUSTUM_H_ -#define GLC_FRUSTUM_H_ - -#include "../maths/glc_plane.h" -#include "../glc_boundingbox.h" -#include "../glc_config.h" - -class GLC_LIB_EXPORT GLC_Viewport; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Frustum -/*! \brief GLC_Frustum : OpenGL Frustum */ - -/*! GLC_Frustum by 6 planes */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Frustum -{ -private: - enum planeId - { - LeftPlane= 0, - RightPlane= 1, - TopPlane= 2, - BottomPlane= 3, - NearPlane= 4, - FarPlane= 5 - }; -public: - enum Localisation - { - InFrustum = 0, - IntersectFrustum = 1, - OutFrustum= 3 - }; -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - GLC_Frustum(); - - //! Copy constructor - GLC_Frustum(const GLC_Frustum&); - - //! Destructor - ~GLC_Frustum(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Return the left clipping plane - inline GLC_Plane leftClippingPlane() const - {return m_PlaneList.at(LeftPlane);} - - //! Return the Right clipping plane - inline GLC_Plane rightClippingPlane() const - {return m_PlaneList.at(RightPlane);} - - //! Return the top clipping plane - inline GLC_Plane topClippingPlane() const - {return m_PlaneList.at(TopPlane);} - - //! Return the bottom clipping plane - inline GLC_Plane bottomClippingPlane() const - {return m_PlaneList.at(BottomPlane);} - - //! Return the near clipping plane - inline GLC_Plane nearClippingPlane() const - {return m_PlaneList.at(NearPlane);} - - //! Return the far clipping plane - inline GLC_Plane farClippingPlane() const - {return m_PlaneList.at(FarPlane);} - - //! Localize bounding box - Localisation localizeBoundingBox(const GLC_BoundingBox&) const; - - //! Localize sphere - Localisation localizeSphere(const GLC_Point3d&, double) const; - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Set the left clipping plane - inline void setLeftClippingPlane(const GLC_Plane& plane) - {m_PlaneList[LeftPlane]= plane;} - - //! Set the right clipping plane - inline void setRightClippingPlane(const GLC_Plane& plane) - {m_PlaneList[RightPlane]= plane;} - - //! Set the top clipping plane - inline void setTopClippingPlane(const GLC_Plane& plane) - {m_PlaneList[TopPlane]= plane;} - - //! Set the bottom clipping plane - inline void setBottomClippingPlane(const GLC_Plane& plane) - {m_PlaneList[BottomPlane]= plane;} - - //! Set the near clipping plane - inline void setNearClippingPlane(const GLC_Plane& plane) - {m_PlaneList[NearPlane]= plane;} - - //! Set the far clipping plane - inline void setFarClippingPlane(const GLC_Plane& plane) - {m_PlaneList[FarPlane]= plane;} - - //! Update the frustum - /*! Return true if the frustum as change*/ - bool update(const GLC_Matrix4x4&); - -//@} -////////////////////////////////////////////////////////////////////// -// Private services function -////////////////////////////////////////////////////////////////////// -private: - //! localize a sphere to a plane - Localisation localizeSphereToPlane(const GLC_Point3d&, double, const GLC_Plane&) const; - -////////////////////////////////////////////////////////////////////// -// Private Member -////////////////////////////////////////////////////////////////////// -private: - - //! The list of frustum plane - QList m_PlaneList; - - //! The previous frustum matrix - GLC_Matrix4x4 m_PreviousMatrix; -}; - -#endif /* GLC_FRUSTUM_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_imageplane.h b/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_imageplane.h deleted file mode 100644 index bb4781557..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_imageplane.h +++ /dev/null @@ -1,77 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_imagePlane.h interface for the GLC_ImagePlane class. - -#ifndef GLC_IMAGEPLANE_H_ -#define GLC_IMAGEPLANE_H_ - -#include "../shading/glc_material.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_ImagePlane -/*! \brief GLC_ImagePlane : Viewport background image*/ - -/*! An GLC_ImagePlane is just a plane with a image texture.*/ -////////////////////////////////////////////////////////////////////// - -class GLC_LIB_EXPORT GLC_ImagePlane -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Construct image plane from the given image file name and QGLContext - GLC_ImagePlane(const QGLContext *pContext, const QString& ImageName); - - //! Construct image plane from the given image and QGLContext - GLC_ImagePlane(const QGLContext *pContext, const QImage& image); - - ~GLC_ImagePlane(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Render this image plane - void render(); -//@} - -////////////////////////////////////////////////////////////////////// -// Private members -////////////////////////////////////////////////////////////////////// - -private: - - //! The image plane material - GLC_Material m_Material; - -}; - -#endif //GLC_IMAGEPLANE_H_ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_mover.h b/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_mover.h deleted file mode 100644 index cdfca1c2c..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_mover.h +++ /dev/null @@ -1,138 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ - -//! \file glc_mover.h Interface for the GLC_Mover class. - -#ifndef GLC_MOVER_H_ -#define GLC_MOVER_H_ - -#include "glc_repmover.h" -#include "../maths/glc_vector3d.h" - -#include -#include - -#include "../glc_config.h" - -class QMouseEvent; -class GLC_Viewport; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Mover -/*! \brief GLC_Mover : Base class for all interactive manipulation */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Mover : public QObject -{ - Q_OBJECT - -public: - //! Default constructor - GLC_Mover(GLC_Viewport*, const QList&); - - //! Copy constructor - GLC_Mover(const GLC_Mover&); - - //! Destructor - virtual ~GLC_Mover(); - - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return a clone of the mover - virtual GLC_Mover* clone() const= 0; -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Initialized the mover - virtual void init(QMouseEvent * e)= 0; - - //! Move the camera - virtual bool move(QMouseEvent * e)= 0; - - //! Ends this mover - virtual void ends(){} - - //! Set the mover representation list - void setRepresentationsList(const QList&); - - //! Init representation - void initRepresentation(); - - //! Update representation - void updateRepresentation(); - - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Mover representations list display - void renderRepresentation(); - -//@} - -signals: - //! Signal sent if the view as been updated - void updated(); - -////////////////////////////////////////////////////////////////////// -// Private services Functions -////////////////////////////////////////////////////////////////////// -private: - //! Clear mover representation - void clearMoverRepresentation(); - -////////////////////////////////////////////////////////////////////// -// Private Members -////////////////////////////////////////////////////////////////////// -private: - //! The mover representations list - QList m_RepMoverList; - -////////////////////////////////////////////////////////////////////// -// Protected Members -////////////////////////////////////////////////////////////////////// -protected: - - //! The previous mover value - GLC_Vector3d m_PreviousVector; - - //! The Viewport - GLC_Viewport* m_pViewport; - - //! The mover info (passed to the rep) - GLC_RepMover::RepMoverInfo m_MoverInfo; -}; - -#endif /* GLC_MOVER_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_movercontroller.h b/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_movercontroller.h deleted file mode 100644 index 3d2088a6d..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_movercontroller.h +++ /dev/null @@ -1,151 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ - -//! \file glc_movercontroller.h Interface for the GLC_MoverController class. - -#ifndef GLC_MOVERCONTROLLER_H_ -#define GLC_MOVERCONTROLLER_H_ - -#include "glc_mover.h" -#include -#include -#include - -#include "../glc_config.h" - -class QGLWidget; -class QMouseEvent; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_MoverController -/*! \brief GLC_MoverController : Control activation of interactive manipulation mover */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_MoverController : public QObject -{ - Q_OBJECT -public: - //! The mover hash table - typedef QHash MoverHash; - - //! Standard mover Id - enum MoverType - { - Pan= 1, - Zoom= 2, - TrackBall= 3, - Target= 4, - TurnTable= 5, - Fly= 6 - }; - -public: - //! Default Constructor - GLC_MoverController(); - - //! Copy Constructor - GLC_MoverController(const GLC_MoverController&); - - //! Destructor - virtual ~GLC_MoverController(); - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Return true if there is an active mover - inline bool hasActiveMover() const - { return (m_ActiveMoverId != 0);} - - //! Return the active mover id - inline int activeMoverId() const - {return m_ActiveMoverId;} - - //! Return a handle on the current mover - inline GLC_Mover* activeMover() const - {return m_MoverHash.value(m_ActiveMoverId);} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Assign another mover controller - GLC_MoverController& operator = (const GLC_MoverController&); - - //! Add a mover to the controller - void addMover(GLC_Mover*, const int); - - //! Remove mover from the controller - void removeMover(const int); - - //! Set the specified mover as active - void setActiveMover(const int id, QMouseEvent * e); - - //! Set no mover as active - void setNoMover(); - - //! Move with the active mover - inline bool move(QMouseEvent * e) - { - Q_ASSERT(0 != m_ActiveMoverId); - return m_MoverHash.value(m_ActiveMoverId)->move(e); - } - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Mover representations list display - inline void drawActiveMoverRep() - { - if(0 != m_ActiveMoverId) - { - m_MoverHash.value(m_ActiveMoverId)->renderRepresentation(); - } - } - -//@} -signals: - //! Signal emitted if the view as to be repaint - void repaintNeeded(); - -////////////////////////////////////////////////////////////////////// -// Private Members -////////////////////////////////////////////////////////////////////// -private: - //! The active mover id - int m_ActiveMoverId; - - //! Hash table of mover - MoverHash m_MoverHash; -}; - -#endif /* GLC_MOVERCONTROLLER_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_panmover.h b/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_panmover.h deleted file mode 100644 index 4e709231d..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_panmover.h +++ /dev/null @@ -1,73 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ - -//! \file glc_panmover.h Interface for the GLC_PanMover class. - -#ifndef GLC_PANMOVER_H_ -#define GLC_PANMOVER_H_ - -#include "glc_mover.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_PanMover -/*! \brief GLC_PanMover : Panoramic interactive manipulation */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_PanMover : public GLC_Mover -{ -public: - //! Default constructor - GLC_PanMover(GLC_Viewport*, const QList& repsList= QList()); - - //! Copy constructor - GLC_PanMover(const GLC_PanMover&); - - //! Destructor - virtual ~GLC_PanMover(); - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return a clone of the mover - virtual GLC_Mover* clone() const; -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Initialized the mover - virtual void init(QMouseEvent * e); - - //! Move the camera - virtual bool move(QMouseEvent * e); -//@} - -}; - -#endif /* GLC_PANMOVER_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_repcrossmover.h b/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_repcrossmover.h deleted file mode 100644 index e1bd79d3f..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_repcrossmover.h +++ /dev/null @@ -1,68 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ - -#ifndef GLC_REPCROSSMOVER_H_ -#define GLC_REPCROSSMOVER_H_ - -#include "glc_repmover.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_RepCrossMover -/*! \brief GLC_RepCrossMover : Cross representation*/ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_RepCrossMover : public GLC_RepMover -{ -public: - //! Default constructor - GLC_RepCrossMover(GLC_Viewport*); - - //! Copy constructor - GLC_RepCrossMover(const GLC_RepCrossMover&); - - //! Destructor - virtual ~GLC_RepCrossMover(); - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// - //! Return a clone of the repmover - virtual GLC_RepMover* clone() const; -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Virtual interface for OpenGL Geometry set up. - virtual void glDraw(); - -//@} - -}; - -#endif /* GLC_REPCROSSMOVER_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_repflymover.h b/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_repflymover.h deleted file mode 100644 index 4f3081622..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_repflymover.h +++ /dev/null @@ -1,119 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_repflymover.h Interface for the GLC_RepFlyMover class. - -#ifndef GLC_REPFLYMOVER_H_ -#define GLC_REPFLYMOVER_H_ - -#include "glc_repmover.h" -#include "../geometry/glc_circle.h" -#include "../sceneGraph/glc_3dviewinstance.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_RepFlyMover -/*! \brief GLC_RepFlyMover : Fly representation*/ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_RepFlyMover : public GLC_RepMover -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - GLC_RepFlyMover(GLC_Viewport* pViewport); - - //! Copy constructor - GLC_RepFlyMover(const GLC_RepFlyMover& repFlyMover); - - //! Destructor - virtual ~GLC_RepFlyMover(); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// - //! Return a clone of the flymover - virtual GLC_RepMover* clone() const; - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// - //! Update the representation - virtual void update(); - - //! Set representation main color - virtual void setMainColor(const QColor& color); - - //! Set representation wire thickness - virtual void setThickness(double thickness); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Virtual interface for OpenGL Geometry set up. - virtual void glDraw(); - -//@} - - -///////////////////////////////////////////////////////////////////// -// Private services Functions -////////////////////////////////////////////////////////////////////// -private: - //! Create the plane representation - void createRepresentation(); - -////////////////////////////////////////////////////////////////////// -// Private Members -////////////////////////////////////////////////////////////////////// -private: - //! Center Circle radius - double m_Radius; - - //! Center Circle - GLC_3DViewInstance m_CenterCircle; - - //! Plane - GLC_3DViewInstance m_Plane; - - //! HUD - GLC_3DViewInstance m_Hud; - - //! HUD offset - GLC_Vector2d m_HudOffset; -}; - -#endif /* GLC_REPFLYMOVER_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_repmover.h b/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_repmover.h deleted file mode 100644 index 19b75dde6..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_repmover.h +++ /dev/null @@ -1,133 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ - -//! \file glc_repmover.h Interface for the GLC_RepMover class. - -#ifndef GLC_REPMOVER_H_ -#define GLC_REPMOVER_H_ - -#include -#include "../maths/glc_vector3d.h" -#include "../maths/glc_matrix4x4.h" -#include "../shading/glc_renderproperties.h" -#include "../glc_config.h" - -class GLC_Viewport; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_RepMover -/*! \brief GLC_RepMover : Base class for all interactive manipulation representation*/ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_RepMover -{ -public: - struct RepMoverInfo - { - QVector m_MatrixInfo; - QVector m_VectorInfo; - QVector m_DoubleInfo; - QVector m_IntInfo; - QVector m_StringInfo; - }; - -public: - //! Default constructor - GLC_RepMover(GLC_Viewport*); - - //! Copy constructor - GLC_RepMover(const GLC_RepMover&); - - //! Destructor - virtual ~GLC_RepMover(); - - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the main Color - inline QColor mainColor() - {return m_MainColor;} - - //! Return a clone of the repmover - virtual GLC_RepMover* clone() const= 0; -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// - //! Set representation main color - virtual void setMainColor(const QColor& color); - - //! Set representation wire thickness - virtual void setThickness(double thickness); - - //! Init the representation - virtual void init(){} - - //! Update the representation - virtual void update(){} - - //! Set the repMoverInfo of this rep - void setRepMoverInfo(RepMoverInfo* pRepMoverInfo); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Representation OpenGL Execution - void render(); - -protected: - //! Virtual interface for OpenGL Geometry set up. - virtual void glDraw()= 0; - -//@} - -////////////////////////////////////////////////////////////////////// -// Protected Members -////////////////////////////////////////////////////////////////////// -protected: - //! The viewport - GLC_Viewport* m_pViewport; - - //! The rep main color - QColor m_MainColor; - - //! The rep wire thickness - double m_Thickness; - - //! The rep rendering properties - GLC_RenderProperties m_RenderProperties; - - //! The repmover info of this rep - RepMoverInfo* m_pRepMoverInfo; -}; - -#endif /* GLC_REPMOVER_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_reptrackballmover.h b/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_reptrackballmover.h deleted file mode 100644 index 0ead9c00f..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_reptrackballmover.h +++ /dev/null @@ -1,115 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_reptrackballmover.h Interface for the GLC_RepTrackBallMover class. - -#ifndef GLC_REPTRACKBALLMOVER_H_ -#define GLC_REPTRACKBALLMOVER_H_ - -#include "glc_repmover.h" -#include "../geometry/glc_circle.h" -#include "../sceneGraph/glc_3dviewinstance.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_RepTrackBallMover -/*! \brief GLC_RepTrackBallMover : Track Ball representation*/ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_RepTrackBallMover : public GLC_RepMover -{ -public: - //! Default constructor - GLC_RepTrackBallMover(GLC_Viewport*); - - //! Copy constructor - GLC_RepTrackBallMover(const GLC_RepTrackBallMover&); - - // Destructor - virtual ~GLC_RepTrackBallMover(); - - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// - //! Return a clone of the repmover - virtual GLC_RepMover* clone() const; -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Set Arcs orientation and position in concordance with mouse position - virtual void init(); - - //! Set Arcs position in concordance with mouse position - virtual void update(); - - //! Set representation main color - virtual void setMainColor(const QColor& color); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Virtual interface for OpenGL Geometry set up. - virtual void glDraw(); - -//@} - -////////////////////////////////////////////////////////////////////// -// Private services Functions -////////////////////////////////////////////////////////////////////// -private: - //! Compute trackball radius - void computeRadius(); - -////////////////////////////////////////////////////////////////////// -// Private Members -////////////////////////////////////////////////////////////////////// -private: - //! trackball radius - double m_Radius; - //! Main Circle - GLC_Circle m_MainCircle; - //! Arc 1 showing orbit sphere orientation - GLC_3DViewInstance m_Arc1; - //! Arc 1 positionning Matrix - GLC_Matrix4x4 m_MatArc1; - //! Arc 2 showing orbit sphere orientation - GLC_3DViewInstance m_Arc2; - //! Arc 2 positionning Matrix - GLC_Matrix4x4 m_MatArc2; - //! The ratio of the trackball size - double m_Ratio; - -}; - -#endif /* GLC_REPTRACKBALLMOVER_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_settargetmover.h b/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_settargetmover.h deleted file mode 100644 index 2ee593919..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_settargetmover.h +++ /dev/null @@ -1,71 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ - -#ifndef GLC_SETTARGETMOVER_H_ -#define GLC_SETTARGETMOVER_H_ - -#include "glc_mover.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_SetTargetMover -/*! \brief GLC_SetTargetMover : Define the view target */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_SetTargetMover : public GLC_Mover -{ -public: - //! Default constructor - GLC_SetTargetMover(GLC_Viewport*, const QList& repsList= QList()); - - //! Copy constructor - GLC_SetTargetMover(const GLC_SetTargetMover&); - - //! Destructor - virtual ~GLC_SetTargetMover(); - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return a clone of the mover - virtual GLC_Mover* clone() const; -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Initialized the mover - virtual void init(QMouseEvent * e); - - //! Move the camera - virtual bool move(QMouseEvent *){return true;} -//@} - -}; - -#endif /* GLC_SETTARGETMOVER_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_trackballmover.h b/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_trackballmover.h deleted file mode 100644 index 46042385e..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_trackballmover.h +++ /dev/null @@ -1,93 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ -//! \file glc_trackballmover.h Interface for the GLC_TrackBallMover class. - -#ifndef GLC_TRACKBALLMOVER_H_ -#define GLC_TRACKBALLMOVER_H_ - -#include "glc_mover.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_TrackBallMover -/*! \brief GLC_TrackBallMover : Track ball interactive manipulation */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_TrackBallMover : public GLC_Mover -{ -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - GLC_TrackBallMover(GLC_Viewport*, const QList& repsList= QList()); - - //! Copy constructor - GLC_TrackBallMover(const GLC_TrackBallMover&); - - //! Destructor - virtual ~GLC_TrackBallMover(); -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return a clone of the mover - virtual GLC_Mover* clone() const; -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Initialized the mover - virtual void init(QMouseEvent * e); - - //! Move the camera - virtual bool move(QMouseEvent * e); - -//@} - -///////////////////////////////////////////////////////////////////// -// Private services Functions -////////////////////////////////////////////////////////////////////// -private: - //! Convert mouse View coordinate to tracking coordinate (Centred and betwen (-1,-1) and (1,1)) - GLC_Vector3d mapForTracking( double , double) const; - -////////////////////////////////////////////////////////////////////// -// Private Members -////////////////////////////////////////////////////////////////////// -private: - //! The ratio of the trackball size - double m_Ratio; - - -}; - -#endif /* GLC_TRACKBALLMOVER_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_turntablemover.h b/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_turntablemover.h deleted file mode 100644 index 7dda81bc7..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_turntablemover.h +++ /dev/null @@ -1,83 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Copyright (C) 2009 Laurent Bauer - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ - -#ifndef GLC_TURNTABLEMOVER_H_ -#define GLC_TURNTABLEMOVER_H_ - -#include "glc_mover.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_TurnTableMover -/*! \brief GLC_TurnTableMover : Turn table interactive manipulation */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_TurnTableMover : public GLC_Mover -{ -public: - //! Default constructor - GLC_TurnTableMover(GLC_Viewport*, const QList& repsList= QList()); - - //! Copy constructor - GLC_TurnTableMover(const GLC_TurnTableMover&); - - //! Destructor - virtual ~GLC_TurnTableMover(); - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return a clone of the mover - virtual GLC_Mover* clone() const; -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Initialized the mover - virtual void init(QMouseEvent * e); - - //! Move the camera - virtual bool move(QMouseEvent * e); - -//@} - -///////////////////////////////////////////////////////////////////// -// Private services Functions -////////////////////////////////////////////////////////////////////// -private: - -////////////////////////////////////////////////////////////////////// -// Private Members -////////////////////////////////////////////////////////////////////// - //! The rotation sign - double m_Sign; -}; - -#endif /* GLC_TURNTABLEMOVER_H_ */ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_viewport.h b/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_viewport.h deleted file mode 100644 index ececa72b0..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_viewport.h +++ /dev/null @@ -1,418 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*****************************************************************************/ - -//! \file glc_viewport.h interface for the GLC_Viewport class. - -#ifndef GLC_VIEWPORT_H_ -#define GLC_VIEWPORT_H_ -#include -#include -#include -#include "glc_camera.h" -#include "glc_imageplane.h" -#include "../glc_boundingbox.h" -#include "glc_frustum.h" -#include "../maths/glc_plane.h" -#include "../sceneGraph/glc_3dviewcollection.h" - -#include "../glc_config.h" - -class GLC_3DViewInstance; - -////////////////////////////////////////////////////////////////////// -//! \class GLC_Viewport -/*! \brief GLC_Viewport : OpenGL Viewport */ - -/*! An GLC_Viewport define Viewport with these specification - * - Default GLC_Camera - * - Max distance of view - * - Min distance of view - * - Angle of view - * - Maximum zoom factor - */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_Viewport -{ - -////////////////////////////////////////////////////////////////////// -/*! @name Constructor / Destructor */ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Default constructor - /*! Construct Viewport with these specifications : - * - Default GLC_Camera - * - Max distance of view : 500 - * - Min distance of view : 0.01 - * - Angle of view : 35 - * - Maximum zoom factor : 3.0 - * */ - GLC_Viewport(QGLWidget *GLWidget); - - //! Delete Camera, Image Plane and orbit circle - virtual ~GLC_Viewport(); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the camera associate to this viewport - inline GLC_Camera* cameraHandle() const - {return m_pViewCam;} - - //! Get this viewport Horizontal size - inline int viewHSize() const - { return m_WindowHSize;} - - //! Get this viewport Vertical size - inline int viewVSize() const - { return m_WindowVSize;} - - //! Get this viewport ratio - inline double aspectRatio() const - { return static_cast(m_WindowHSize) / static_cast(m_WindowVSize);} - - //! Map Screen position to OpenGL position (On image Plane) according to this viewport - GLC_Vector3d mapPosMouse( GLdouble Posx, GLdouble Posy) const; - - //! Get this viewport's camera's angle of view - inline double viewAngle() const - { return m_ViewAngle;} - - //! Get this viewport's camera's tangent value of view - inline double viewTangent() const - { return m_ViewTangent;} - - - //! Get this viewport near clipping plane distance - inline double nearClippingPlaneDist(void) const - { return m_dDistanceMini;} - - //! Get this viewport far clipping plane distance - inline double farClippingPlaneDist(void) const - { return m_DistanceMax;} - - //! Get this viewportbackground Color - inline QColor backgroundColor(void) const - { return m_BackgroundColor;} - - //! Return the selection square size of this viewport - inline GLsizei selectionSquareSize() const - {return m_SelectionSquareSize;} - - //! Return this viewport's the projection matrix - inline GLC_Matrix4x4 projectionMatrix() const - {return m_ProjectionMatrix;} - - //! Return the composition matrix between projection matrix and view matrix - inline GLC_Matrix4x4 compositionMatrix() const; - - //! Return an handle to the widget 3D collection - inline GLC_3DViewCollection* widget3dCollectionHandle() - {return &m_3DWidgetCollection;} - - //! Return true if this viewport use orthographic projection - inline bool useOrtho()const - {return m_UseParallelProjection;} - - //! Return the minimum pixel culling size - inline int minimumPixelCullingSize() const - {return m_MinimumStaticPixelSize;} - - //! Return the minimum pixel culling ratio - inline double minimumStaticPixelCullingRatio() const - {return m_MinimumStaticRatioSize;} - - //! Return the minimum dynamic pixel culling ratio - inline double minimumDynamicPixelCullingRatio() const - {return m_MinimumDynamicRatioSize;} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Initialize OpenGL with default values - /*! Glew initialisation is made here */ - void initGl(); - - //! Load camera's transformation Matrix and display image if necessary - void glExecuteCam(void); - - //! Update this viewport OpenGL projection matrix - void updateProjectionMat(void); - - //! Force the aspect ratio of this viewport - void forceAspectRatio(double); - - //! Update the aspect ratio of this viewport - void updateAspectRatio(); - - //! Return the frustum associated to this viewport - const GLC_Frustum& frustum() const - {return m_Frustum;} - - //! Return the frustum associated to a selection coordinate - GLC_Frustum selectionFrustum(int, int) const; - - //! Return the world 3d point from the given screen coordinate - GLC_Point3d unProject(int, int) const; - - //! Return the list af world 3d point form the givne list af screen coordinates - /*! The size of the given list must be a multiple of 2*/ - QList unproject(const QList&)const; - - //! Return an handle of the QGLWidget of this viewport - inline QGLWidget* qGLWidgetHandle() - {return m_pQGLWidget;} - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name OpenGL Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -private: - - //! Render this viewport's image plane - void renderImagePlane(); - -public: - - //! Render viewport 3D widget - void render3DWidget(); - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - - //! Inform the viewport that the OpenGL window size has been modified - void setWinGLSize(int HSize, int VSize); - - //! Call the attached QGLWidgetSelect updateGL function and return the picking id - /*! Return UID of the nearest picked object */ - GLC_uint renderAndSelect(int x, int y); - - //! Return the picking id from the already render window - GLC_uint selectOnPreviousRender(int x, int y); - - //! Select a body inside a 3DViewInstance and return its UID - /*! Return UID of the nearest picked body */ - GLC_uint selectBody(GLC_3DViewInstance*, int x, int y); - - //! Select a primitive inside a 3DViewInstance and return its UID and its body index - /*! Return UID of the nearest picked primitive */ - QPair selectPrimitive(GLC_3DViewInstance*, int x, int y); - - //! Select objects inside specified square and return its UID in a set - QSet selectInsideSquare(int x1, int y1, int x2, int y2); - - //! load background image from file in this viewport - void loadBackGroundImage(const QString& imageFile); - - //! load background image in this viewport - void loadBackGroundImage(const QImage& image); - - //! delete background image of this viewport - void deleteBackGroundImage(); - - //! Set Camera's angle of view of this viewport - inline void setViewAngle(double TargetFov) - { - m_ViewAngle= TargetFov; - m_ViewTangent= tan(glc::toRadian(m_ViewAngle)); - updateProjectionMat(); - } - - //! Set near clipping distance of this viewport - bool setDistMin(double DistMin); - - //! Set far clipping distance of this viewport - bool setDistMax(double DistMax); - - //! Set Near and Far clipping distance of this viewport - /*! box shouldn't be empty*/ - void setDistMinAndMax(const GLC_BoundingBox& bBox); - - //! Set the Background color of this viewport - void setBackgroundColor(QColor setColor); - - //! Set the selection square size of this viewport - inline void setSelectionSquareSize(GLsizei size) - {m_SelectionSquareSize= size;} - - //! Update this viewport frustum (frustum cullin purpose) - /*! Return true if the frustum has changed*/ - inline bool updateFrustum(GLC_Matrix4x4* pMat= NULL); - - //! Add a clipping plane to this viewport - void addClipPlane(GLenum planeGlEnum, GLC_Plane* pPlane); - - //! Remove the clip plane coresponding to the given id - void removeClipPlane(GLenum planeGlEnum); - - //! Remove all clip plane - void removeAllClipPlane(); - - //! Set the clipping plane usage - void useClipPlane(bool flag); - - //! Add 3DWidget to this viewport - inline void add3DWidget(GLC_3DViewInstance& widget) - {m_3DWidgetCollection.add(widget);} - - //! Clear the background color with the specified color - inline void clearBackground(const QColor& c) const - {m_pQGLWidget->qglClearColor(c);} - - //! Set othographic usage to the given flag - void setToOrtho(bool useOrtho); - - //! Set minimum pixel culling size - inline void setMinimumPixelCullingSize(int size) - { - m_MinimumStaticPixelSize= size; - updateMinimumRatioSize(); - } -//@} - - -///////////////////////////////////////////////////////////////////// -//! @name zoom Functions -//{@ - //! Set the viewport's camera in order to reframe on the current scene - /*! box shouldn't be empty*/ - void reframe(const GLC_BoundingBox& box); - -//@} End Zooming functions -///////////////////////////////////////////////////////////////////// - -////////////////////////////////////////////////////////////////////// -// private services functions -////////////////////////////////////////////////////////////////////// -private: - //! Return the meaningful color ID inside a square in screen coordinates - GLC_uint meaningfulIdInsideSquare(GLint x, GLint y, GLsizei width, GLsizei height); - - //! Return the Set of ID inside a square in screen coordinate - QSet listOfIdInsideSquare(GLint x, GLint y, GLsizei width, GLsizei height); - - //! Update minimum ratio size for pixel culling - void updateMinimumRatioSize(); - - -////////////////////////////////////////////////////////////////////// -// Private Members -////////////////////////////////////////////////////////////////////// -private: - - //! Viewport's camera - GLC_Camera *m_pViewCam; - - double m_DistanceMax; //!< Camera Maximum distance (far clipping plane) - double m_dDistanceMini; //!< Camera Minimum distance (near clipping plane) - double m_ViewAngle; //!< Camera angle of view - double m_ViewTangent; //!< Camera angle tangent - - - //! Image plane (Background image) - GLC_ImagePlane* m_pImagePlane; - - // OpenGL View Definition - int m_WindowHSize; //!< Horizontal OpenGL viewport size - int m_WindowVSize; //!< Vertical OpenGL viewport size - - //! View AspectRatio - double m_AspectRatio; - - //! The QGLWidget attached to the viewport (rendering context) - QGLWidget* m_pQGLWidget; - - //! Viewport Background color - QColor m_BackgroundColor; - - //! The selection square size - GLsizei m_SelectionSquareSize; - - //! The projection matrix - GLC_Matrix4x4 m_ProjectionMatrix; - - //! The frustum associated to the viewport - GLC_Frustum m_Frustum; - - //! The list of additionnal clipping plane - QHash m_ClipPlanesHash; - - //! Flag to know if clipping plane must be used - bool m_UseClipPlane; - - //! The collection wich contains 3D widget - GLC_3DViewCollection m_3DWidgetCollection; - - //! Flag to know if the viewport use orthographic projection - bool m_UseParallelProjection; - - //! The minimum static pixel culling size - int m_MinimumStaticPixelSize; - - //! The minimum static size ratio - double m_MinimumStaticRatioSize; - - //! The minimum dynamic size ratio - double m_MinimumDynamicRatioSize; -}; - -GLC_Matrix4x4 GLC_Viewport::compositionMatrix() const -{ - // Get the viewport projection matrix - GLC_Matrix4x4 projectionMatrix= m_ProjectionMatrix; - // Get the camera modelView matrix - GLC_Matrix4x4 modelViewMatrix= m_pViewCam->modelViewMatrix(); - // Composition matrix - GLC_Matrix4x4 compMatrix= projectionMatrix * modelViewMatrix; - - return compMatrix; -} - -bool GLC_Viewport::updateFrustum(GLC_Matrix4x4* pMat) -{ - if (NULL == pMat) - { - return m_Frustum.update(compositionMatrix()); - } - else - { - return m_Frustum.update(*pMat); - } -} -#endif //GLC_VIEWPORT_H_ diff --git a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_zoommover.h b/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_zoommover.h deleted file mode 100644 index cafec211d..000000000 --- a/ground/src/libs/glc_lib/install/include/GLC_lib/viewport/glc_zoommover.h +++ /dev/null @@ -1,88 +0,0 @@ -/**************************************************************************** - - This file is part of the GLC-lib library. - Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net) - Version 2.0.0, packaged on July 2010. - - http://glc-lib.sourceforge.net - - GLC-lib is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - GLC-lib is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with GLC-lib; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - *****************************************************************************/ - -#ifndef GLC_ZOOMMOVER_H_ -#define GLC_ZOOMMOVER_H_ - -#include "glc_mover.h" - -#include "../glc_config.h" - -////////////////////////////////////////////////////////////////////// -//! \class GLC_ZoomMover -/*! \brief GLC_ZoomMover : Zoom interactive manipulation */ -////////////////////////////////////////////////////////////////////// -class GLC_LIB_EXPORT GLC_ZoomMover : public GLC_Mover -{ -public: - //! Default constructor - GLC_ZoomMover(GLC_Viewport*, const QList& repsList= QList()); - - //! Copy constructor - GLC_ZoomMover(const GLC_ZoomMover&); - - //! Destructor - virtual ~GLC_ZoomMover(); - - -////////////////////////////////////////////////////////////////////// -/*! \name Get Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Return the maximum zoom factor - inline double maxZoomFactor() const - {return m_MaxZoomFactor;} - - //! Return a clone of the mover - virtual GLC_Mover* clone() const; - -//@} - -////////////////////////////////////////////////////////////////////// -/*! \name Set Functions*/ -//@{ -////////////////////////////////////////////////////////////////////// -public: - //! Initialized the mover - virtual void init(QMouseEvent * e); - - //! Move the camera - virtual bool move(QMouseEvent * e); - - //! Set the maximum zoom factor - inline void setMaxZoomFactor(const double factor) - {m_MaxZoomFactor= factor;} - -//@} -////////////////////////////////////////////////////////////////////// -// private Members -////////////////////////////////////////////////////////////////////// -private: - //! The maximum zoom factor - double m_MaxZoomFactor; - -}; - -#endif /* GLC_ZOOMMOVER_H_ */ diff --git a/ground/src/libs/glc_lib/install/lib/libGLC_lib.so b/ground/src/libs/glc_lib/install/lib/libGLC_lib.so deleted file mode 120000 index 53079bb43..000000000 --- a/ground/src/libs/glc_lib/install/lib/libGLC_lib.so +++ /dev/null @@ -1 +0,0 @@ -libGLC_lib.so.1.0.0 \ No newline at end of file diff --git a/ground/src/libs/glc_lib/install/lib/libGLC_lib.so.1 b/ground/src/libs/glc_lib/install/lib/libGLC_lib.so.1 deleted file mode 120000 index 53079bb43..000000000 --- a/ground/src/libs/glc_lib/install/lib/libGLC_lib.so.1 +++ /dev/null @@ -1 +0,0 @@ -libGLC_lib.so.1.0.0 \ No newline at end of file diff --git a/ground/src/libs/glc_lib/install/lib/libGLC_lib.so.1.0 b/ground/src/libs/glc_lib/install/lib/libGLC_lib.so.1.0 deleted file mode 120000 index 53079bb43..000000000 --- a/ground/src/libs/glc_lib/install/lib/libGLC_lib.so.1.0 +++ /dev/null @@ -1 +0,0 @@ -libGLC_lib.so.1.0.0 \ No newline at end of file diff --git a/ground/src/libs/glc_lib/install/lib/libGLC_lib.so.1.0.0 b/ground/src/libs/glc_lib/install/lib/libGLC_lib.so.1.0.0 deleted file mode 100755 index b73435c2b..000000000 Binary files a/ground/src/libs/glc_lib/install/lib/libGLC_lib.so.1.0.0 and /dev/null differ