Browse Source

Upgrade v.2.5

glscene 1 year ago
parent
commit
71e9a74ef5
100 changed files with 1093 additions and 1125 deletions
  1. 1 1
      Examples/AdvDemos/ActorMS3D/fActorms3dD.pas
  2. 1 1
      Examples/AdvDemos/Forest/fForestD.pas
  3. 1 1
      Examples/Demos/computing/VertexGeneration/fVertexGenD.pas
  4. 1 1
      Examples/Demos/glslshaders/ProjectedTexture/fProjectTextureD.pas
  5. 1 1
      Examples/Demos/interface/camera/fCameraD.pas
  6. 1 1
      Examples/Demos/specialsFX/ShadowFBO/fShadowFBOD.pas
  7. 1 1
      Packages/GLScene_RT.dpk
  8. 1 1
      Packages/GLScene_RT.dproj
  9. 3 3
      Packages/GXScene_RT.dpk
  10. 2 2
      Packages/GXScene_RT.dproj
  11. 3 3
      Source/Formats.VRML.pas
  12. 11 11
      Source/Formats.X.pas
  13. 1 1
      Source/GLS.ArchiveManager.pas
  14. 10 10
      Source/GLS.Behaviours.pas
  15. 2 2
      Source/GLS.CUDA.APIComps.pas
  16. 3 3
      Source/GLS.Cadencer.pas
  17. 4 4
      Source/GLS.Context.pas
  18. 17 17
      Source/GLS.DCE.pas
  19. 6 6
      Source/GLS.EParticleMasksManager.pas
  20. 5 5
      Source/GLS.ExplosionFx.pas
  21. 1 1
      Source/GLS.FBORenderer.pas
  22. 5 5
      Source/GLS.Feedback.pas
  23. 1 1
      Source/GLS.File3DPDF.pas
  24. 21 21
      Source/GLS.File3DSSceneObjects.pas
  25. 2 2
      Source/GLS.FileASE.pas
  26. 2 2
      Source/GLS.FileGL2.pas
  27. 2 2
      Source/GLS.FileLMTS.pas
  28. 6 6
      Source/GLS.FileMD5.pas
  29. 5 5
      Source/GLS.FileOBJ.pas
  30. 11 11
      Source/GLS.FileVRML.pas
  31. 10 10
      Source/GLS.FireFX.pas
  32. 1 1
      Source/GLS.GeomObjects.pas
  33. 5 5
      Source/GLS.Gizmo.pas
  34. 1 1
      Source/GLS.GizmoEx.pas
  35. 1 1
      Source/GLS.Graphics.pas
  36. 9 9
      Source/GLS.Gui.pas
  37. 9 9
      Source/GLS.Imposter.pas
  38. 11 10
      Source/GLS.Joystick.pas
  39. 5 2
      Source/GLS.LensFlare.pas
  40. 9 9
      Source/GLS.Material.pas
  41. 53 53
      Source/GLS.MaterialEx.pas
  42. 1 1
      Source/GLS.MaterialMultiProxy.pas
  43. 2 2
      Source/GLS.MaterialScript.pas
  44. 10 10
      Source/GLS.MeshBSP.pas
  45. 10 10
      Source/GLS.MeshBuilder.pas
  46. 5 5
      Source/GLS.MeshLines.pas
  47. 76 76
      Source/GLS.MeshUtils.pas
  48. 1 1
      Source/GLS.Mirror.pas
  49. 3 3
      Source/GLS.MultiPolygon.pas
  50. 55 55
      Source/GLS.NGDManager.pas
  51. 5 5
      Source/GLS.Navigator.pas
  52. 3 3
      Source/GLS.Nodes.pas
  53. 71 71
      Source/GLS.ODEManager.pas
  54. 2 2
      Source/GLS.ODEUtils.pas
  55. 10 10
      Source/GLS.Objects.pas
  56. 4 4
      Source/GLS.Octree.pas
  57. 9 9
      Source/GLS.ParametricSurfaces.pas
  58. 24 24
      Source/GLS.ParticleFX.pas
  59. 5 5
      Source/GLS.PhysFields.pas
  60. 10 10
      Source/GLS.PhysForces.pas
  61. 10 10
      Source/GLS.PhysInertias.pas
  62. 5 5
      Source/GLS.ProxyObjects.pas
  63. 12 12
      Source/GLS.ROAMPatch.pas
  64. 1 1
      Source/GLS.Ragdoll.pas
  65. 2 2
      Source/GLS.RandomHDS.pas
  66. 4 4
      Source/GLS.RenderContextInfo.pas
  67. 51 52
      Source/GLS.Scene.pas
  68. 40 42
      Source/GLS.SceneRegister.pas
  69. 1 1
      Source/GLS.Selection.pas
  70. 10 10
      Source/GLS.ShadowHDS.pas
  71. 1 1
      Source/GLS.ShadowPlane.pas
  72. 3 3
      Source/GLS.ShadowVolume.pas
  73. 18 18
      Source/GLS.Silhouette.pas
  74. 2 2
      Source/GLS.SmartObjects.pas
  75. 10 10
      Source/GLS.SmoothNavigator.pas
  76. 1 1
      Source/GLS.SpacePartition.pas
  77. 2 2
      Source/GLS.TerrainRenderer.pas
  78. 38 38
      Source/GLS.Texture.pas
  79. 10 10
      Source/GLS.ThorFX.pas
  80. 12 12
      Source/GLS.TilePlane.pas
  81. 10 10
      Source/GLS.Tree.pas
  82. 39 39
      Source/GLS.VectorFileObjects.pas
  83. 2 2
      Source/GLS.VerletClothify.pas
  84. 7 7
      Source/GLS.WaterPlane.pas
  85. 1 1
      Source/GLS.WindowsContext.pas
  86. 6 6
      Source/GLS.WindowsFont.pas
  87. 2 2
      Source/GLSL.BumpShaders.pas
  88. 2 2
      Source/GLSL.CustomShader.pas
  89. 2 2
      Source/GLSL.PhongShader.pas
  90. 1 1
      Source/GLSL.ProjectedTextures.pas
  91. 15 15
      Source/GLSL.ShapeShaders.pas
  92. 10 10
      Source/GLSL.TextureShaders.pas
  93. 1 1
      Source/GLScene.BaseClasses.pas
  94. 75 75
      Source/GLScene.Coordinates.pas
  95. 4 37
      Source/GLScene.OpenGL4.pas
  96. 48 48
      Source/GLScene.PersistentClasses.pas
  97. 35 35
      Source/GLScene.PipelineTransform.pas
  98. 37 37
      Source/GLScene.VectorLists.pas
  99. 2 2
      Sourcex/FMxInfo.pas
  100. 10 10
      Sourcex/Formatx.Q3MD3.pas

+ 1 - 1
Examples/AdvDemos/ActorMS3D/fActorms3dD.pas

@@ -19,7 +19,7 @@ uses
   GLScene.VectorTypes,
   GLScene.VectorTypes,
   GLScene.Utils,
   GLScene.Utils,
 
 
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLScene.VectorLists,
   GLScene.VectorLists,
   GLS.Cadencer,
   GLS.Cadencer,
   GLS.SceneViewer,
   GLS.SceneViewer,

+ 1 - 1
Examples/AdvDemos/Forest/fForestD.pas

@@ -41,7 +41,7 @@ uses
   GLS.ParticleFX,
   GLS.ParticleFX,
   GLS.Graphics,
   GLS.Graphics,
   GLS.XOpenGL,
   GLS.XOpenGL,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLS.TextureCombiners,
   GLS.TextureCombiners,
   GLS.Material,
   GLS.Material,
   GLScene.Coordinates,
   GLScene.Coordinates,

+ 1 - 1
Examples/Demos/computing/VertexGeneration/fVertexGenD.pas

@@ -14,7 +14,7 @@ uses
   GLS.Scene,
   GLS.Scene,
   GLScene.VectorTypes,
   GLScene.VectorTypes,
   GLScene.VectorGeometry,
   GLScene.VectorGeometry,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLS.Cadencer,
   GLS.Cadencer,
   GLS.SceneViewer,
   GLS.SceneViewer,
  
  

+ 1 - 1
Examples/Demos/glslshaders/ProjectedTexture/fProjectTextureD.pas

@@ -26,7 +26,7 @@ uses
   GLS.FileLMTS,
   GLS.FileLMTS,
   GLS.Context,
   GLS.Context,
   GLScene.VectorGeometry,
   GLScene.VectorGeometry,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLSL.ProjectedTextures,
   GLSL.ProjectedTextures,
 
 
   GLS.Graphics,
   GLS.Graphics,

+ 1 - 1
Examples/Demos/interface/camera/fCameraD.pas

@@ -15,7 +15,7 @@ uses
   GLScene.VectorTypes,
   GLScene.VectorTypes,
   GLS.Objects,
   GLS.Objects,
   GLScene.PersistentClasses,
   GLScene.PersistentClasses,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLS.GeomObjects,
   GLS.GeomObjects,
   GLScene.Coordinates,
   GLScene.Coordinates,
   GLScene.BaseClasses,
   GLScene.BaseClasses,

+ 1 - 1
Examples/Demos/specialsFX/ShadowFBO/fShadowFBOD.pas

@@ -37,7 +37,7 @@ uses
   GLS.RenderContextInfo,
   GLS.RenderContextInfo,
   GLS.SimpleNavigation,
   GLS.SimpleNavigation,
   GLS.VectorFileObjects,
   GLS.VectorFileObjects,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLS.FileMD2,
   GLS.FileMD2,
   Formats.DDSImage,
   Formats.DDSImage,
   GLS.FileOBJ,
   GLS.FileOBJ,

+ 1 - 1
Packages/GLScene_RT.dpk

@@ -249,7 +249,7 @@ contains
   GLS.XOpenGL in '..\Source\GLS.XOpenGL.pas',
   GLS.XOpenGL in '..\Source\GLS.XOpenGL.pas',
   GLS.InitOpenGL in '..\Source\GLS.InitOpenGL.pas',
   GLS.InitOpenGL in '..\Source\GLS.InitOpenGL.pas',
   GLScene.OpenGLTokens in '..\Source\GLScene.OpenGLTokens.pas',
   GLScene.OpenGLTokens in '..\Source\GLScene.OpenGLTokens.pas',
-  GLS.PipelineTransformation in '..\Source\GLS.PipelineTransformation.pas',
+  GLScene.PipelineTransform in '..\Source\GLScene.PipelineTransform.pas',
   GLScene.Polynomials in '..\Source\GLScene.Polynomials.pas',
   GLScene.Polynomials in '..\Source\GLScene.Polynomials.pas',
   GLScene.Spline in '..\Source\GLScene.Spline.pas',
   GLScene.Spline in '..\Source\GLScene.Spline.pas',
   GLScene.Strings in '..\Source\GLScene.Strings.pas',
   GLScene.Strings in '..\Source\GLScene.Strings.pas',

+ 1 - 1
Packages/GLScene_RT.dproj

@@ -374,7 +374,7 @@
         <DCCReference Include="..\Source\GLS.XOpenGL.pas"/>
         <DCCReference Include="..\Source\GLS.XOpenGL.pas"/>
         <DCCReference Include="..\Source\GLS.InitOpenGL.pas"/>
         <DCCReference Include="..\Source\GLS.InitOpenGL.pas"/>
         <DCCReference Include="..\Source\GLScene.OpenGLTokens.pas"/>
         <DCCReference Include="..\Source\GLScene.OpenGLTokens.pas"/>
-        <DCCReference Include="..\Source\GLS.PipelineTransformation.pas"/>
+        <DCCReference Include="..\Source\GLScene.PipelineTransform.pas"/>
         <DCCReference Include="..\Source\GLScene.Polynomials.pas"/>
         <DCCReference Include="..\Source\GLScene.Polynomials.pas"/>
         <DCCReference Include="..\Source\GLScene.Spline.pas"/>
         <DCCReference Include="..\Source\GLScene.Spline.pas"/>
         <DCCReference Include="..\Source\GLScene.Strings.pas"/>
         <DCCReference Include="..\Source\GLScene.Strings.pas"/>

+ 3 - 3
Packages/GXScene_RT.dpk

@@ -206,8 +206,7 @@ contains
   GXS.PAKArchive in '..\SourceX\GXS.PAKArchive.pas',
   GXS.PAKArchive in '..\SourceX\GXS.PAKArchive.pas',
   GXS.SpacePartition in '..\SourceX\GXS.SpacePartition.pas',
   GXS.SpacePartition in '..\SourceX\GXS.SpacePartition.pas',
   GXS.XOpenGL in '..\SourceX\GXS.XOpenGL.pas',
   GXS.XOpenGL in '..\SourceX\GXS.XOpenGL.pas',
-  GXS.PipelineTransformation in '..\SourceX\GXS.PipelineTransformation.pas',
-  GXS.OpenGL in '..\SourceX\GXS.OpenGL.pas',
+  GLScene.OpenGL4 in '..\Source\GLScene.OpenGL4.pas',
   GXS.ViewerOpenGL in '..\SourceX\GXS.ViewerOpenGL.pas',
   GXS.ViewerOpenGL in '..\SourceX\GXS.ViewerOpenGL.pas',
   GXSL.AsmShader in '..\SourceX\GXSL.AsmShader.pas',
   GXSL.AsmShader in '..\SourceX\GXSL.AsmShader.pas',
   GXSL.BumpShaders in '..\SourceX\GXSL.BumpShaders.pas',
   GXSL.BumpShaders in '..\SourceX\GXSL.BumpShaders.pas',
@@ -270,6 +269,7 @@ contains
   GLScene.XCollection in '..\Source\GLScene.XCollection.pas',
   GLScene.XCollection in '..\Source\GLScene.XCollection.pas',
   GLScene.Keyboard in '..\Source\GLScene.Keyboard.pas',
   GLScene.Keyboard in '..\Source\GLScene.Keyboard.pas',
   GLScene.Polynomials in '..\Source\GLScene.Polynomials.pas',
   GLScene.Polynomials in '..\Source\GLScene.Polynomials.pas',
-  GLScene.Color in '..\Source\GLScene.Color.pas';
+  GLScene.Color in '..\Source\GLScene.Color.pas',
+  GLScene.PipelineTransform in '..\Source\GLScene.PipelineTransform.pas';
 
 
 end.
 end.

+ 2 - 2
Packages/GXScene_RT.dproj

@@ -355,8 +355,7 @@
         <DCCReference Include="..\SourceX\GXS.PAKArchive.pas"/>
         <DCCReference Include="..\SourceX\GXS.PAKArchive.pas"/>
         <DCCReference Include="..\SourceX\GXS.SpacePartition.pas"/>
         <DCCReference Include="..\SourceX\GXS.SpacePartition.pas"/>
         <DCCReference Include="..\SourceX\GXS.XOpenGL.pas"/>
         <DCCReference Include="..\SourceX\GXS.XOpenGL.pas"/>
-        <DCCReference Include="..\SourceX\GXS.PipelineTransformation.pas"/>
-        <DCCReference Include="..\SourceX\GXS.OpenGL.pas"/>
+        <DCCReference Include="..\Source\GLScene.OpenGL4.pas"/>
         <DCCReference Include="..\SourceX\GXS.ViewerOpenGL.pas"/>
         <DCCReference Include="..\SourceX\GXS.ViewerOpenGL.pas"/>
         <DCCReference Include="..\SourceX\GXSL.AsmShader.pas"/>
         <DCCReference Include="..\SourceX\GXSL.AsmShader.pas"/>
         <DCCReference Include="..\SourceX\GXSL.BumpShaders.pas"/>
         <DCCReference Include="..\SourceX\GXSL.BumpShaders.pas"/>
@@ -420,6 +419,7 @@
         <DCCReference Include="..\Source\GLScene.Keyboard.pas"/>
         <DCCReference Include="..\Source\GLScene.Keyboard.pas"/>
         <DCCReference Include="..\Source\GLScene.Polynomials.pas"/>
         <DCCReference Include="..\Source\GLScene.Polynomials.pas"/>
         <DCCReference Include="..\Source\GLScene.Color.pas"/>
         <DCCReference Include="..\Source\GLScene.Color.pas"/>
+        <DCCReference Include="..\Source\GLScene.PipelineTransform.pas"/>
         <None Include="..\Sourcex\GXS.Scene.inc"/>
         <None Include="..\Sourcex\GXS.Scene.inc"/>
         <None Include="..\Source\GLScene.Defines.inc"/>
         <None Include="..\Source\GLScene.Defines.inc"/>
         <BuildConfiguration Include="Base">
         <BuildConfiguration Include="Base">

+ 3 - 3
Source/Formats.VRML.pas

@@ -52,11 +52,11 @@ type
 
 
   TVRMLIntegerArray = class(TVRMLNode)
   TVRMLIntegerArray = class(TVRMLNode)
   private
   private
-    FValues: TGIntegerList;
+    FValues: TgIntegerList;
   public
   public
     constructor Create; override;
     constructor Create; override;
     destructor Destroy; override;
     destructor Destroy; override;
-    property Values: TGIntegerList read FValues;
+    property Values: TgIntegerList read FValues;
   end;
   end;
 
 
   TVRMLMaterial = class(TVRMLNode)
   TVRMLMaterial = class(TVRMLNode)
@@ -288,7 +288,7 @@ end;
 constructor TVRMLIntegerArray.Create;
 constructor TVRMLIntegerArray.Create;
 begin
 begin
   inherited;
   inherited;
-  FValues := TGIntegerList.Create;
+  FValues := TgIntegerList.Create;
 end;
 end;
 
 
 destructor TVRMLIntegerArray.Destroy;
 destructor TVRMLIntegerArray.Destroy;

+ 11 - 11
Source/Formats.X.pas

@@ -84,7 +84,7 @@ type
   private
   private
     FVertices, FNormals, FTexCoords: TGAffineVectorList;
     FVertices, FNormals, FTexCoords: TGAffineVectorList;
     FVertexIndices, FNormalIndices, FMaterialIndices, FVertCountIndices
     FVertexIndices, FNormalIndices, FMaterialIndices, FVertCountIndices
-      : TGIntegerList;
+      : TgIntegerList;
     FMaterialList: TDXMaterialList;
     FMaterialList: TDXMaterialList;
   public
   public
     constructor Create; override;
     constructor Create; override;
@@ -92,10 +92,10 @@ type
     property Vertices: TGAffineVectorList read FVertices;
     property Vertices: TGAffineVectorList read FVertices;
     property Normals: TGAffineVectorList read FNormals;
     property Normals: TGAffineVectorList read FNormals;
     property TexCoords: TGAffineVectorList read FTexCoords;
     property TexCoords: TGAffineVectorList read FTexCoords;
-    property VertexIndices: TGIntegerList read FVertexIndices;
-    property NormalIndices: TGIntegerList read FNormalIndices;
-    property MaterialIndices: TGIntegerList read FMaterialIndices;
-    property VertCountIndices: TGIntegerList read FVertCountIndices;
+    property VertexIndices: TgIntegerList read FVertexIndices;
+    property NormalIndices: TgIntegerList read FNormalIndices;
+    property MaterialIndices: TgIntegerList read FMaterialIndices;
+    property VertCountIndices: TgIntegerList read FVertCountIndices;
     property MaterialList: TDXMaterialList read FMaterialList;
     property MaterialList: TDXMaterialList read FMaterialList;
   end;
   end;
 
 
@@ -347,8 +347,8 @@ var
       VectorList.Add(ReadVector3f);
       VectorList.Add(ReadVector3f);
   end;
   end;
 
 
-  procedure ReadMeshIndices(IndexList: TGIntegerList;
-    VertCountIndices: TGIntegerList = nil);
+  procedure ReadMeshIndices(IndexList: TgIntegerList;
+    VertCountIndices: TgIntegerList = nil);
   var
   var
     str: String;
     str: String;
     i, j, NumFaces, NumIndices, jStart: Integer;
     i, j, NumFaces, NumIndices, jStart: Integer;
@@ -604,10 +604,10 @@ begin
   FVertices := TGAffineVectorList.Create;
   FVertices := TGAffineVectorList.Create;
   FNormals := TGAffineVectorList.Create;
   FNormals := TGAffineVectorList.Create;
   FTexCoords := TGAffineVectorList.Create;
   FTexCoords := TGAffineVectorList.Create;
-  FVertexIndices := TGIntegerList.Create;
-  FNormalIndices := TGIntegerList.Create;
-  FMaterialIndices := TGIntegerList.Create;
-  FVertCountIndices := TGIntegerList.Create;
+  FVertexIndices := TgIntegerList.Create;
+  FNormalIndices := TgIntegerList.Create;
+  FMaterialIndices := TgIntegerList.Create;
+  FVertCountIndices := TgIntegerList.Create;
   FMaterialList := TDXMaterialList.Create;
   FMaterialList := TDXMaterialList.Create;
 end;
 end;
 
 

+ 1 - 1
Source/GLS.ArchiveManager.pas

@@ -72,7 +72,7 @@ type
   end;
   end;
 
 
   // The list of registered classes
   // The list of registered classes
-  TGLArchiveFileFormatsList = class(TGPersistentObjectList)
+  TGLArchiveFileFormatsList = class(TgPersistentObjectList)
   public
   public
     destructor Destroy; override;
     destructor Destroy; override;
     procedure Add(const Ext, Desc: string; DescID: integer;
     procedure Add(const Ext, Desc: string; DescID: integer;

+ 10 - 10
Source/GLS.Behaviours.pas

@@ -69,12 +69,12 @@ type
   TGLBInertia = class(TGLBehaviour)
   TGLBInertia = class(TGLBehaviour)
   private
   private
     FMass: single;
     FMass: single;
-    FTranslationSpeed: TGCoordinates;
+    FTranslationSpeed: TgCoordinates;
     FTurnSpeed, FRollSpeed, FPitchSpeed: single;
     FTurnSpeed, FRollSpeed, FPitchSpeed: single;
     FTranslationDamping, FRotationDamping: TGLDamping;
     FTranslationDamping, FRotationDamping: TGLDamping;
     FDampingEnabled: boolean;
     FDampingEnabled: boolean;
   protected
   protected
-    procedure SetTranslationSpeed(const val: TGCoordinates);
+    procedure SetTranslationSpeed(const val: TgCoordinates);
     procedure SetTranslationDamping(const val: TGLDamping);
     procedure SetTranslationDamping(const val: TGLDamping);
     procedure SetRotationDamping(const val: TGLDamping);
     procedure SetRotationDamping(const val: TGLDamping);
     procedure WriteToFiler(writer: TWriter); override;
     procedure WriteToFiler(writer: TWriter); override;
@@ -104,7 +104,7 @@ type
     procedure SurfaceBounce(const surfaceNormal: TGLVector; restitution: single);
     procedure SurfaceBounce(const surfaceNormal: TGLVector; restitution: single);
   published
   published
     property Mass: single read FMass write FMass;
     property Mass: single read FMass write FMass;
-    property TranslationSpeed: TGCoordinates read FTranslationSpeed write SetTranslationSpeed;
+    property TranslationSpeed: TgCoordinates read FTranslationSpeed write SetTranslationSpeed;
     property TurnSpeed: single read FTurnSpeed write FTurnSpeed;
     property TurnSpeed: single read FTurnSpeed write FTurnSpeed;
     property RollSpeed: single read FRollSpeed write FRollSpeed;
     property RollSpeed: single read FRollSpeed write FRollSpeed;
     property PitchSpeed: single read FPitchSpeed write FPitchSpeed;
     property PitchSpeed: single read FPitchSpeed write FPitchSpeed;
@@ -128,9 +128,9 @@ type
   // Applies a constant acceleration to a TGLBInertia.  
   // Applies a constant acceleration to a TGLBInertia.  
   TGLBAcceleration = class(TGLBehaviour)
   TGLBAcceleration = class(TGLBehaviour)
   private
   private
-    FAcceleration: TGCoordinates;
+    FAcceleration: TgCoordinates;
   protected
   protected
-    procedure SetAcceleration(const val: TGCoordinates);
+    procedure SetAcceleration(const val: TgCoordinates);
     procedure WriteToFiler(writer: TWriter); override;
     procedure WriteToFiler(writer: TWriter); override;
     procedure ReadFromFiler(reader: TReader); override;
     procedure ReadFromFiler(reader: TReader); override;
   public
   public
@@ -142,7 +142,7 @@ type
     class function UniqueItem: boolean; override;
     class function UniqueItem: boolean; override;
     procedure DoProgress(const progressTime: TGProgressTimes); override;
     procedure DoProgress(const progressTime: TGProgressTimes); override;
   published
   published
-    property Acceleration: TGCoordinates read FAcceleration write FAcceleration;
+    property Acceleration: TgCoordinates read FAcceleration write FAcceleration;
   end;
   end;
 
 
 (* Returns or creates the TGLBInertia within the given behaviours. 
 (* Returns or creates the TGLBInertia within the given behaviours. 
@@ -308,7 +308,7 @@ end;
 constructor TGLBInertia.Create(aOwner: TXCollection);
 constructor TGLBInertia.Create(aOwner: TXCollection);
 begin
 begin
   inherited Create(aOwner);
   inherited Create(aOwner);
-  FTranslationSpeed := TGCoordinates.CreateInitialized(Self, NullHmgVector, csVector);
+  FTranslationSpeed := TgCoordinates.CreateInitialized(Self, NullHmgVector, csVector);
   FMass := 1;
   FMass := 1;
   FDampingEnabled := True;
   FDampingEnabled := True;
   FTranslationDamping := TGLDamping.Create(Self);
   FTranslationDamping := TGLDamping.Create(Self);
@@ -373,7 +373,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGLBInertia.SetTranslationSpeed(const val: TGCoordinates);
+procedure TGLBInertia.SetTranslationSpeed(const val: TgCoordinates);
 begin
 begin
   FTranslationSpeed.Assign(val);
   FTranslationSpeed.Assign(val);
 end;
 end;
@@ -521,7 +521,7 @@ begin
   if aOwner <> nil then
   if aOwner <> nil then
     if not (csReading in TComponent(aOwner.Owner).ComponentState) then
     if not (csReading in TComponent(aOwner.Owner).ComponentState) then
       GetOrCreateInertia(TGLBehaviours(aOwner));
       GetOrCreateInertia(TGLBehaviours(aOwner));
-  FAcceleration := TGCoordinates.CreateInitialized(Self, NullHmgVector, csVector);
+  FAcceleration := TgCoordinates.CreateInitialized(Self, NullHmgVector, csVector);
 end;
 end;
 
 
 destructor TGLBAcceleration.Destroy;
 destructor TGLBAcceleration.Destroy;
@@ -559,7 +559,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGLBAcceleration.SetAcceleration(const val: TGCoordinates);
+procedure TGLBAcceleration.SetAcceleration(const val: TgCoordinates);
 begin
 begin
   FAcceleration.Assign(val);
   FAcceleration.Assign(val);
 end;
 end;

+ 2 - 2
Source/GLS.CUDA.APIComps.pas

@@ -53,7 +53,7 @@ type
   TCUDAComponent = class(TCUDAHandlesMaster)
   TCUDAComponent = class(TCUDAHandlesMaster)
   private
   private
     FMaster: TCUDAComponent;
     FMaster: TCUDAComponent;
-    FItems: TGPersistentObjectList;
+    FItems: TgPersistentObjectList;
     procedure SetMaster(AMaster: TCUDAComponent);
     procedure SetMaster(AMaster: TCUDAComponent);
     function GetItem(const i: Integer): TCUDAComponent;
     function GetItem(const i: Integer): TCUDAComponent;
     function GetItemsCount: Integer;
     function GetItemsCount: Integer;
@@ -1059,7 +1059,7 @@ end;
 procedure TCUDAComponent.AddItem(AItem: TCUDAComponent);
 procedure TCUDAComponent.AddItem(AItem: TCUDAComponent);
 begin
 begin
   if not Assigned(FItems) then
   if not Assigned(FItems) then
-    FItems := TGPersistentObjectList.Create;
+    FItems := TgPersistentObjectList.Create;
   FItems.Add(AItem);
   FItems.Add(AItem);
 end;
 end;
 
 

+ 3 - 3
Source/GLS.Cadencer.pas

@@ -61,7 +61,7 @@ type
     FCurrentTime: Double;
     FCurrentTime: Double;
     FOriginTime: Double;
     FOriginTime: Double;
     FMaxDeltaTime, FMinDeltaTime, FFixedDeltaTime: Double;
     FMaxDeltaTime, FMinDeltaTime, FFixedDeltaTime: Double;
-  	FOnProgress, FOnTotalProgress : TGProgressEvent;
+  	FOnProgress, FOnTotalProgress : TgProgressEvent;
     FProgressing: Integer;
     FProgressing: Integer;
     procedure SetCurrentTime(const Value: Double);
     procedure SetCurrentTime(const Value: Double);
   protected
   protected
@@ -148,9 +148,9 @@ type
      help for the "sleep" procedure in delphi for details). *)
      help for the "sleep" procedure in delphi for details). *)
     property SleepLength: Integer read FSleepLength write FSleepLength default -1;
     property SleepLength: Integer read FSleepLength write FSleepLength default -1;
     // Happens AFTER scene was progressed. 
     // Happens AFTER scene was progressed. 
-    property OnProgress: TGProgressEvent read FOnProgress write FOnProgress;
+    property OnProgress: TgProgressEvent read FOnProgress write FOnProgress;
     // Happens AFTER all iterations with fixed delta time. 
     // Happens AFTER all iterations with fixed delta time. 
-    property OnTotalProgress : TGProgressEvent read FOnTotalProgress write FOnTotalProgress;
+    property OnTotalProgress : TgProgressEvent read FOnTotalProgress write FOnTotalProgress;
   end;
   end;
 
 
   // Adds a property to connect/subscribe to a cadencer.  
   // Adds a property to connect/subscribe to a cadencer.  

+ 4 - 4
Source/GLS.Context.pas

@@ -32,7 +32,7 @@ uses
 
 
   GLScene.TextureFormat,
   GLScene.TextureFormat,
   GLS.OpenGLAdapter,
   GLS.OpenGLAdapter,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLS.State,
   GLS.State,
   GLS.XOpenGL,
   GLS.XOpenGL,
   GLScene.Logger;
   GLScene.Logger;
@@ -113,7 +113,7 @@ type
     Fgl: TGLExtensionsAndEntryPoints;
     Fgl: TGLExtensionsAndEntryPoints;
     Fxgl: TGLMultitextureCoordinator;
     Fxgl: TGLMultitextureCoordinator;
     FGLStates: TGLStateCache;
     FGLStates: TGLStateCache;
-    FTransformation: TGLTransformation;
+    FTransformation: TGTransformation;
     FAcceleration: TGLContextAcceleration;
     FAcceleration: TGLContextAcceleration;
     FLayer: TGLContextLayer;
     FLayer: TGLContextLayer;
 {$IFNDEF USE_MULTITHREAD}
 {$IFNDEF USE_MULTITHREAD}
@@ -136,7 +136,7 @@ type
     destructor Destroy; override;
     destructor Destroy; override;
     // An application-side cache of global per-context OpenGL states and parameters
     // An application-side cache of global per-context OpenGL states and parameters
     property GLStates: TGLStateCache read FGLStates;
     property GLStates: TGLStateCache read FGLStates;
-    property PipelineTransformation: TGLTransformation read FTransformation;
+    property PipelineTransformation: TGTransformation read FTransformation;
     // Context manager reference
     // Context manager reference
     property Manager: TGLContextManager read FManager;
     property Manager: TGLContextManager read FManager;
     // Color bits for the rendering context
     // Color bits for the rendering context
@@ -1061,7 +1061,7 @@ begin
   FAcceleration := chaUnknown;
   FAcceleration := chaUnknown;
   FGLStates := TGLStateCache.Create;
   FGLStates := TGLStateCache.Create;
   FGL := TGLExtensionsAndEntryPoints.Create;
   FGL := TGLExtensionsAndEntryPoints.Create;
-  FTransformation := TGLTransformation.Create;
+  FTransformation := TGTransformation.Create;
   FTransformation.LoadMatricesEnabled := True;
   FTransformation.LoadMatricesEnabled := True;
   GLContextManager.RegisterContext(Self);
   GLContextManager.RegisterContext(Self);
   FIsPraparationNeed := True;
   FIsPraparationNeed := True;

+ 17 - 17
Source/GLS.DCE.pas

@@ -86,13 +86,13 @@ type
     FStatics: TList;
     FStatics: TList;
     FDynamics: TList;
     FDynamics: TList;
     FGravity: single;
     FGravity: single;
-    FWorldDirection: TGCoordinates; // Used to calculate jumps f.i.
+    FWorldDirection: TgCoordinates; // Used to calculate jumps f.i.
     FWorldScale: single;
     FWorldScale: single;
     FMovimentScale: single;
     FMovimentScale: single;
     FStandardiseLayers: TDCECollisionSelection;
     FStandardiseLayers: TDCECollisionSelection;
     FManualStep: Boolean;
     FManualStep: Boolean;
     FOnCollision: TDCECollisionEvent;
     FOnCollision: TDCECollisionEvent;
-    procedure SetWorldDirection(const Value: TGCoordinates);
+    procedure SetWorldDirection(const Value: TgCoordinates);
     procedure SetWorldScale(const Value: single);
     procedure SetWorldScale(const Value: single);
     function GetDynamicCount: Integer;
     function GetDynamicCount: Integer;
     function GetStaticCount: Integer;
     function GetStaticCount: Integer;
@@ -114,7 +114,7 @@ type
     property StaticCount: Integer read GetStaticCount;
     property StaticCount: Integer read GetStaticCount;
   published
   published
     property Gravity: single read FGravity write FGravity;
     property Gravity: single read FGravity write FGravity;
-    property WorldDirection: TGCoordinates read FWorldDirection
+    property WorldDirection: TgCoordinates read FWorldDirection
       write SetWorldDirection;
       write SetWorldDirection;
     property WorldScale: single read FWorldScale write SetWorldScale;
     property WorldScale: single read FWorldScale write SetWorldScale;
     property MovimentScale: single read FMovimentScale write FMovimentScale;
     property MovimentScale: single read FMovimentScale write FMovimentScale;
@@ -137,13 +137,13 @@ type
     FSolid: Boolean;
     FSolid: Boolean;
     FFriction: single; // 0 (no friction); 100 (no movement)
     FFriction: single; // 0 (no friction); 100 (no movement)
     FBounceFactor: single; // 0 (don't bounce); 1 (bounce forever)
     FBounceFactor: single; // 0 (don't bounce); 1 (bounce forever)
-    FSize: TGCoordinates;
+    FSize: TgCoordinates;
     // Events
     // Events
     FOnCollision: TDCEObjectCollisionEvent;
     FOnCollision: TDCEObjectCollisionEvent;
     procedure SetShape(const Value: TDCEShape);
     procedure SetShape(const Value: TDCEShape);
     procedure SetFriction(const Value: single);
     procedure SetFriction(const Value: single);
     procedure SetBounceFactor(const Value: single);
     procedure SetBounceFactor(const Value: single);
-    procedure SetSize(const Value: TGCoordinates);
+    procedure SetSize(const Value: TgCoordinates);
   protected
   protected
     procedure SetManager(const val: TGLDCEManager);
     procedure SetManager(const val: TGLDCEManager);
     procedure WriteToFiler(writer: TWriter); override;
     procedure WriteToFiler(writer: TWriter); override;
@@ -165,7 +165,7 @@ type
     property Solid: Boolean read FSolid write FSolid;
     property Solid: Boolean read FSolid write FSolid;
     property Friction: single read FFriction write SetFriction;
     property Friction: single read FFriction write SetFriction;
     property BounceFactor: single read FBounceFactor write SetBounceFactor;
     property BounceFactor: single read FBounceFactor write SetBounceFactor;
-    property Size: TGCoordinates read FSize write SetSize;
+    property Size: TgCoordinates read FSize write SetSize;
   end;
   end;
 
 
   TDCESlideOrBounce = (csbSlide, csbBounce);
   TDCESlideOrBounce = (csbSlide, csbBounce);
@@ -181,7 +181,7 @@ type
     // Collide and slide if true, otherwise it "walk thru walls"
     // Collide and slide if true, otherwise it "walk thru walls"
     FFriction: single; // 0 (no friction); 100 (no movement)
     FFriction: single; // 0 (no friction); 100 (no movement)
     FBounceFactor: single; // 0 (don't bounce); 1 (bounce forever)
     FBounceFactor: single; // 0 (don't bounce); 1 (bounce forever)
-    FSize: TGCoordinates;
+    FSize: TgCoordinates;
     // Number of iterations of the collision method
     // Number of iterations of the collision method
     FMaxRecursionDepth: byte;
     FMaxRecursionDepth: byte;
     FSlideOrBounce: TDCESlideOrBounce; // gak20041122
     FSlideOrBounce: TDCESlideOrBounce; // gak20041122
@@ -200,7 +200,7 @@ type
     FOnCollision: TDCEObjectCollisionEvent;
     FOnCollision: TDCEObjectCollisionEvent;
     procedure SetFriction(const Value: single);
     procedure SetFriction(const Value: single);
     procedure SetBounceFactor(const Value: single);
     procedure SetBounceFactor(const Value: single);
-    procedure SetSize(const Value: TGCoordinates);
+    procedure SetSize(const Value: TgCoordinates);
   protected
   protected
     procedure SetManager(const val: TGLDCEManager);
     procedure SetManager(const val: TGLDCEManager);
     procedure WriteToFiler(writer: TWriter); override;
     procedure WriteToFiler(writer: TWriter); override;
@@ -238,7 +238,7 @@ type
     property Solid: Boolean read FSolid write FSolid;
     property Solid: Boolean read FSolid write FSolid;
     property Friction: single read FFriction write SetFriction;
     property Friction: single read FFriction write SetFriction;
     property BounceFactor: single read FBounceFactor write SetBounceFactor;
     property BounceFactor: single read FBounceFactor write SetBounceFactor;
-    property Size: TGCoordinates read FSize write SetSize;
+    property Size: TgCoordinates read FSize write SetSize;
     property SlideOrBounce: TDCESlideOrBounce read FSlideOrBounce
     property SlideOrBounce: TDCESlideOrBounce read FSlideOrBounce
       write FSlideOrBounce;
       write FSlideOrBounce;
   end;
   end;
@@ -512,7 +512,7 @@ begin
   FStatics := TList.Create;
   FStatics := TList.Create;
   FDynamics := TList.Create;
   FDynamics := TList.Create;
   FGravity := 0;
   FGravity := 0;
-  FWorldDirection := TGCoordinates.CreateInitialized(Self, YHmgVector,
+  FWorldDirection := TgCoordinates.CreateInitialized(Self, YHmgVector,
     csVector);
     csVector);
   FWorldScale := 1;
   FWorldScale := 1;
   FMovimentScale := 1;
   FMovimentScale := 1;
@@ -547,7 +547,7 @@ function TGLDCEManager.MoveByDistance(var Body: TGLDCEDynamic;
 var
 var
   // Friction and bounce
   // Friction and bounce
   TotalFriction, Bounce, f, m, restitution: single;
   TotalFriction, Bounce, f, m, restitution: single;
-  ContactList: TGIntegerList;
+  ContactList: TgIntegerList;
   // Temporary properties (Static or Dynamic)
   // Temporary properties (Static or Dynamic)
   tFriction, tBounceFactor: single;
   tFriction, tBounceFactor: single;
   TObject: TGLBaseSceneObject;
   TObject: TGLBaseSceneObject;
@@ -667,7 +667,7 @@ begin
   // Generate events and calculate average friction
   // Generate events and calculate average friction
   lastobj := -1;
   lastobj := -1;
   TotalFriction := Body.Friction;
   TotalFriction := Body.Friction;
-  ContactList := TGIntegerList.Create;
+  ContactList := TgIntegerList.Create;
   try
   try
     for i := 0 to High(MP.Contacts) do
     for i := 0 to High(MP.Contacts) do
       with MP do
       with MP do
@@ -768,7 +768,7 @@ begin
         DoMove(deltaTime);
         DoMove(deltaTime);
 end;
 end;
 
 
-procedure TGLDCEManager.SetWorldDirection(const Value: TGCoordinates);
+procedure TGLDCEManager.SetWorldDirection(const Value: TgCoordinates);
 begin
 begin
   FWorldDirection := Value;
   FWorldDirection := Value;
   FWorldDirection.Normalize;
   FWorldDirection.Normalize;
@@ -866,7 +866,7 @@ constructor TGLDCEStatic.Create(AOwner: TXCollection);
 begin
 begin
   inherited Create(AOwner);
   inherited Create(AOwner);
   FActive := True;
   FActive := True;
-  FSize := TGCoordinates.CreateInitialized(Self, XYZHmgVector, csVector);
+  FSize := TgCoordinates.CreateInitialized(Self, XYZHmgVector, csVector);
   FShape := csEllipsoid;
   FShape := csEllipsoid;
   FSolid := True;
   FSolid := True;
   FFriction := 1;
   FFriction := 1;
@@ -981,7 +981,7 @@ begin
   FShape := Value;
   FShape := Value;
 end;
 end;
 
 
-procedure TGLDCEStatic.SetSize(const Value: TGCoordinates);
+procedure TGLDCEStatic.SetSize(const Value: TgCoordinates);
 begin
 begin
   FSize.Assign(Value);
   FSize.Assign(Value);
   if FSize.x <= 0 then
   if FSize.x <= 0 then
@@ -1049,7 +1049,7 @@ begin
   inherited Create(AOwner);
   inherited Create(AOwner);
   FActive := True;
   FActive := True;
   FUseGravity := True;
   FUseGravity := True;
-  FSize := TGCoordinates.CreateInitialized(Self, XYZHmgVector, csVector);
+  FSize := TgCoordinates.CreateInitialized(Self, XYZHmgVector, csVector);
   FSolid := True;
   FSolid := True;
   FFriction := 1;
   FFriction := 1;
   FBounceFactor := 0;
   FBounceFactor := 0;
@@ -1302,7 +1302,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGLDCEDynamic.SetSize(const Value: TGCoordinates);
+procedure TGLDCEDynamic.SetSize(const Value: TgCoordinates);
 begin
 begin
   FSize.Assign(Value);
   FSize.Assign(Value);
   if FSize.x <= 0 then
   if FSize.x <= 0 then

+ 6 - 6
Source/GLS.EParticleMasksManager.pas

@@ -50,8 +50,8 @@ type
   TGLEParticleMask = class(TCollectionItem, IGLMaterialLibrarySupported)
   TGLEParticleMask = class(TCollectionItem, IGLMaterialLibrarySupported)
   private
   private
     FName: string;
     FName: string;
-    FScale: TGCoordinates;
-    FPosition: TGCoordinates;
+    FScale: TgCoordinates;
+    FPosition: TgCoordinates;
     FYMask: TGLLibMaterialName;
     FYMask: TGLLibMaterialName;
     FZMask: TGLLibMaterialName;
     FZMask: TGLLibMaterialName;
     FXMask: TGLLibMaterialName;
     FXMask: TGLLibMaterialName;
@@ -97,8 +97,8 @@ type
       TGLEProjectedParticleMask; Depth: Integer);
       TGLEProjectedParticleMask; Depth: Integer);
   published
   published
     // scales and positions
     // scales and positions
-    property Scale: TGCoordinates read FScale write FScale;
-    property Position: TGCoordinates read FPosition write FPosition;
+    property Scale: TgCoordinates read FScale write FScale;
+    property Position: TgCoordinates read FPosition write FPosition;
     // the reference name of the particle mask
     // the reference name of the particle mask
     property Name: string read FName write SetName;
     property Name: string read FName write SetName;
     property MaterialLibrary: TGLMaterialLibrary read FMaterialLibrary write SetMaterialLibrary;
     property MaterialLibrary: TGLMaterialLibrary read FMaterialLibrary write SetMaterialLibrary;
@@ -210,8 +210,8 @@ begin
 
 
   FName := 'ParticleMask' + IntToStr(ID);
   FName := 'ParticleMask' + IntToStr(ID);
 
 
-  FScale := TGCoordinates.CreateInitialized(Self, XYZHMGVector, csPoint);
-  FPosition := TGCoordinates.CreateInitialized(Self, NullHmgPoint, csPoint);
+  FScale := TgCoordinates.CreateInitialized(Self, XYZHMGVector, csPoint);
+  FPosition := TgCoordinates.CreateInitialized(Self, NullHmgPoint, csPoint);
   FMaterialLibrary := nil;
   FMaterialLibrary := nil;
 
 
   FMaskColor := clWhite;
   FMaskColor := clWhite;

+ 5 - 5
Source/GLS.ExplosionFx.pas

@@ -48,14 +48,14 @@ type
     FEnabled: boolean;
     FEnabled: boolean;
     FFaceCount: integer;
     FFaceCount: integer;
     FSpeed: single;
     FSpeed: single;
-    FDirection: TGCoordinates;
+    FDirection: TgCoordinates;
     FMaxSteps: integer;
     FMaxSteps: integer;
     FStep: integer;
     FStep: integer;
     procedure SetTriList(Value: TGAffineVectorList);
     procedure SetTriList(Value: TGAffineVectorList);
     procedure SetRotList(Value: TGAffineVectorList);
     procedure SetRotList(Value: TGAffineVectorList);
     procedure SetDirList(Value: TGAffineVectorList);
     procedure SetDirList(Value: TGAffineVectorList);
     procedure SetPosList(Value: TGAffineVectorList);
     procedure SetPosList(Value: TGAffineVectorList);
-    procedure SetDirection(value: TGCoordinates);
+    procedure SetDirection(value: TgCoordinates);
     procedure SetEnabled(value: boolean);
     procedure SetEnabled(value: boolean);
   protected
   protected
     property TriList: TGAffineVectorList read FTriList write SetTriList;
     property TriList: TGAffineVectorList read FTriList write SetTriList;
@@ -78,7 +78,7 @@ type
   published
   published
     property MaxSteps: integer read FMaxSteps write FMaxSteps;
     property MaxSteps: integer read FMaxSteps write FMaxSteps;
     property Speed: single read FSpeed write FSpeed;
     property Speed: single read FSpeed write FSpeed;
-    property Direction: TGCoordinates read FDirection write SetDirection;
+    property Direction: TgCoordinates read FDirection write SetDirection;
   end;
   end;
 
 
 //-------------------------------------------------------------------------
 //-------------------------------------------------------------------------
@@ -96,7 +96,7 @@ begin
   FRotList := TGAffineVectorList.Create;
   FRotList := TGAffineVectorList.Create;
   FDirList := TGAffineVectorList.Create;
   FDirList := TGAffineVectorList.Create;
   FPosList := TGAffineVectorList.Create;
   FPosList := TGAffineVectorList.Create;
-  FDirection := TGCoordinates.CreateInitialized(Self, NullHmgVector, csPoint);
+  FDirection := TgCoordinates.CreateInitialized(Self, NullHmgVector, csPoint);
 end;
 end;
 
 
 destructor TGLBExplosionFX.Destroy;
 destructor TGLBExplosionFX.Destroy;
@@ -140,7 +140,7 @@ begin
   FPosList.Assign(Value);
   FPosList.Assign(Value);
 end;
 end;
 
 
-procedure TGLBExplosionFx.SetDirection(Value: TGCoordinates);
+procedure TGLBExplosionFx.SetDirection(Value: TgCoordinates);
 begin
 begin
   Value.Normalize;
   Value.Normalize;
   FDirection.Assign(Value);
   FDirection.Assign(Value);

+ 1 - 1
Source/GLS.FBORenderer.pas

@@ -21,7 +21,7 @@ uses
   GLScene.VectorGeometry,
   GLScene.VectorGeometry,
 
 
   GLScene.PersistentClasses,
   GLScene.PersistentClasses,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLS.Scene,
   GLS.Scene,
   GLS.Texture,
   GLS.Texture,
   GLS.Context,
   GLS.Context,

+ 5 - 5
Source/GLS.Feedback.pas

@@ -27,7 +27,7 @@ uses
   GLScene.OpenGLTokens,
   GLScene.OpenGLTokens,
   GLScene.VectorTypes,
   GLScene.VectorTypes,
   GLScene.VectorGeometry,
   GLScene.VectorGeometry,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
 
 
   GLScene.PersistentClasses,
   GLScene.PersistentClasses,
   GLScene.VectorLists,
   GLScene.VectorLists,
@@ -66,7 +66,7 @@ type
       Normals: TGAffineVectorList = nil;
       Normals: TGAffineVectorList = nil;
       Colors: TGVectorList = nil;
       Colors: TGVectorList = nil;
       TexCoords: TGAffineVectorList = nil;
       TexCoords: TGAffineVectorList = nil;
-      VertexIndices: TGIntegerList = nil);
+      VertexIndices: TgIntegerList = nil);
     // True when there is data in the buffer ready for parsing
     // True when there is data in the buffer ready for parsing
     property Buffered: Boolean read FBuffered;
     property Buffered: Boolean read FBuffered;
     // The feedback buffer
     // The feedback buffer
@@ -189,14 +189,14 @@ procedure TGLFeedback.BuildMeshFromBuffer(
   Normals: TGAffineVectorList = nil;
   Normals: TGAffineVectorList = nil;
   Colors: TGVectorList = nil;
   Colors: TGVectorList = nil;
   TexCoords: TGAffineVectorList = nil;
   TexCoords: TGAffineVectorList = nil;
-  VertexIndices: TGIntegerList = nil);
+  VertexIndices: TgIntegerList = nil);
 var
 var
   value: Single;
   value: Single;
   i, j, LCount, skip: Integer;
   i, j, LCount, skip: Integer;
   vertex, color, texcoord: TGLVector;
   vertex, color, texcoord: TGLVector;
   tempVertices, tempNormals, tempTexCoords: TGAffineVectorList;
   tempVertices, tempNormals, tempTexCoords: TGAffineVectorList;
   tempColors: TGVectorList;
   tempColors: TGVectorList;
-  tempIndices: TGIntegerList;
+  tempIndices: TgIntegerList;
   ColorBuffered, TexCoordBuffered: Boolean;
   ColorBuffered, TexCoordBuffered: Boolean;
 begin
 begin
   Assert(FMode <> fm2D, 'Cannot build mesh from fm2D feedback mode.');
   Assert(FMode <> fm2D, 'Cannot build mesh from fm2D feedback mode.');
@@ -292,7 +292,7 @@ begin
   end
   end
   else
   else
   begin
   begin
-    tempIndices := TGIntegerList.Create;
+    tempIndices := TgIntegerList.Create;
     tempIndices.AddSerie(0, 1, tempVertices.Count);
     tempIndices.AddSerie(0, 1, tempVertices.Count);
   end;
   end;
 
 

+ 1 - 1
Source/GLS.File3DPDF.pas

@@ -260,7 +260,7 @@ var
   FaceCount, ModelPositionCount, NormalCount, I, J: Integer;
   FaceCount, ModelPositionCount, NormalCount, I, J: Integer;
   FacePositionList, NormalList, ModelPositionList, ModelNormalList, FaceShadingList: String;
   FacePositionList, NormalList, ModelPositionList, ModelNormalList, FaceShadingList: String;
   Lines: TStringList;
   Lines: TStringList;
-  Indicies: TGIntegerList;
+  Indicies: TgIntegerList;
 
 
   function FormatVector(const AVector: TAffineVector): string;
   function FormatVector(const AVector: TAffineVector): string;
   begin
   begin

+ 21 - 21
Source/GLS.File3DSSceneObjects.pas

@@ -30,32 +30,32 @@ uses
 type
 type
   TGLFile3DSLight = class(TGLLightSource)
   TGLFile3DSLight = class(TGLLightSource)
   private
   private
-    FTargetPos: TGCoordinates;
+    FTargetPos: TgCoordinates;
     FHotSpot: Single;
     FHotSpot: Single;
     FMultipler: Single;
     FMultipler: Single;
   public
   public
     constructor Create(AOwner: TComponent); override;
     constructor Create(AOwner: TComponent); override;
     procedure DoRender(var rci: TGLRenderContextInfo; renderSelf, renderChildren: Boolean); override;
     procedure DoRender(var rci: TGLRenderContextInfo; renderSelf, renderChildren: Boolean); override;
-    procedure CoordinateChanged(Sender: TGCustomCoordinates); override;
+    procedure CoordinateChanged(Sender: TgCustomCoordinates); override;
     destructor Destroy; override;
     destructor Destroy; override;
   published
   published
-    property SpotTargetPos: TGCoordinates read FTargetPos;
+    property SpotTargetPos: TgCoordinates read FTargetPos;
     property HotSpot: Single read FHotSpot write FHotSpot;
     property HotSpot: Single read FHotSpot write FHotSpot;
     property Multipler: Single read FMultipler write FMultipler;
     property Multipler: Single read FMultipler write FMultipler;
   end;
   end;
 
 
   TGLFile3DSCamera = class(TGLCamera)
   TGLFile3DSCamera = class(TGLCamera)
   private
   private
-    FTargetPos: TGCoordinates;
+    FTargetPos: TgCoordinates;
     FQuadCyl: array[0..1] of PGLUquadric;
     FQuadCyl: array[0..1] of PGLUquadric;
     FQuadDisk: array[0..1] of PGLUquadric;
     FQuadDisk: array[0..1] of PGLUquadric;
   public
   public
     constructor Create(AOwner: TComponent); override;
     constructor Create(AOwner: TComponent); override;
     procedure DoRender(var rci: TGLRenderContextInfo; renderSelf, renderChildren: Boolean); override;
     procedure DoRender(var rci: TGLRenderContextInfo; renderSelf, renderChildren: Boolean); override;
-    procedure CoordinateChanged(Sender: TGCustomCoordinates); override;
+    procedure CoordinateChanged(Sender: TgCustomCoordinates); override;
     destructor Destroy; override;
     destructor Destroy; override;
   published
   published
-    property CameraTargetPos: TGCoordinates read FTargetPos;
+    property CameraTargetPos: TgCoordinates read FTargetPos;
     property RollAngle;
     property RollAngle;
   end;
   end;
 
 
@@ -71,9 +71,9 @@ type
   private
   private
     FTransfMat, FScaleMat, ParentMatrix: TGLMatrix;
     FTransfMat, FScaleMat, ParentMatrix: TGLMatrix;
 
 
-    FS_Rot3DS: TGCoordinates4;
-    FRot3DS: TGCoordinates4;
-    FScale3DS: TGCoordinates4;
+    FS_Rot3DS: TgCoordinates4;
+    FRot3DS: TgCoordinates4;
+    FScale3DS: TgCoordinates4;
     procedure ReadMesh(Stream: TStream);
     procedure ReadMesh(Stream: TStream);
     procedure WriteMesh(Stream: TStream);
     procedure WriteMesh(Stream: TStream);
   protected
   protected
@@ -83,13 +83,13 @@ type
     constructor Create(AOWner: TComponent); override;
     constructor Create(AOWner: TComponent); override;
     destructor Destroy; override;
     destructor Destroy; override;
     procedure BuildList(var rci: TGLRenderContextInfo); override;
     procedure BuildList(var rci: TGLRenderContextInfo); override;
-    procedure CoordinateChanged(Sender: TGCustomCoordinates); override;
+    procedure CoordinateChanged(Sender: TgCustomCoordinates); override;
     function AxisAlignedDimensionsUnscaled: TGLVector; override;
     function AxisAlignedDimensionsUnscaled: TGLVector; override;
     function BarycenterAbsolutePosition: TGLVector; override;
     function BarycenterAbsolutePosition: TGLVector; override;
   published
   published
-    property S_Rot3DS: TGCoordinates4 read FS_Rot3DS;
-    property Rot3DS: TGCoordinates4 read FRot3DS;
-    property Scale3DS: TGCoordinates4 read FScale3DS;
+    property S_Rot3DS: TgCoordinates4 read FS_Rot3DS;
+    property Rot3DS: TgCoordinates4 read FRot3DS;
+    property Scale3DS: TgCoordinates4 read FScale3DS;
   end;
   end;
 
 
 var
 var
@@ -163,7 +163,7 @@ constructor TGLFile3DSLight.Create(AOwner: TComponent);
 begin
 begin
   inherited;
   inherited;
 
 
-  FTargetPos := TGCoordinates.CreateInitialized(self, VectorMake(NullVector), csPoint);
+  FTargetPos := TgCoordinates.CreateInitialized(self, VectorMake(NullVector), csPoint);
   FHotSpot := 1;
   FHotSpot := 1;
   FMultipler := 1;
   FMultipler := 1;
 end;
 end;
@@ -215,7 +215,7 @@ begin
   gl.PopMatrix;
   gl.PopMatrix;
 end;
 end;
 
 
-procedure TGLFile3DSLight.CoordinateChanged(Sender: TGCustomCoordinates);
+procedure TGLFile3DSLight.CoordinateChanged(Sender: TgCustomCoordinates);
 begin
 begin
   inherited;
   inherited;
 
 
@@ -235,7 +235,7 @@ var
 begin
 begin
   inherited;
   inherited;
 
 
-  FTargetPos := TGCoordinates.CreateInitialized(self, VectorMake(NullVector), csPoint);
+  FTargetPos := TgCoordinates.CreateInitialized(self, VectorMake(NullVector), csPoint);
 
 
   for I := 0 to 1 do
   for I := 0 to 1 do
   begin
   begin
@@ -302,7 +302,7 @@ begin
   rci.GLStates.PolygonMode := pmFill;
   rci.GLStates.PolygonMode := pmFill;
 end;
 end;
 
 
-procedure TGLFile3DSCamera.CoordinateChanged(Sender: TGCustomCoordinates);
+procedure TGLFile3DSCamera.CoordinateChanged(Sender: TgCustomCoordinates);
 begin
 begin
   inherited;
   inherited;
 
 
@@ -356,9 +356,9 @@ begin
   FRefMat := IdentityHmgMatrix;
   FRefMat := IdentityHmgMatrix;
   FTransfMat := IdentityHmgMatrix;
   FTransfMat := IdentityHmgMatrix;
   FScaleMat := IdentityHmgMatrix;
   FScaleMat := IdentityHmgMatrix;
-  FS_Rot3DS := TGCoordinates4.CreateInitialized(self, VectorMake(1, 0, 0), csVector);
-  FRot3DS := TGCoordinates4.CreateInitialized(self, VectorMake(1, 0, 0), csVector);
-  FScale3DS := TGCoordinates4.CreateInitialized(self, VectorMake(1, 1, 1), csVector);
+  FS_Rot3DS := TgCoordinates4.CreateInitialized(self, VectorMake(1, 0, 0), csVector);
+  FRot3DS := TgCoordinates4.CreateInitialized(self, VectorMake(1, 0, 0), csVector);
+  FScale3DS := TgCoordinates4.CreateInitialized(self, VectorMake(1, 1, 1), csVector);
 
 
   ObjectStyle := [osDirectDraw];
   ObjectStyle := [osDirectDraw];
 end;
 end;
@@ -434,7 +434,7 @@ begin
   ParentMatrix := MatrixMultiply(FTransfMat, ParentMatrix);
   ParentMatrix := MatrixMultiply(FTransfMat, ParentMatrix);
 end;
 end;
 
 
-procedure TGLFile3DSFreeForm.CoordinateChanged(Sender: TGCustomCoordinates);
+procedure TGLFile3DSFreeForm.CoordinateChanged(Sender: TgCustomCoordinates);
 var
 var
   quat, quat1, quat2: TQuaternion;
   quat, quat1, quat2: TQuaternion;
 begin
 begin

+ 2 - 2
Source/GLS.FileASE.pas

@@ -802,14 +802,14 @@ var
   norm, tex, light: Boolean;
   norm, tex, light: Boolean;
   lmt: array [0..2] of TAffineVector;
   lmt: array [0..2] of TAffineVector;
   subID: Integer;
   subID: Integer;
-  vi: TGIntegerList;
+  vi: TgIntegerList;
 begin
 begin
   norm := aASEMesh.HasNormals;
   norm := aASEMesh.HasNormals;
   tex := aASEMesh.TextChannelsCount > 0;
   tex := aASEMesh.TextChannelsCount > 0;
   light := tex and (aASEMesh.TextChannelsCount > 1);
   light := tex and (aASEMesh.TextChannelsCount > 1);
   subID := -1;
   subID := -1;
 
 
-  vi := TGIntegerList.Create;
+  vi := TgIntegerList.Create;
   if tex or norm then begin
   if tex or norm then begin
     // here used NOT optimized storage
     // here used NOT optimized storage
 
 

+ 2 - 2
Source/GLS.FileGL2.pas

@@ -179,7 +179,7 @@ var
   quat: TQuaternion;
   quat: TQuaternion;
   pos: TAffineVector;
   pos: TAffineVector;
   basepose: TGLSkeletonFrame;
   basepose: TGLSkeletonFrame;
-  bonelist: TGIntegerList;
+  bonelist: TgIntegerList;
   bone: TGLSkeletonBone;
   bone: TGLSkeletonBone;
 
 
 begin
 begin
@@ -191,7 +191,7 @@ begin
 
 
     TGLActor(Owner).Reference := aarSkeleton;
     TGLActor(Owner).Reference := aarSkeleton;
 
 
-    bonelist := TGIntegerList.Create;
+    bonelist := TgIntegerList.Create;
     for i := 0 to GLAFile.AnimHeader.numBones - 1 do
     for i := 0 to GLAFile.AnimHeader.numBones - 1 do
       bonelist.Add(i);
       bonelist.Add(i);
     while bonelist.Count > 0 do
     while bonelist.Count > 0 do

+ 2 - 2
Source/GLS.FileLMTS.pas

@@ -131,7 +131,7 @@ var
   _4cc: Cardinal;
   _4cc: Cardinal;
   C: Integer;
   C: Integer;
   fName: string;
   fName: string;
-  vi: TGIntegerList;
+  vi: TgIntegerList;
   libmat: TGLLibmaterial;
   libmat: TGLLibmaterial;
   lmnames, matnames: TStringlist;
   lmnames, matnames: TStringlist;
   MatInfoHeader: array [0 .. 3] of AnsiChar;
   MatInfoHeader: array [0 .. 3] of AnsiChar;
@@ -144,7 +144,7 @@ begin
   MO := TGLMeshObject.CreateOwned(owner.MeshObjects);
   MO := TGLMeshObject.CreateOwned(owner.MeshObjects);
   MO.Mode := momFaceGroups;
   MO.Mode := momFaceGroups;
 
 
-  vi := TGIntegerList.create;
+  vi := TgIntegerList.create;
 
 
   LL := owner.LightmapLibrary;
   LL := owner.LightmapLibrary;
   ML := owner.MaterialLibrary;
   ML := owner.MaterialLibrary;

+ 6 - 6
Source/GLS.FileMD5.pas

@@ -30,7 +30,7 @@ type
     FBasePose: TGLSkeletonFrame;
     FBasePose: TGLSkeletonFrame;
     FFramePositions: TGAffineVectorList;
     FFramePositions: TGAffineVectorList;
     FFrameQuaternions: TGQuaternionList;
     FFrameQuaternions: TGQuaternionList;
-    FJointFlags: TGIntegerList;
+    FJointFlags: TgIntegerList;
     FNumFrames, FFirstFrame, FFrameRate, FNumJoints: Integer;
     FNumFrames, FFirstFrame, FFrameRate, FNumJoints: Integer;
     function ReadLine: String;
     function ReadLine: String;
   public
   public
@@ -202,16 +202,16 @@ procedure TGLMD5VectorFile.LoadFromStream(aStream: TStream);
     mesh: TGLSkeletonMeshObject;
     mesh: TGLSkeletonMeshObject;
     fg: TFGVertexIndexList;
     fg: TFGVertexIndexList;
     vnum, wnum, numverts, numweights: Integer;
     vnum, wnum, numverts, numweights: Integer;
-    VertexWeightID, VertexWeightCount, VertexBoneRef: TGIntegerList;
+    VertexWeightID, VertexWeightCount, VertexBoneRef: TgIntegerList;
     VertexWeight: TGSingleList;
     VertexWeight: TGSingleList;
     VertexWeighted: TGAffineVectorList;
     VertexWeighted: TGAffineVectorList;
     blendedVert, transformedVert: TAffineVector;
     blendedVert, transformedVert: TAffineVector;
     i, j, k: Integer;
     i, j, k: Integer;
     mat: TGLMatrix;
     mat: TGLMatrix;
   begin
   begin
-    VertexWeightID := TGIntegerList.Create;
-    VertexWeightCount := TGIntegerList.Create;
-    VertexBoneRef := TGIntegerList.Create;
+    VertexWeightID := TgIntegerList.Create;
+    VertexWeightCount := TgIntegerList.Create;
+    VertexBoneRef := TgIntegerList.Create;
     VertexWeight := TGSingleList.Create;
     VertexWeight := TGSingleList.Create;
     VertexWeighted := TGAffineVectorList.Create;
     VertexWeighted := TGAffineVectorList.Create;
 
 
@@ -332,7 +332,7 @@ procedure TGLMD5VectorFile.LoadFromStream(aStream: TStream);
   begin
   begin
     if not Assigned(FJointFlags) then
     if not Assigned(FJointFlags) then
     begin
     begin
-      FJointFlags := TGIntegerList.Create;
+      FJointFlags := TgIntegerList.Create;
       Assert(Owner.Skeleton.Frames.Count > 0,
       Assert(Owner.Skeleton.Frames.Count > 0,
         'The md5mesh file must be loaded before md5anim files!');
         'The md5mesh file must be loaded before md5anim files!');
       FJointFlags.Count := Owner.Skeleton.Frames[0].Position.Count;
       FJointFlags.Count := Owner.Skeleton.Frames[0].Position.Count;

+ 5 - 5
Source/GLS.FileOBJ.pas

@@ -154,7 +154,7 @@ type
   private
   private
     FMode: TOBJFGMode;
     FMode: TOBJFGMode;
     FName: string;
     FName: string;
-    FPolygonVertices: TGIntegerList;
+    FPolygonVertices: TgIntegerList;
     FCurrentVertexCount: integer;
     FCurrentVertexCount: integer;
     FShowNormals: boolean;
     FShowNormals: boolean;
     procedure PolygonComplete; (* Current polygon completed. Adds FCurrentVertexCount
     procedure PolygonComplete; (* Current polygon completed. Adds FCurrentVertexCount
@@ -174,7 +174,7 @@ type
     function TriangleCount: Integer; override;
     function TriangleCount: Integer; override;
     property Mode: TOBJFGMode read FMode write SetMode;
     property Mode: TOBJFGMode read FMode write SetMode;
     property Name: string read FName write FName;
     property Name: string read FName write FName;
-    property PolygonVertices: TGIntegerList read FPolygonVertices;
+    property PolygonVertices: TgIntegerList read FPolygonVertices;
     property ShowNormals: boolean read FShowNormals write FShowNormals;
     property ShowNormals: boolean read FShowNormals write FShowNormals;
   end;
   end;
 
 
@@ -211,7 +211,7 @@ begin
   Assert(VertexIndices.Count = 0, 'Decide on the mode before adding vertices.');
   Assert(VertexIndices.Count = 0, 'Decide on the mode before adding vertices.');
   FMode := aMode;
   FMode := aMode;
   if FMode = objfgmmPolygons then
   if FMode = objfgmmPolygons then
-    FPolygonVertices := TGIntegerList.Create
+    FPolygonVertices := TgIntegerList.Create
   else
   else
   begin
   begin
     FPolygonVertices.Free;
     FPolygonVertices.Free;
@@ -1388,7 +1388,7 @@ begin
     else
     else
     begin
     begin
       if FPolygonVertices = nil then
       if FPolygonVertices = nil then
-        FPolygonVertices := TGIntegerList.Create;
+        FPolygonVertices := TgIntegerList.Create;
       FPolygonVertices.Assign(TOBJFGVertexNormalTexIndexList(Source).FPolygonVertices);
       FPolygonVertices.Assign(TOBJFGVertexNormalTexIndexList(Source).FPolygonVertices);
     end;
     end;
   end
   end
@@ -1412,7 +1412,7 @@ begin
 
 
     if FMode = objfgmmPolygons then
     if FMode = objfgmmPolygons then
     begin
     begin
-      FPolygonVertices := TGIntegerList.Create;
+      FPolygonVertices := TgIntegerList.Create;
       FPolygonVertices.ReadFromFiler(reader);
       FPolygonVertices.ReadFromFiler(reader);
     end;  
     end;  
   end
   end

+ 11 - 11
Source/GLS.FileVRML.pas

@@ -36,7 +36,7 @@ implementation
 // ------------------------------------------------------------------
 // ------------------------------------------------------------------
 
 
 procedure TessellatePolygon(PolyVerts: TGAffineVectorList;
 procedure TessellatePolygon(PolyVerts: TGAffineVectorList;
-  PolyIndices, TriIndices: TGIntegerList);
+  PolyIndices, TriIndices: TgIntegerList);
 
 
   function IsPolyClockWise: Boolean;
   function IsPolyClockWise: Boolean;
   var
   var
@@ -79,10 +79,10 @@ var
   i, j, prev, next, min_vert, min_prev, min_next: Integer;
   i, j, prev, next, min_vert, min_prev, min_next: Integer;
   PolyCW, NoPointsInTriangle: Boolean;
   PolyCW, NoPointsInTriangle: Boolean;
   V: TAffineMatrix;
   V: TAffineMatrix;
-  temp: TGIntegerList;
+  temp: TgIntegerList;
   min_dist, d, area: Single;
   min_dist, d, area: Single;
 begin
 begin
-  temp := TGIntegerList.Create;
+  temp := TgIntegerList.Create;
   try
   try
     PolyCW := IsPolyClockWise;
     PolyCW := IsPolyClockWise;
     temp.Assign(PolyIndices);
     temp.Assign(PolyIndices);
@@ -242,11 +242,11 @@ var
     fg: TFGVertexNormalTexIndexList;
     fg: TFGVertexNormalTexIndexList;
     vertices, normals, texcoords, triNormals, newVertices, newNormals,
     vertices, normals, texcoords, triNormals, newVertices, newNormals,
       newTexCoords: TGAffineVectorList;
       newTexCoords: TGAffineVectorList;
-    optimized: TGIntegerList;
+    optimized: TgIntegerList;
     cosAngle: Single;
     cosAngle: Single;
     normal: TAffineVector;
     normal: TAffineVector;
     s, t: array [0 .. 2] of Integer;
     s, t: array [0 .. 2] of Integer;
-    n: array [0 .. 2] of TGIntegerList;
+    n: array [0 .. 2] of TgIntegerList;
     smooth, hasVertices, hasNormals, hasNormalIndices, hasTexCoords,
     smooth, hasVertices, hasNormals, hasNormalIndices, hasTexCoords,
       hasTexCoordIndices: Boolean;
       hasTexCoordIndices: Boolean;
   begin
   begin
@@ -267,9 +267,9 @@ var
     newNormals := TGAffineVectorList.Create;
     newNormals := TGAffineVectorList.Create;
     newTexCoords := TGAffineVectorList.Create;
     newTexCoords := TGAffineVectorList.Create;
     triNormals := TGAffineVectorList.Create;
     triNormals := TGAffineVectorList.Create;
-    n[0] := TGIntegerList.Create;
-    n[1] := TGIntegerList.Create;
-    n[2] := TGIntegerList.Create;
+    n[0] := TgIntegerList.Create;
+    n[1] := TgIntegerList.Create;
+    n[2] := TgIntegerList.Create;
     for i := 0 to mesh.FaceGroups.Count - 1 do
     for i := 0 to mesh.FaceGroups.Count - 1 do
     begin
     begin
       fg := TFGVertexNormalTexIndexList(mesh.FaceGroups[i]);
       fg := TFGVertexNormalTexIndexList(mesh.FaceGroups[i]);
@@ -439,9 +439,9 @@ var
   var
   var
     i, j, n: Integer;
     i, j, n: Integer;
     points: TGSingleList;
     points: TGSingleList;
-    indices, fgindices: TGIntegerList;
+    indices, fgindices: TgIntegerList;
     fg: TFGVertexNormalTexIndexList;
     fg: TFGVertexNormalTexIndexList;
-    face: TGIntegerList;
+    face: TgIntegerList;
     tempLibMat: TGLLibMaterial;
     tempLibMat: TGLLibMaterial;
     saveTransform, mat: TGLMatrix;
     saveTransform, mat: TGLMatrix;
     saveMaterial: TGLLibMaterial;
     saveMaterial: TGLLibMaterial;
@@ -522,7 +522,7 @@ var
     begin
     begin
       fg := TFGVertexNormalTexIndexList.CreateOwned(mesh.FaceGroups);
       fg := TFGVertexNormalTexIndexList.CreateOwned(mesh.FaceGroups);
       mesh.Mode := momFaceGroups;
       mesh.Mode := momFaceGroups;
-      face := TGIntegerList.Create;
+      face := TgIntegerList.Create;
       if Assigned(currentMaterial) then
       if Assigned(currentMaterial) then
         fg.MaterialName := currentMaterial.Name;
         fg.MaterialName := currentMaterial.Name;
       for n := 0 to node.Count - 1 do
       for n := 0 to node.Count - 1 do

+ 10 - 10
Source/GLS.FireFX.pas

@@ -17,7 +17,7 @@ uses
 
 
   GLScene.OpenGLTokens,
   GLScene.OpenGLTokens,
   GLS.Scene,
   GLS.Scene,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLScene.XCollection,
   GLScene.XCollection,
   GLScene.VectorGeometry,
   GLScene.VectorGeometry,
   GLS.Context,
   GLS.Context,
@@ -52,7 +52,7 @@ type
   private
   private
     FClients: TList;
     FClients: TList;
     FFireParticles: PGLFireParticleArray;
     FFireParticles: PGLFireParticleArray;
-    FFireDir, FInitialDir: TGCoordinates;
+    FFireDir, FInitialDir: TgCoordinates;
     FCadencer: TGLCadencer;
     FCadencer: TGLCadencer;
     FMaxParticles, FParticleLife: Integer;
     FMaxParticles, FParticleLife: Integer;
     FParticleSize, FFireDensity, FFireEvaporation: Single;
     FParticleSize, FFireDensity, FFireEvaporation: Single;
@@ -67,8 +67,8 @@ type
     procedure RegisterClient(aClient: TGLBFireFX);
     procedure RegisterClient(aClient: TGLBFireFX);
     procedure DeRegisterClient(aClient: TGLBFireFX);
     procedure DeRegisterClient(aClient: TGLBFireFX);
     procedure DeRegisterAllClients;
     procedure DeRegisterAllClients;
-    procedure SetFireDir(const val: TGCoordinates);
-    procedure SetInitialDir(const val: TGCoordinates);
+    procedure SetFireDir(const val: TgCoordinates);
+    procedure SetInitialDir(const val: TgCoordinates);
     procedure SetCadencer(const val: TGLCadencer);
     procedure SetCadencer(const val: TGLCadencer);
     function StoreParticleSize: Boolean;
     function StoreParticleSize: Boolean;
     procedure SetInnerColor(const val: TGColor);
     procedure SetInnerColor(const val: TGColor);
@@ -100,9 +100,9 @@ type
     procedure DoProgress(const progressTime: TGProgressTimes); override;
     procedure DoProgress(const progressTime: TGProgressTimes); override;
   published
   published
     // Adjusts the acceleration direction (abs coordinates).
     // Adjusts the acceleration direction (abs coordinates).
-    property FireDir: TGCoordinates read FFireDir write SetFireDir;
+    property FireDir: TgCoordinates read FFireDir write SetFireDir;
     // Adjusts the initial direction (abs coordinates).
     // Adjusts the initial direction (abs coordinates).
-    property InitialDir: TGCoordinates read FInitialDir write SetInitialDir;
+    property InitialDir: TgCoordinates read FInitialDir write SetInitialDir;
     // The cadencer that will "drive" the animation of the system.
     // The cadencer that will "drive" the animation of the system.
     property Cadencer: TGLCadencer read FCadencer write SetCadencer;
     property Cadencer: TGLCadencer read FCadencer write SetCadencer;
     // Maximum number of simultaneous particles in the system.
     // Maximum number of simultaneous particles in the system.
@@ -210,8 +210,8 @@ begin
   inherited Create(AOwner);
   inherited Create(AOwner);
   FClients := TList.Create;
   FClients := TList.Create;
   RegisterManager(Self);
   RegisterManager(Self);
-  FFireDir := TGCoordinates.CreateInitialized(Self, VectorMake(0, 0.5, 0), csPoint);
-  FInitialDir := TGCoordinates.CreateInitialized(Self, YHmgVector, csPoint);
+  FFireDir := TgCoordinates.CreateInitialized(Self, VectorMake(0, 0.5, 0), csPoint);
+  FInitialDir := TgCoordinates.CreateInitialized(Self, YHmgVector, csPoint);
   FMaxParticles := 256;
   FMaxParticles := 256;
   FParticleSize := 1.0;
   FParticleSize := 1.0;
   FInnerColor := TGColor.Create(Self);
   FInnerColor := TGColor.Create(Self);
@@ -280,13 +280,13 @@ begin
 end;
 end;
 
 
 
 
-procedure TGLFireFXManager.SetFireDir(const val: TGCoordinates);
+procedure TGLFireFXManager.SetFireDir(const val: TgCoordinates);
 begin
 begin
   FFireDir.Assign(val);
   FFireDir.Assign(val);
 end;
 end;
 
 
 
 
-procedure TGLFireFXManager.SetInitialDir(const val: TGCoordinates);
+procedure TGLFireFXManager.SetInitialDir(const val: TgCoordinates);
 begin
 begin
   FInitialDir.Assign(val);
   FInitialDir.Assign(val);
 end;
 end;

+ 1 - 1
Source/GLS.GeomObjects.pas

@@ -24,7 +24,7 @@ uses
   GLScene.OpenGLTokens,
   GLScene.OpenGLTokens,
   GLScene.VectorTypes,
   GLScene.VectorTypes,
   GLScene.VectorGeometry,
   GLScene.VectorGeometry,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLScene.Polynomials,
   GLScene.Polynomials,
 
 
   GLS.Scene,
   GLS.Scene,

+ 5 - 5
Source/GLS.Gizmo.pas

@@ -63,12 +63,12 @@ type
   TGLGizmoUndoItem = class(TCollectionItem)
   TGLGizmoUndoItem = class(TCollectionItem)
   private
   private
     FOldLibMaterialName: string;
     FOldLibMaterialName: string;
-    FOldAutoScaling: TGCoordinates;
+    FOldAutoScaling: TgCoordinates;
     FEffectedObject: TGLCustomSceneObject;
     FEffectedObject: TGLCustomSceneObject;
     FOldMatr: TGLMatrix;
     FOldMatr: TGLMatrix;
     FOldMatrix: TGLMatrix;
     FOldMatrix: TGLMatrix;
     procedure SetEffectedObject(const Value: TGLCustomSceneObject);
     procedure SetEffectedObject(const Value: TGLCustomSceneObject);
-    procedure SetOldAutoScaling(const Value: TGCoordinates);
+    procedure SetOldAutoScaling(const Value: TgCoordinates);
     procedure SetOldMatrix(const Value: TGLMatrix);
     procedure SetOldMatrix(const Value: TGLMatrix);
   protected
   protected
     procedure DoUndo; virtual;
     procedure DoUndo; virtual;
@@ -85,7 +85,7 @@ type
   published
   published
     property EffectedObject: TGLCustomSceneObject read FEffectedObject
     property EffectedObject: TGLCustomSceneObject read FEffectedObject
       write SetEffectedObject;
       write SetEffectedObject;
-    property OldAutoScaling: TGCoordinates read FOldAutoScaling
+    property OldAutoScaling: TgCoordinates read FOldAutoScaling
       write SetOldAutoScaling;
       write SetOldAutoScaling;
     property OldLibMaterialName: string read FOldLibMaterialName
     property OldLibMaterialName: string read FOldLibMaterialName
       write FOldLibMaterialName;
       write FOldLibMaterialName;
@@ -1717,7 +1717,7 @@ end;
 constructor TGLGizmoUndoItem.Create(AOwner: TCollection);
 constructor TGLGizmoUndoItem.Create(AOwner: TCollection);
 begin
 begin
   inherited;
   inherited;
-  FOldAutoScaling := TGCoordinates.CreateInitialized(Self,
+  FOldAutoScaling := TgCoordinates.CreateInitialized(Self,
     NullHmgVector, CsPoint);
     NullHmgVector, CsPoint);
 end;
 end;
 
 
@@ -1768,7 +1768,7 @@ begin
     FEffectedObject.FreeNotification(GetGizmo);
     FEffectedObject.FreeNotification(GetGizmo);
 end;
 end;
 
 
-procedure TGLGizmoUndoItem.SetOldAutoScaling(const Value: TGCoordinates);
+procedure TGLGizmoUndoItem.SetOldAutoScaling(const Value: TgCoordinates);
 begin
 begin
   FOldAutoScaling.Assign(Value);
   FOldAutoScaling.Assign(Value);
 end;
 end;

+ 1 - 1
Source/GLS.GizmoEx.pas

@@ -464,7 +464,7 @@ implementation
 
 
 uses
 uses
   GLS.Context,
   GLS.Context,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
 
 
   GLScene.OpenGLTokens;
   GLScene.OpenGLTokens;
 
 

+ 1 - 1
Source/GLS.Graphics.pas

@@ -321,7 +321,7 @@ type
   end;
   end;
 
 
   // Stores registered raster file formats.
   // Stores registered raster file formats.
-  TGLRasterFileFormatsList = class(TGPersistentObjectList)
+  TGLRasterFileFormatsList = class(TgPersistentObjectList)
   public
   public
     destructor Destroy; override;
     destructor Destroy; override;
     procedure Add(const Ext, Desc: string; DescID: Integer; AClass:
     procedure Add(const Ext, Desc: string; DescID: Integer; AClass:

+ 9 - 9
Source/GLS.Gui.pas

@@ -79,9 +79,9 @@ type
 
 
   TGLGuiElement = class(TCollectionItem)
   TGLGuiElement = class(TCollectionItem)
   private
   private
-    FTopLeft: TGCoordinates2;
-    FBottomRight: TGCoordinates2;
-    FScale: TGCoordinates2;
+    FTopLeft: TgCoordinates2;
+    FBottomRight: TgCoordinates2;
+    FScale: TgCoordinates2;
     FAlign: TGUIAlignments;
     FAlign: TGUIAlignments;
     FName: TGLGuiElementName;
     FName: TGLGuiElementName;
   protected
   protected
@@ -92,9 +92,9 @@ type
     destructor Destroy; override;
     destructor Destroy; override;
     procedure AssignTo(Dest: TPersistent); override;
     procedure AssignTo(Dest: TPersistent); override;
   published
   published
-    property TopLeft: TGCoordinates2 read FTopLeft write FTopLeft;
-    property BottomRight: TGCoordinates2 read FBottomRight write FBottomRight;
-    property Scale: TGCoordinates2 read FScale write FScale;
+    property TopLeft: TgCoordinates2 read FTopLeft write FTopLeft;
+    property BottomRight: TgCoordinates2 read FBottomRight write FBottomRight;
+    property Scale: TgCoordinates2 read FScale write FScale;
     property Align: TGUIAlignments read FAlign write FAlign;
     property Align: TGUIAlignments read FAlign write FAlign;
     property Name: TGLGuiElementName read FName write SetName;
     property Name: TGLGuiElementName read FName write SetName;
   end;
   end;
@@ -1166,10 +1166,10 @@ end;
 constructor TGLGuiElement.Create(Collection: TCollection);
 constructor TGLGuiElement.Create(Collection: TCollection);
 begin
 begin
   inherited;
   inherited;
-  FTopLeft := TGCoordinates2.CreateInitialized(Self, NullHmgVector, csPoint2D);
-  FBottomRight := TGCoordinates2.CreateInitialized(Self, NullHmgVector,
+  FTopLeft := TgCoordinates2.CreateInitialized(Self, NullHmgVector, csPoint2D);
+  FBottomRight := TgCoordinates2.CreateInitialized(Self, NullHmgVector,
     csPoint2D);
     csPoint2D);
-  FScale := TGCoordinates2.CreateInitialized(Self, XYHmgVector, csPoint2D);
+  FScale := TgCoordinates2.CreateInitialized(Self, XYHmgVector, csPoint2D);
 end;
 end;
 
 
 destructor TGLGuiElement.Destroy;
 destructor TGLGuiElement.Destroy;

+ 9 - 9
Source/GLS.Imposter.pas

@@ -23,7 +23,7 @@ uses
   GLScene.VectorTypes,
   GLScene.VectorTypes,
   GLScene.VectorGeometry,
   GLScene.VectorGeometry,
   GLScene.PersistentClasses,
   GLScene.PersistentClasses,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLS.Graphics,
   GLS.Graphics,
   GLScene.Color,
   GLScene.Color,
   GLS.RenderContextInfo,
   GLS.RenderContextInfo,
@@ -114,8 +114,8 @@ type
   TGLImposterBuilder = class(TGUpdateAbleComponent)
   TGLImposterBuilder = class(TGUpdateAbleComponent)
   private
   private
     FBackColor: TGColor;
     FBackColor: TGColor;
-    FBuildOffset: TGCoordinates;
-    FImposterRegister: TGPersistentObjectList;
+    FBuildOffset: TgCoordinates;
+    FImposterRegister: TgPersistentObjectList;
     FRenderPoint: TGLRenderPoint;
     FRenderPoint: TGLRenderPoint;
     FImposterOptions: TImposterOptions;
     FImposterOptions: TImposterOptions;
     FAlphaTreshold: Single;
     FAlphaTreshold: Single;
@@ -126,10 +126,10 @@ type
     procedure SetRenderPoint(AValue: TGLRenderPoint);
     procedure SetRenderPoint(AValue: TGLRenderPoint);
     procedure RenderPointFreed(Sender: TObject);
     procedure RenderPointFreed(Sender: TObject);
     procedure SetBackColor(AValue: TGColor);
     procedure SetBackColor(AValue: TGColor);
-    procedure SetBuildOffset(AValue: TGCoordinates);
+    procedure SetBuildOffset(AValue: TgCoordinates);
     procedure SetImposterReference(AValue: TImposterReference);
     procedure SetImposterReference(AValue: TImposterReference);
     procedure InitializeImpostorTexture(const TextureSize: TPoint);
     procedure InitializeImpostorTexture(const TextureSize: TPoint);
-    property ImposterRegister: TGPersistentObjectList read FImposterRegister;
+    property ImposterRegister: TgPersistentObjectList read FImposterRegister;
     procedure UnregisterImposter(imposter: TImposter);
     procedure UnregisterImposter(imposter: TImposter);
     function CreateNewImposter: TImposter; virtual;
     function CreateNewImposter: TImposter; virtual;
     procedure PrepareImposters(Sender: TObject; var rci: TGLRenderContextInfo);
     procedure PrepareImposters(Sender: TObject; var rci: TGLRenderContextInfo);
@@ -166,7 +166,7 @@ type
     property BackColor: TGColor read FBackColor write SetBackColor;
     property BackColor: TGColor read FBackColor write SetBackColor;
     (* Offset applied to the impostor'ed object during imposter construction.
     (* Offset applied to the impostor'ed object during imposter construction.
        Can be used to manually tune the centering of objects. *)
        Can be used to manually tune the centering of objects. *)
-    property BuildOffset: TGCoordinates read FBuildOffset write SetBuildOffset;
+    property BuildOffset: TgCoordinates read FBuildOffset write SetBuildOffset;
     // Imposter rendering options.
     // Imposter rendering options.
     property ImposterOptions: TImposterOptions read FImposterOptions write
     property ImposterOptions: TImposterOptions read FImposterOptions write
       FImposterOptions default cDefaultImposterOptions;
       FImposterOptions default cDefaultImposterOptions;
@@ -547,9 +547,9 @@ end;
 constructor TGLImposterBuilder.Create(AOwner: TComponent);
 constructor TGLImposterBuilder.Create(AOwner: TComponent);
 begin
 begin
   inherited;
   inherited;
-  FImposterRegister := TGPersistentObjectList.Create;
+  FImposterRegister := TgPersistentObjectList.Create;
   FBackColor := TGColor.CreateInitialized(Self, clrTransparent);
   FBackColor := TGColor.CreateInitialized(Self, clrTransparent);
-  FBuildOffset := TGCoordinates.CreateInitialized(Self, NullHmgPoint, CsPoint);
+  FBuildOffset := TgCoordinates.CreateInitialized(Self, NullHmgPoint, CsPoint);
   FImposterOptions := cDefaultImposterOptions;
   FImposterOptions := cDefaultImposterOptions;
   FAlphaTreshold := 0.5;
   FAlphaTreshold := 0.5;
 end;
 end;
@@ -718,7 +718,7 @@ begin
   FBackColor.Assign(AValue);
   FBackColor.Assign(AValue);
 end;
 end;
 
 
-procedure TGLImposterBuilder.SetBuildOffset(AValue: TGCoordinates);
+procedure TGLImposterBuilder.SetBuildOffset(AValue: TgCoordinates);
 begin
 begin
   FBuildOffset.Assign(AValue);
   FBuildOffset.Assign(AValue);
 end;
 end;

+ 11 - 10
Source/GLS.Joystick.pas

@@ -3,7 +3,10 @@
 //
 //
 unit GLS.Joystick;
 unit GLS.Joystick;
 
 
-(* Component for handling joystick messages *)
+(*
+  Component for handling joystick messages
+  Registered components: [TGLJoystick];
+*)
 
 
 interface
 interface
 
 
@@ -80,17 +83,15 @@ type
       write FOnJoystickMove;
       write FOnJoystickMove;
   end;
   end;
 
 
-// ---------------------------------------------------------------------
-implementation
-// ---------------------------------------------------------------------
+implementation // ------------------------------------------------------------
 
 
 const
 const
   cJoystickIDToNative: array [jidNoJoystick .. jidJoystick2] of Byte = (9,
   cJoystickIDToNative: array [jidNoJoystick .. jidJoystick2] of Byte = (9,
     JOYSTICKID1, JOYSTICKID2);
     JOYSTICKID1, JOYSTICKID2);
 
 
-// ------------------
-// ------------------ TJoystick ------------------
-// ------------------
+  // ------------------
+  // ------------------ TJoystick ------------------
+  // ------------------
 
 
 constructor TGLJoystick.Create(AOwner: TComponent);
 constructor TGLJoystick.Create(AOwner: TComponent);
 begin
 begin
@@ -402,10 +403,10 @@ begin
   MakeJoyButtons(Buttons);
   MakeJoyButtons(Buttons);
 end;
 end;
 
 
-//------------------------------------
-initialization
-//------------------------------------
+initialization // ------------------------------------------------------------
 
 
 RegisterClasses([TGLJoystick]);
 RegisterClasses([TGLJoystick]);
 
 
+finalization // --------------------------------------------------------------
+
 end.
 end.

+ 5 - 2
Source/GLS.LensFlare.pas

@@ -3,7 +3,10 @@
 //
 //
 unit GLS.LensFlare;
 unit GLS.LensFlare;
 
 
-(* Lens flare object. *)
+(*
+  Lens flare object.
+  Registered components: [TGLLensFlare]
+*)
 
 
 interface
 interface
 
 
@@ -23,7 +26,7 @@ uses
   GLScene.VectorTypes,
   GLScene.VectorTypes,
 
 
   GLS.Scene,
   GLS.Scene,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLS.Objects,
   GLS.Objects,
   GLS.Context,
   GLS.Context,
   GLScene.Color,
   GLScene.Color,

+ 9 - 9
Source/GLS.Material.pas

@@ -457,7 +457,7 @@ type
   TGLLibMaterial = class(TGLAbstractLibMaterial, IGLTextureNotifyAble)
   TGLLibMaterial = class(TGLAbstractLibMaterial, IGLTextureNotifyAble)
   private
   private
     FMaterial: TGLMaterial;
     FMaterial: TGLMaterial;
-    FTextureOffset, FTextureScale: TGCoordinates;
+    FTextureOffset, FTextureScale: TgCoordinates;
     FTextureRotate: Single;
     FTextureRotate: Single;
     FTextureMatrixIsIdentity: Boolean;
     FTextureMatrixIsIdentity: Boolean;
     FTextureOverride: Boolean;
     FTextureOverride: Boolean;
@@ -468,8 +468,8 @@ type
   protected
   protected
     procedure Loaded; override;
     procedure Loaded; override;
     procedure SetMaterial(const val: TGLMaterial);
     procedure SetMaterial(const val: TGLMaterial);
-    procedure SetTextureOffset(const val: TGCoordinates);
-    procedure SetTextureScale(const val: TGCoordinates);
+    procedure SetTextureOffset(const val: TgCoordinates);
+    procedure SetTextureScale(const val: TgCoordinates);
     procedure SetTextureMatrix(const Value: TGLMatrix);
     procedure SetTextureMatrix(const Value: TGLMatrix);
     procedure SetTexture2Name(const val: TGLLibMaterialName);
     procedure SetTexture2Name(const val: TGLLibMaterialName);
     procedure SetShader(const val: TGLShader);
     procedure SetShader(const val: TGLShader);
@@ -495,13 +495,13 @@ type
   published
   published
     property Material: TGLMaterial read FMaterial write SetMaterial;
     property Material: TGLMaterial read FMaterial write SetMaterial;
     // Texture offset in texture coordinates. The offset is applied after scaling
     // Texture offset in texture coordinates. The offset is applied after scaling
-    property TextureOffset: TGCoordinates read FTextureOffset write
+    property TextureOffset: TgCoordinates read FTextureOffset write
       SetTextureOffset;
       SetTextureOffset;
     (* Texture coordinates scaling.
     (* Texture coordinates scaling.
        Scaling is applied <i>before</i> applying the offset, and is applied
        Scaling is applied <i>before</i> applying the offset, and is applied
        to the texture coordinates, meaning that a scale factor of (2, 2, 2)
        to the texture coordinates, meaning that a scale factor of (2, 2, 2)
        will make your texture look twice smaller *)
        will make your texture look twice smaller *)
-    property TextureScale: TGCoordinates read FTextureScale write
+    property TextureScale: TgCoordinates read FTextureScale write
       SetTextureScale;
       SetTextureScale;
     property TextureRotate: Single read FTextureRotate write
     property TextureRotate: Single read FTextureRotate write
       SetTextureRotate stored StoreTextureRotate;
       SetTextureRotate stored StoreTextureRotate;
@@ -1741,9 +1741,9 @@ begin
   inherited Create(ACollection);
   inherited Create(ACollection);
   FMaterial := TGLMaterial.Create(Self);
   FMaterial := TGLMaterial.Create(Self);
   FMaterial.Texture.OnTextureNeeded := DoOnTextureNeeded;
   FMaterial.Texture.OnTextureNeeded := DoOnTextureNeeded;
-  FTextureOffset := TGCoordinates.CreateInitialized(Self, NullHmgVector, csPoint);
+  FTextureOffset := TgCoordinates.CreateInitialized(Self, NullHmgVector, csPoint);
   FTextureOffset.OnNotifyChange := OnNotifyChange;
   FTextureOffset.OnNotifyChange := OnNotifyChange;
-  FTextureScale := TGCoordinates.CreateInitialized(Self, XYZHmgVector, csPoint);
+  FTextureScale := TgCoordinates.CreateInitialized(Self, XYZHmgVector, csPoint);
   FTextureScale.OnNotifyChange := OnNotifyChange;
   FTextureScale.OnNotifyChange := OnNotifyChange;
   FTextureRotate := 0;
   FTextureRotate := 0;
   FTextureOverride := False;
   FTextureOverride := False;
@@ -1957,13 +1957,13 @@ begin
   FMaterial.Assign(val);
   FMaterial.Assign(val);
 end;
 end;
 
 
-procedure TGLLibMaterial.SetTextureOffset(const val: TGCoordinates);
+procedure TGLLibMaterial.SetTextureOffset(const val: TgCoordinates);
 begin
 begin
   FTextureOffset.AsVector := val.AsVector;
   FTextureOffset.AsVector := val.AsVector;
   CalculateTextureMatrix;
   CalculateTextureMatrix;
 end;
 end;
 
 
-procedure TGLLibMaterial.SetTextureScale(const val: TGCoordinates);
+procedure TGLLibMaterial.SetTextureScale(const val: TgCoordinates);
 begin
 begin
   FTextureScale.AsVector := val.AsVector;
   FTextureScale.AsVector := val.AsVector;
   CalculateTextureMatrix;
   CalculateTextureMatrix;

+ 53 - 53
Source/GLS.MaterialEx.pas

@@ -30,7 +30,7 @@ uses
 
 
   GLScene.OpenGLTokens,
   GLScene.OpenGLTokens,
   GLS.RenderContextInfo,
   GLS.RenderContextInfo,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLScene.BaseClasses,
   GLScene.BaseClasses,
   GLS.Context,
   GLS.Context,
   GLScene.VectorTypes,
   GLScene.VectorTypes,
@@ -73,16 +73,16 @@ type
       IGLMaterialLibrarySupported)
       IGLMaterialLibrarySupported)
   private
   private
     FNameHashKey: Integer;
     FNameHashKey: Integer;
-    FUserList: TGPersistentObjectList;
+    FUserList: TgPersistentObjectList;
     FDefferedInit: Boolean;
     FDefferedInit: Boolean;
     FNotifying: Boolean;
     FNotifying: Boolean;
     FIsValid: Boolean;
     FIsValid: Boolean;
-    function GetUserList: TGPersistentObjectList;
+    function GetUserList: TgPersistentObjectList;
     function GetMaterialLibraryEx: TGLMaterialLibraryEx;
     function GetMaterialLibraryEx: TGLMaterialLibraryEx;
   protected
   protected
     procedure SetName(const AValue: TGLMaterialComponentName); override;
     procedure SetName(const AValue: TGLMaterialComponentName); override;
     procedure NotifyChange(Sender: TObject); virtual;
     procedure NotifyChange(Sender: TObject); virtual;
-    property UserList: TGPersistentObjectList read GetUserList;
+    property UserList: TgPersistentObjectList read GetUserList;
     procedure DoOnPrepare(Sender: TGLContext); virtual; abstract;
     procedure DoOnPrepare(Sender: TGLContext); virtual; abstract;
   public
   public
     destructor Destroy; override;
     destructor Destroy; override;
@@ -403,43 +403,43 @@ type
     FLibSamplerName: TGLMaterialComponentName;
     FLibSamplerName: TGLMaterialComponentName;
     FLibTexture: TGLAbstractTexture;
     FLibTexture: TGLAbstractTexture;
     FLibSampler: TGLTextureSampler;
     FLibSampler: TGLTextureSampler;
-    FTextureOffset, FTextureScale: TGCoordinates;
+    FTextureOffset, FTextureScale: TgCoordinates;
     FTextureRotate: Single;
     FTextureRotate: Single;
     FTextureMatrixIsIdentity: Boolean;
     FTextureMatrixIsIdentity: Boolean;
     FTextureOverride: Boolean;
     FTextureOverride: Boolean;
     FTextureMatrix: TGLMatrix;
     FTextureMatrix: TGLMatrix;
     FMappingMode: TGLTextureMappingMode;
     FMappingMode: TGLTextureMappingMode;
     FEnvColor: TGColor;
     FEnvColor: TGColor;
-    FMapSCoordinates: TGCoordinates4;
-    FMapTCoordinates: TGCoordinates4;
-    FMapRCoordinates: TGCoordinates4;
-    FMapQCoordinates: TGCoordinates4;
+    FMapSCoordinates: TgCoordinates4;
+    FMapTCoordinates: TgCoordinates4;
+    FMapRCoordinates: TgCoordinates4;
+    FMapQCoordinates: TgCoordinates4;
     FSwizzling: TGLTextureSwizzling;
     FSwizzling: TGLTextureSwizzling;
     function GetLibTextureName: TGLMaterialComponentName;
     function GetLibTextureName: TGLMaterialComponentName;
     function GetLibSamplerName: TGLMaterialComponentName;
     function GetLibSamplerName: TGLMaterialComponentName;
     procedure SetLibTextureName(const AValue: TGLMaterialComponentName);
     procedure SetLibTextureName(const AValue: TGLMaterialComponentName);
     procedure SetLibSamplerName(const AValue: TGLMaterialComponentName);
     procedure SetLibSamplerName(const AValue: TGLMaterialComponentName);
-    function GetTextureOffset: TGCoordinates;
-    procedure SetTextureOffset(const AValue: TGCoordinates);
+    function GetTextureOffset: TgCoordinates;
+    procedure SetTextureOffset(const AValue: TgCoordinates);
     function StoreTextureOffset: Boolean;
     function StoreTextureOffset: Boolean;
-    function GetTextureScale: TGCoordinates;
-    procedure SetTextureScale(const AValue: TGCoordinates);
+    function GetTextureScale: TgCoordinates;
+    procedure SetTextureScale(const AValue: TgCoordinates);
     function StoreTextureScale: Boolean;
     function StoreTextureScale: Boolean;
     procedure SetTextureMatrix(const AValue: TGLMatrix);
     procedure SetTextureMatrix(const AValue: TGLMatrix);
     procedure SetTextureRotate(AValue: Single);
     procedure SetTextureRotate(AValue: Single);
     function StoreTextureRotate: Boolean;
     function StoreTextureRotate: Boolean;
     procedure SetMappingMode(const AValue: TGLTextureMappingMode);
     procedure SetMappingMode(const AValue: TGLTextureMappingMode);
-    function GetMappingSCoordinates: TGCoordinates4;
-    procedure SetMappingSCoordinates(const AValue: TGCoordinates4);
+    function GetMappingSCoordinates: TgCoordinates4;
+    procedure SetMappingSCoordinates(const AValue: TgCoordinates4);
     function StoreMappingSCoordinates: Boolean;
     function StoreMappingSCoordinates: Boolean;
-    function GetMappingTCoordinates: TGCoordinates4;
-    procedure SetMappingTCoordinates(const AValue: TGCoordinates4);
+    function GetMappingTCoordinates: TgCoordinates4;
+    procedure SetMappingTCoordinates(const AValue: TgCoordinates4);
     function StoreMappingTCoordinates: Boolean;
     function StoreMappingTCoordinates: Boolean;
-    function GetMappingRCoordinates: TGCoordinates4;
-    procedure SetMappingRCoordinates(const AValue: TGCoordinates4);
+    function GetMappingRCoordinates: TgCoordinates4;
+    procedure SetMappingRCoordinates(const AValue: TgCoordinates4);
     function StoreMappingRCoordinates: Boolean;
     function StoreMappingRCoordinates: Boolean;
-    function GetMappingQCoordinates: TGCoordinates4;
-    procedure SetMappingQCoordinates(const AValue: TGCoordinates4);
+    function GetMappingQCoordinates: TgCoordinates4;
+    procedure SetMappingQCoordinates(const AValue: TgCoordinates4);
     function StoreMappingQCoordinates: Boolean;
     function StoreMappingQCoordinates: Boolean;
     procedure SetSwizzling(const AValue: TGLTextureSwizzling);
     procedure SetSwizzling(const AValue: TGLTextureSwizzling);
     function StoreSwizzling: Boolean;
     function StoreSwizzling: Boolean;
@@ -464,13 +464,13 @@ type
       write SetLibTextureName;
       write SetLibTextureName;
     property LibSamplerName: TGLMaterialComponentName read GetLibSamplerName
     property LibSamplerName: TGLMaterialComponentName read GetLibSamplerName
       write SetLibSamplerName;
       write SetLibSamplerName;
-    property TextureOffset: TGCoordinates read GetTextureOffset write
+    property TextureOffset: TgCoordinates read GetTextureOffset write
       SetTextureOffset stored StoreTextureOffset;
       SetTextureOffset stored StoreTextureOffset;
     (* Texture coordinates scaling.
     (* Texture coordinates scaling.
        Scaling is applied before applying the offset, and is applied
        Scaling is applied before applying the offset, and is applied
        to the texture coordinates, meaning that a scale factor of (2, 2, 2)
        to the texture coordinates, meaning that a scale factor of (2, 2, 2)
        will make your texture look twice smaller. *)
        will make your texture look twice smaller. *)
-    property TextureScale: TGCoordinates read GetTextureScale write
+    property TextureScale: TgCoordinates read GetTextureScale write
       SetTextureScale stored StoreTextureScale;
       SetTextureScale stored StoreTextureScale;
     (* Texture coordinates rotating.
     (* Texture coordinates rotating.
        Rotating is applied after applying offset and scale,
        Rotating is applied after applying offset and scale,
@@ -486,13 +486,13 @@ type
     (* Texture mapping coordinates mode for S, T, R and Q axis.
     (* Texture mapping coordinates mode for S, T, R and Q axis.
     This property stores the coordinates for automatic texture
     This property stores the coordinates for automatic texture
     coordinates generation. *)
     coordinates generation. *)
-    property MappingSCoordinates: TGCoordinates4 read GetMappingSCoordinates
+    property MappingSCoordinates: TgCoordinates4 read GetMappingSCoordinates
       write SetMappingSCoordinates stored StoreMappingSCoordinates;
       write SetMappingSCoordinates stored StoreMappingSCoordinates;
-    property MappingTCoordinates: TGCoordinates4 read GetMappingTCoordinates
+    property MappingTCoordinates: TgCoordinates4 read GetMappingTCoordinates
       write SetMappingTCoordinates stored StoreMappingTCoordinates;
       write SetMappingTCoordinates stored StoreMappingTCoordinates;
-    property MappingRCoordinates: TGCoordinates4 read GetMappingRCoordinates
+    property MappingRCoordinates: TgCoordinates4 read GetMappingRCoordinates
       write SetMappingRCoordinates stored StoreMappingRCoordinates;
       write SetMappingRCoordinates stored StoreMappingRCoordinates;
-    property MappingQCoordinates: TGCoordinates4 read GetMappingQCoordinates
+    property MappingQCoordinates: TgCoordinates4 read GetMappingQCoordinates
       write SetMappingQCoordinates stored StoreMappingQCoordinates;
       write SetMappingQCoordinates stored StoreMappingQCoordinates;
     // Texture color fetching parameters.
     // Texture color fetching parameters.
     property Swizzling: TGLTextureSwizzling read FSwizzling write
     property Swizzling: TGLTextureSwizzling read FSwizzling write
@@ -892,12 +892,12 @@ type
     FShaders: array[TGLShaderType] of TGLShaderEx;
     FShaders: array[TGLShaderType] of TGLShaderEx;
     FIsValid: Boolean;
     FIsValid: Boolean;
     FInfoLog: string;
     FInfoLog: string;
-    FUniforms: TGPersistentObjectList;
+    FUniforms: TgPersistentObjectList;
     FAutoFill: Boolean;
     FAutoFill: Boolean;
     function GetLibShaderName(AType: TGLShaderType): string;
     function GetLibShaderName(AType: TGLShaderType): string;
     procedure SetLibShaderName(AType: TGLShaderType; const AValue: string);
     procedure SetLibShaderName(AType: TGLShaderType; const AValue: string);
     function GetUniform(const AName: string): IShaderParameter;
     function GetUniform(const AName: string): IShaderParameter;
-    class procedure ReleaseUniforms(AList: TGPersistentObjectList);
+    class procedure ReleaseUniforms(AList: TgPersistentObjectList);
     property LibVertexShaderName: TGLMaterialComponentName index shtVertex
     property LibVertexShaderName: TGLMaterialComponentName index shtVertex
       read GetLibShaderName write SetLibShaderName;
       read GetLibShaderName write SetLibShaderName;
     property LibFragmentShaderName: TGLMaterialComponentName index shtFragment
     property LibFragmentShaderName: TGLMaterialComponentName index shtFragment
@@ -1324,11 +1324,11 @@ begin
     Result := 0;
     Result := 0;
 end;
 end;
 
 
-function TGLBaseMaterialCollectionItem.GetUserList: TGPersistentObjectList;
+function TGLBaseMaterialCollectionItem.GetUserList: TgPersistentObjectList;
 begin
 begin
   if FUserList = nil then
   if FUserList = nil then
   begin
   begin
-    FUserList := TGPersistentObjectList.Create;
+    FUserList := TgPersistentObjectList.Create;
     FNotifying := False;
     FNotifying := False;
   end;
   end;
   Result := FUserList;
   Result := FUserList;
@@ -3710,51 +3710,51 @@ begin
     Result := '';
     Result := '';
 end;
 end;
 
 
-function TGLTextureProperties.GetMappingQCoordinates: TGCoordinates4;
+function TGLTextureProperties.GetMappingQCoordinates: TgCoordinates4;
 begin
 begin
   if not Assigned(FMapQCoordinates) then
   if not Assigned(FMapQCoordinates) then
-    FMapQCoordinates := TGCoordinates4.CreateInitialized(Self, WHmgVector,
+    FMapQCoordinates := TgCoordinates4.CreateInitialized(Self, WHmgVector,
       csVector);
       csVector);
   Result := FMapQCoordinates;
   Result := FMapQCoordinates;
 end;
 end;
 
 
-function TGLTextureProperties.GetMappingRCoordinates: TGCoordinates4;
+function TGLTextureProperties.GetMappingRCoordinates: TgCoordinates4;
 begin
 begin
   if not Assigned(FMapRCoordinates) then
   if not Assigned(FMapRCoordinates) then
-    FMapRCoordinates := TGCoordinates4.CreateInitialized(Self, ZHmgVector,
+    FMapRCoordinates := TgCoordinates4.CreateInitialized(Self, ZHmgVector,
       csVector);
       csVector);
   Result := FMapRCoordinates;
   Result := FMapRCoordinates;
 end;
 end;
 
 
-function TGLTextureProperties.GetMappingSCoordinates: TGCoordinates4;
+function TGLTextureProperties.GetMappingSCoordinates: TgCoordinates4;
 begin
 begin
   if not Assigned(FMapSCoordinates) then
   if not Assigned(FMapSCoordinates) then
-    FMapSCoordinates := TGCoordinates4.CreateInitialized(Self, XHmgVector,
+    FMapSCoordinates := TgCoordinates4.CreateInitialized(Self, XHmgVector,
       csVector);
       csVector);
   Result := FMapSCoordinates;
   Result := FMapSCoordinates;
 end;
 end;
 
 
-function TGLTextureProperties.GetMappingTCoordinates: TGCoordinates4;
+function TGLTextureProperties.GetMappingTCoordinates: TgCoordinates4;
 begin
 begin
   if not Assigned(FMapTCoordinates) then
   if not Assigned(FMapTCoordinates) then
-    FMapTCoordinates := TGCoordinates4.CreateInitialized(Self, YHmgVector,
+    FMapTCoordinates := TgCoordinates4.CreateInitialized(Self, YHmgVector,
       csVector);
       csVector);
   Result := FMapTCoordinates;
   Result := FMapTCoordinates;
 end;
 end;
 
 
-function TGLTextureProperties.GetTextureOffset: TGCoordinates;
+function TGLTextureProperties.GetTextureOffset: TgCoordinates;
 begin
 begin
   if not Assigned(FTextureOffset) then
   if not Assigned(FTextureOffset) then
     FTextureOffset :=
     FTextureOffset :=
-      TGCoordinates3.CreateInitialized(Self, NullHmgVector, csPoint);
+      TgCoordinates3.CreateInitialized(Self, NullHmgVector, csPoint);
   Result := FTextureOffset;
   Result := FTextureOffset;
 end;
 end;
 
 
-function TGLTextureProperties.GetTextureScale: TGCoordinates;
+function TGLTextureProperties.GetTextureScale: TgCoordinates;
 begin
 begin
   if not Assigned(FTextureScale) then
   if not Assigned(FTextureScale) then
     FTextureScale :=
     FTextureScale :=
-      TGCoordinates3.CreateInitialized(Self, VectorMake(1, 1, 1, 1), csVector);
+      TgCoordinates3.CreateInitialized(Self, VectorMake(1, 1, 1, 1), csVector);
   Result := FTextureScale;
   Result := FTextureScale;
 end;
 end;
 
 
@@ -3874,25 +3874,25 @@ begin
 end;
 end;
 
 
 procedure TGLTextureProperties.SetMappingQCoordinates(
 procedure TGLTextureProperties.SetMappingQCoordinates(
-  const AValue: TGCoordinates4);
+  const AValue: TgCoordinates4);
 begin
 begin
   MappingQCoordinates.Assign(AValue);
   MappingQCoordinates.Assign(AValue);
 end;
 end;
 
 
 procedure TGLTextureProperties.SetMappingRCoordinates(
 procedure TGLTextureProperties.SetMappingRCoordinates(
-  const AValue: TGCoordinates4);
+  const AValue: TgCoordinates4);
 begin
 begin
   MappingRCoordinates.Assign(AValue);
   MappingRCoordinates.Assign(AValue);
 end;
 end;
 
 
 procedure TGLTextureProperties.SetMappingSCoordinates(
 procedure TGLTextureProperties.SetMappingSCoordinates(
-  const AValue: TGCoordinates4);
+  const AValue: TgCoordinates4);
 begin
 begin
   MappingSCoordinates.Assign(AValue);
   MappingSCoordinates.Assign(AValue);
 end;
 end;
 
 
 procedure TGLTextureProperties.SetMappingTCoordinates(
 procedure TGLTextureProperties.SetMappingTCoordinates(
-  const AValue: TGCoordinates4);
+  const AValue: TgCoordinates4);
 begin
 begin
   MappingTCoordinates.Assign(AValue);
   MappingTCoordinates.Assign(AValue);
 end;
 end;
@@ -3911,7 +3911,7 @@ begin
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-procedure TGLTextureProperties.SetTextureOffset(const AValue: TGCoordinates);
+procedure TGLTextureProperties.SetTextureOffset(const AValue: TgCoordinates);
 begin
 begin
   TextureOffset.Assign(AValue);
   TextureOffset.Assign(AValue);
   CalculateTextureMatrix;
   CalculateTextureMatrix;
@@ -3927,7 +3927,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGLTextureProperties.SetTextureScale(const AValue: TGCoordinates);
+procedure TGLTextureProperties.SetTextureScale(const AValue: TgCoordinates);
 begin
 begin
   TextureScale.Assign(AValue);
   TextureScale.Assign(AValue);
   CalculateTextureMatrix;
   CalculateTextureMatrix;
@@ -4418,7 +4418,7 @@ begin
   FHandle := TGLProgramHandle.Create;
   FHandle := TGLProgramHandle.Create;
   FHandle.OnPrapare := DoOnPrepare;
   FHandle.OnPrapare := DoOnPrepare;
   FEnabled := False;
   FEnabled := False;
-  FUniforms := TGPersistentObjectList.Create;
+  FUniforms := TgPersistentObjectList.Create;
   FAutoFill := True;
   FAutoFill := True;
 end;
 end;
 
 
@@ -4447,7 +4447,7 @@ end;
 procedure TGLBaseShaderModel.DoOnPrepare(Sender: TGLContext);
 procedure TGLBaseShaderModel.DoOnPrepare(Sender: TGLContext);
 var
 var
   T: TGLShaderType;
   T: TGLShaderType;
-  LUniforms: TGPersistentObjectList;
+  LUniforms: TgPersistentObjectList;
   LUniform, LUniform2: TGLShaderUniform;
   LUniform, LUniform2: TGLShaderUniform;
   ID: Cardinal;
   ID: Cardinal;
   I, J, C: Integer;
   I, J, C: Integer;
@@ -4537,7 +4537,7 @@ begin
               end;
               end;
 
 
               // Get uniforms
               // Get uniforms
-              LUniforms := TGPersistentObjectList.Create;
+              LUniforms := TgPersistentObjectList.Create;
 
 
               gl.GetProgramiv(ID, GL_ACTIVE_UNIFORMS, @C);
               gl.GetProgramiv(ID, GL_ACTIVE_UNIFORMS, @C);
               for I := 0 to C - 1 do
               for I := 0 to C - 1 do
@@ -4826,7 +4826,7 @@ begin
 end;
 end;
 
 
 class procedure TGLBaseShaderModel.ReleaseUniforms(
 class procedure TGLBaseShaderModel.ReleaseUniforms(
-  AList: TGPersistentObjectList);
+  AList: TgPersistentObjectList);
 var
 var
   I: Integer;
   I: Integer;
 begin
 begin

+ 1 - 1
Source/GLS.MaterialMultiProxy.pas

@@ -42,7 +42,7 @@ uses
   GLScene.BaseClasses,
   GLScene.BaseClasses,
   GLS.Context,
   GLS.Context,
   GLScene.VectorTypes,
   GLScene.VectorTypes,
-  GLS.PipelineTransformation;
+  GLScene.PipelineTransform;
 
 
 type
 type
   TGLMaterialMultiProxy = class;
   TGLMaterialMultiProxy = class;

+ 2 - 2
Source/GLS.MaterialScript.pas

@@ -95,9 +95,9 @@ type
     Infini: Longint;
     Infini: Longint;
     Done: Boolean;
     Done: Boolean;
     NewMat: TGLLibMaterial;
     NewMat: TGLLibMaterial;
-    TmpCoords: TGCoordinates;
+    TmpCoords: TgCoordinates;
     TmpColor: TGColor;
     TmpColor: TGColor;
-    TmpCoords4: TGCoordinates4;
+    TmpCoords4: TgCoordinates4;
     TmpStr: string;
     TmpStr: string;
     procedure SeTGLShaderItems(const Value: TGLShaderItems);
     procedure SeTGLShaderItems(const Value: TGLShaderItems);
     procedure SeTGLMaterialLibraryItems(const Value: TGLMaterialLibraryItems);
     procedure SeTGLMaterialLibraryItems(const Value: TGLMaterialLibraryItems);

+ 10 - 10
Source/GLS.MeshBSP.pas

@@ -141,7 +141,7 @@ type
       const maxTrianglesPerLeaf: Integer = MaxInt);
       const maxTrianglesPerLeaf: Integer = MaxInt);
     (*  Goes through all triangle edges, looking for tjunctions.
     (*  Goes through all triangle edges, looking for tjunctions.
       The candidates are indices of points to lookup a tjunction vertices. *)
       The candidates are indices of points to lookup a tjunction vertices. *)
-    procedure FixTJunctions(const tJunctionsCandidates: TGIntegerList);
+    procedure FixTJunctions(const tJunctionsCandidates: TgIntegerList);
     (*  BSP node split plane.
     (*  BSP node split plane.
       Divides space between positive and negative half-space, positive
       Divides space between positive and negative half-space, positive
       half-space being the one were the evaluation of an homogeneous
       half-space being the one were the evaluation of an homogeneous
@@ -385,14 +385,14 @@ var
   i, j, n: Integer;
   i, j, n: Integer;
   nodeParents: array of Integer;
   nodeParents: array of Integer;
   remapIndex: array of Integer;
   remapIndex: array of Integer;
-  indicesToCheck: TGIntegerList;
+  indicesToCheck: TgIntegerList;
   node: TFGBSPNode;
   node: TFGBSPNode;
 begin
 begin
   n := faceGroups.Count;
   n := faceGroups.Count;
   if n = 0 then
   if n = 0 then
     Exit;
     Exit;
   SetLength(nodeParents, n);
   SetLength(nodeParents, n);
-  indicesToCheck := TGIntegerList.Create;
+  indicesToCheck := TgIntegerList.Create;
   try
   try
     // build nodes parent information
     // build nodes parent information
     FillChar(nodeParents[0], SizeOf(Integer) * n, 255);
     FillChar(nodeParents[0], SizeOf(Integer) * n, 255);
@@ -826,8 +826,8 @@ procedure TFGBSPNode.PerformSplit(const splitPlane: THmgPlane;
   const maxTrianglesPerLeaf: Integer = MaxInt);
   const maxTrianglesPerLeaf: Integer = MaxInt);
 var
 var
   fgPos, fgNeg: TFGBSPNode;
   fgPos, fgNeg: TFGBSPNode;
-  fgPosIndices, fgNegIndices: TGIntegerList;
-  indices: TGIntegerList;
+  fgPosIndices, fgNegIndices: TgIntegerList;
+  indices: TgIntegerList;
 
 
   procedure SplitTriangleMid(strayID, strayNext, strayPrev: Integer;
   procedure SplitTriangleMid(strayID, strayNext, strayPrev: Integer;
     eNext, ePrev: Single);
     eNext, ePrev: Single);
@@ -893,7 +893,7 @@ begin
   fgNegIndices := fgNeg.VertexIndices;
   fgNegIndices := fgNeg.VertexIndices;
   // initiate split
   // initiate split
   Self.FSplitPlane := splitPlane;
   Self.FSplitPlane := splitPlane;
-  indices := TGIntegerList.Create;
+  indices := TgIntegerList.Create;
   vertices := Owner.Owner.vertices;
   vertices := Owner.Owner.vertices;
   i := 0;
   i := 0;
   while i < VertexIndices.Count do
   while i < VertexIndices.Count do
@@ -1034,10 +1034,10 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TFGBSPNode.FixTJunctions(const tJunctionsCandidates: TGIntegerList);
+procedure TFGBSPNode.FixTJunctions(const tJunctionsCandidates: TgIntegerList);
 
 
   function FindTJunction(iA, iB, iC: Integer;
   function FindTJunction(iA, iB, iC: Integer;
-    candidatesList: TGIntegerList): Integer;
+    candidatesList: TgIntegerList): Integer;
   var
   var
     i, k: Integer;
     i, k: Integer;
     vertices: PAffineVectorArray;
     vertices: PAffineVectorArray;
@@ -1092,10 +1092,10 @@ procedure TFGBSPNode.FixTJunctions(const tJunctionsCandidates: TGIntegerList);
 var
 var
   i, tj: Integer;
   i, tj: Integer;
   indices: PIntegerArray;
   indices: PIntegerArray;
-  mark: TGIntegerList;
+  mark: TgIntegerList;
 begin
 begin
   Assert(Mode in [fgmmTriangles, fgmmFlatTriangles]);
   Assert(Mode in [fgmmTriangles, fgmmFlatTriangles]);
-  mark := TGIntegerList.Create;
+  mark := TgIntegerList.Create;
   mark.AddSerie(1, 0, VertexIndices.Count);
   mark.AddSerie(1, 0, VertexIndices.Count);
   indices := VertexIndices.List;
   indices := VertexIndices.List;
   i := 0;
   i := 0;

+ 10 - 10
Source/GLS.MeshBuilder.pas

@@ -560,7 +560,7 @@ var
   i: Integer;
   i: Integer;
   fg: TGLFaceGroup;
   fg: TGLFaceGroup;
   coords, TexCoords, Normals: TGAffineVectorList;
   coords, TexCoords, Normals: TGAffineVectorList;
-  il: TGIntegerList;
+  il: TgIntegerList;
   materialName: String;
   materialName: String;
 begin
 begin
   if (mooMergeObjects in options) then
   if (mooMergeObjects in options) then
@@ -641,19 +641,19 @@ procedure FacesSmooth(aMeshObj: TGLMeshObject;
 Var
 Var
   i, J, k, L: Integer;
   i, J, k, L: Integer;
   WeldedVertex: TGAffineVectorList;
   WeldedVertex: TGAffineVectorList;
-  TmpIntegerList: TGIntegerList;
+  TmpIntegerList: TgIntegerList;
   IndexMap: TStringList;
   IndexMap: TStringList;
   n: TAffineVector;
   n: TAffineVector;
-  indicesMap: TGIntegerList;
+  indicesMap: TgIntegerList;
   Index: Integer;
   Index: Integer;
-  FaceList: TGIntegerList;
+  FaceList: TgIntegerList;
   NormalList: TGAffineVectorList;
   NormalList: TGAffineVectorList;
   FaceNormalList: TGAffineVectorList;
   FaceNormalList: TGAffineVectorList;
   FaceGroup: TGLFaceGroup;
   FaceGroup: TGLFaceGroup;
   fg, FG1: TFGVertexIndexList;
   fg, FG1: TFGVertexIndexList;
   Threshold: Single;
   Threshold: Single;
   Angle: Single;
   Angle: Single;
-  ReferenceMap: TGIntegerList;
+  ReferenceMap: TgIntegerList;
   ID1, ID2: Integer;
   ID1, ID2: Integer;
   Index1, Index2, Index3: Integer;
   Index1, Index2, Index3: Integer;
 
 
@@ -679,10 +679,10 @@ Var
 begin
 begin
   Threshold := aThreshold * Pi / 180.0;
   Threshold := aThreshold * Pi / 180.0;
   // build the vectices reference map
   // build the vectices reference map
-  ReferenceMap := TGIntegerList.Create;
+  ReferenceMap := TgIntegerList.Create;
   WeldedVertex := TGAffineVectorList.Create;
   WeldedVertex := TGAffineVectorList.Create;
   WeldedVertex.Assign(aMeshObj.Vertices);
   WeldedVertex.Assign(aMeshObj.Vertices);
-  indicesMap := TGIntegerList.Create;
+  indicesMap := TgIntegerList.Create;
   // first of all, weld the very closed vertices
   // first of all, weld the very closed vertices
   WeldVertices(WeldedVertex, indicesMap, aWeldDistance);
   WeldVertices(WeldedVertex, indicesMap, aWeldDistance);
   // then, rebuild the map list
   // then, rebuild the map list
@@ -690,7 +690,7 @@ begin
   for i := 0 to WeldedVertex.Count - 1 do
   for i := 0 to WeldedVertex.Count - 1 do
   begin
   begin
     ReferenceMap.Assign(indicesMap);
     ReferenceMap.Assign(indicesMap);
-    TmpIntegerList := TGIntegerList.Create;
+    TmpIntegerList := TgIntegerList.Create;
     Index := ReferenceMap.IndexOf(i);
     Index := ReferenceMap.IndexOf(i);
     while Index >= 0 do
     while Index >= 0 do
     begin
     begin
@@ -705,10 +705,10 @@ begin
   WeldedVertex.Free;
   WeldedVertex.Free;
   indicesMap.Free;
   indicesMap.Free;
   // creates a TexPoint list for save face infomation, where s=facegroup index, t=face index
   // creates a TexPoint list for save face infomation, where s=facegroup index, t=face index
-  FaceList := TGIntegerList.Create;
+  FaceList := TgIntegerList.Create;
   NormalList := TGAffineVectorList.Create;
   NormalList := TGAffineVectorList.Create;
   FaceNormalList := TGAffineVectorList.Create;
   FaceNormalList := TGAffineVectorList.Create;
-  // NormalIndex := TGIntegerList.Create;
+  // NormalIndex := TgIntegerList.Create;
   for i := 0 to aMeshObj.FaceGroups.Count - 1 do
   for i := 0 to aMeshObj.FaceGroups.Count - 1 do
   begin
   begin
     FaceGroup := aMeshObj.FaceGroups[i];
     FaceGroup := aMeshObj.FaceGroups[i];

+ 5 - 5
Source/GLS.MeshLines.pas

@@ -108,7 +108,7 @@ type
   published
   published
   end;
   end;
 
 
-  TGLLightmapBounds = class(TGCustomCoordinates)
+  TGLLightmapBounds = class(TgCustomCoordinates)
   private
   private
     function GetLeft: TGLFloat;
     function GetLeft: TGLFloat;
     function GetTop: TGLFloat;
     function GetTop: TGLFloat;
@@ -149,8 +149,8 @@ type
       Tolerance: Single = 1): Boolean;
       Tolerance: Single = 1): Boolean;
     function PointNearSegment(const StartNode, EndNode: TGLLineNode;
     function PointNearSegment(const StartNode, EndNode: TGLLineNode;
       const X, Z: Single; LineWidth: Single; Tolerance: Single = 1): Boolean;
       const X, Z: Single; LineWidth: Single; Tolerance: Single = 1): Boolean;
-    procedure StitchStrips(idx: TGIntegerList);
-    procedure AddStitchMarker(idx: TGIntegerList);
+    procedure StitchStrips(idx: TgIntegerList);
+    procedure AddStitchMarker(idx: TgIntegerList);
     procedure SetShowNodes(const Value: Boolean);
     procedure SetShowNodes(const Value: Boolean);
     procedure SetNoZWrite(const Value: Boolean);
     procedure SetNoZWrite(const Value: Boolean);
     procedure SetLightmapIndex(const Value: Integer);
     procedure SetLightmapIndex(const Value: Integer);
@@ -806,7 +806,7 @@ begin
   result := sqrt(sqr(xt - X) + sqr(yt - Z)) <= lDist;
   result := sqrt(sqr(xt - X) + sqr(yt - Z)) <= lDist;
 end;
 end;
 
 
-procedure TGLMeshLines.StitchStrips(idx: TGIntegerList);
+procedure TGLMeshLines.StitchStrips(idx: TgIntegerList);
 var
 var
   i: Integer;
   i: Integer;
   i0, i1, i2: Integer;
   i0, i1, i2: Integer;
@@ -826,7 +826,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGLMeshLines.AddStitchMarker(idx: TGIntegerList);
+procedure TGLMeshLines.AddStitchMarker(idx: TgIntegerList);
 begin
 begin
   idx.Add(-1);
   idx.Add(-1);
   idx.Add(-2);
   idx.Add(-2);

+ 76 - 76
Source/GLS.MeshUtils.pas

@@ -26,17 +26,17 @@ uses
 *)
 *)
 procedure ConvertStripToList(const strip: TGAffineVectorList;
 procedure ConvertStripToList(const strip: TGAffineVectorList;
   list: TGAffineVectorList); overload;
   list: TGAffineVectorList); overload;
-procedure ConvertStripToList(const strip: TGIntegerList;
-  list: TGIntegerList); overload;
+procedure ConvertStripToList(const strip: TgIntegerList;
+  list: TgIntegerList); overload;
 procedure ConvertStripToList(const strip: TGAffineVectorList;
 procedure ConvertStripToList(const strip: TGAffineVectorList;
-  const indices: TGIntegerList; list: TGAffineVectorList); overload;
+  const indices: TgIntegerList; list: TGAffineVectorList); overload;
 function ConvertStripToList(const AindicesList: PLongWordArray; Count: LongWord;
 function ConvertStripToList(const AindicesList: PLongWordArray; Count: LongWord;
   RestartIndex: LongWord): TGLongWordList; overload;
   RestartIndex: LongWord): TGLongWordList; overload;
 function ConvertFansToList(const AindicesList: PLongWordArray; Count: LongWord;
 function ConvertFansToList(const AindicesList: PLongWordArray; Count: LongWord;
   RestartIndex: LongWord): TGLongWordList;
   RestartIndex: LongWord): TGLongWordList;
 // Expands an indexed structure into a non-indexed structure.
 // Expands an indexed structure into a non-indexed structure.
 procedure ConvertIndexedListToList(const data: TGAffineVectorList;
 procedure ConvertIndexedListToList(const data: TGAffineVectorList;
-  const indices: TGIntegerList; list: TGAffineVectorList);
+  const indices: TgIntegerList; list: TGAffineVectorList);
 (* 
 (* 
   Builds a vector-count optimized indices list.
   Builds a vector-count optimized indices list.
   The returned list (to be freed by caller) contains an "optimized" indices
   The returned list (to be freed by caller) contains an "optimized" indices
@@ -47,16 +47,16 @@ procedure ConvertIndexedListToList(const data: TGAffineVectorList;
 *)
 *)
 function BuildVectorCountOptimizedIndices(const vertices: TGAffineVectorList;
 function BuildVectorCountOptimizedIndices(const vertices: TGAffineVectorList;
   const normals: TGAffineVectorList = nil;
   const normals: TGAffineVectorList = nil;
-  const texCoords: TGAffineVectorList = nil): TGIntegerList;
+  const texCoords: TGAffineVectorList = nil): TgIntegerList;
 (* 
 (* 
   Alters a reference array and removes unused reference values.
   Alters a reference array and removes unused reference values.
   This functions scans the reference list and removes all values that aren't
   This functions scans the reference list and removes all values that aren't
   referred in the indices list, the indices list is *not* remapped. 
   referred in the indices list, the indices list is *not* remapped. 
 *)
 *)
 procedure RemapReferences(reference: TGAffineVectorList;
 procedure RemapReferences(reference: TGAffineVectorList;
-  const indices: TGIntegerList); overload;
-procedure RemapReferences(reference: TGIntegerList;
-  const indices: TGIntegerList); overload;
+  const indices: TgIntegerList); overload;
+procedure RemapReferences(reference: TgIntegerList;
+  const indices: TgIntegerList); overload;
 (* 
 (* 
   Alters a reference/indice pair and removes unused reference values.
   Alters a reference/indice pair and removes unused reference values.
   This functions scans the reference list and removes all values that aren't
   This functions scans the reference list and removes all values that aren't
@@ -64,7 +64,7 @@ procedure RemapReferences(reference: TGIntegerList;
   coherent. 
   coherent. 
 *)
 *)
 procedure RemapAndCleanupReferences(reference: TGAffineVectorList;
 procedure RemapAndCleanupReferences(reference: TGAffineVectorList;
-  indices: TGIntegerList);
+  indices: TgIntegerList);
 (* 
 (* 
   Creates an indices map from a remap list.
   Creates an indices map from a remap list.
   The remap list is what BuildVectorCountOptimizedIndices, a list of indices
   The remap list is what BuildVectorCountOptimizedIndices, a list of indices
@@ -74,17 +74,17 @@ procedure RemapAndCleanupReferences(reference: TGAffineVectorList;
   it to something suitable for RemapTrianglesIndices.
   it to something suitable for RemapTrianglesIndices.
   Any simpler documentation of this function welcome ;) 
   Any simpler documentation of this function welcome ;) 
 *)
 *)
-function RemapIndicesToIndicesMap(remapIndices: TGIntegerList): TGIntegerList;
+function RemapIndicesToIndicesMap(remapIndices: TgIntegerList): TgIntegerList;
 (* 
 (* 
   Remaps a list of triangles vertex indices and remove degenerate triangles.
   Remaps a list of triangles vertex indices and remove degenerate triangles.
   The indicesMap provides newVertexIndex:=indicesMap[oldVertexIndex] 
   The indicesMap provides newVertexIndex:=indicesMap[oldVertexIndex] 
 *)
 *)
-procedure RemapTrianglesIndices(indices, indicesMap: TGIntegerList);
+procedure RemapTrianglesIndices(indices, indicesMap: TgIntegerList);
 (* 
 (* 
   Remaps a list of indices.
   Remaps a list of indices.
   The indicesMap provides newVertexIndex:=indicesMap[oldVertexIndex] 
   The indicesMap provides newVertexIndex:=indicesMap[oldVertexIndex] 
 *)
 *)
-procedure remapIndices(indices, indicesMap: TGIntegerList);
+procedure remapIndices(indices, indicesMap: TgIntegerList);
 (* 
 (* 
   Attempts to unify triangle winding.
   Attempts to unify triangle winding.
   Depending on topology, this may or may not be successful (some topologies
   Depending on topology, this may or may not be successful (some topologies
@@ -92,16 +92,16 @@ procedure remapIndices(indices, indicesMap: TGIntegerList);
   have edges shared by more than two triangles, those that have unconnected
   have edges shared by more than two triangles, those that have unconnected
   submeshes etc.) 
   submeshes etc.) 
 *)
 *)
-procedure UnifyTrianglesWinding(indices: TGIntegerList);
+procedure UnifyTrianglesWinding(indices: TgIntegerList);
 // Inverts the triangles winding (vertex order).
 // Inverts the triangles winding (vertex order).
-procedure InvertTrianglesWinding(indices: TGIntegerList);
+procedure InvertTrianglesWinding(indices: TgIntegerList);
 (* 
 (* 
   Builds normals for a triangles list.
   Builds normals for a triangles list.
   Builds one normal per reference vertex (may be NullVector is reference isn't
   Builds one normal per reference vertex (may be NullVector is reference isn't
   used), which is the averaged for normals of all adjacent triangles.
   used), which is the averaged for normals of all adjacent triangles.
   Returned list must be freed by caller. 
   Returned list must be freed by caller. 
 *)
 *)
-function BuildNormals(reference: TGAffineVectorList; indices: TGIntegerList)
+function BuildNormals(reference: TGAffineVectorList; indices: TgIntegerList)
   : TGAffineVectorList;
   : TGAffineVectorList;
 (* 
 (* 
   Builds a list of non-oriented (non duplicated) edges list.
   Builds a list of non-oriented (non duplicated) edges list.
@@ -115,9 +115,9 @@ function BuildNormals(reference: TGAffineVectorList; indices: TGIntegerList)
   A maximum of two triangles can be referred by this list,
   A maximum of two triangles can be referred by this list,
   and its final size will be that of the Result (ie. non oriented edges list) 
   and its final size will be that of the Result (ie. non oriented edges list) 
 *)
 *)
-function BuildNonOrientedEdgesList(triangleIndices: TGIntegerList;
-  triangleEdges: TGIntegerList = nil; edgesTriangles: TGIntegerList = nil)
-  : TGIntegerList;
+function BuildNonOrientedEdgesList(triangleIndices: TgIntegerList;
+  triangleEdges: TgIntegerList = nil; edgesTriangles: TgIntegerList = nil)
+  : TgIntegerList;
 (* 
 (* 
   Welds all vertices separated by a distance inferior to weldRadius.
   Welds all vertices separated by a distance inferior to weldRadius.
   Any two vertices whose distance is inferior to weldRadius will be merged
   Any two vertices whose distance is inferior to weldRadius will be merged
@@ -131,20 +131,20 @@ function BuildNonOrientedEdgesList(triangleIndices: TGIntegerList;
   exported from high-polycount CAD tools (to remove duplicate vertices,
   exported from high-polycount CAD tools (to remove duplicate vertices,
   quantification errors, etc.) 
   quantification errors, etc.) 
 *)
 *)
-procedure WeldVertices(vertices: TGAffineVectorList; indicesMap: TGIntegerList;
+procedure WeldVertices(vertices: TGAffineVectorList; indicesMap: TgIntegerList;
   weldRadius: Single);
   weldRadius: Single);
 (* 
 (* 
   Attempts to create as few as possible triangle strips to cover the mesh.
   Attempts to create as few as possible triangle strips to cover the mesh.
   The indices parameters define a set of triangles as a set of indices to
   The indices parameters define a set of triangles as a set of indices to
   vertices in a vertex pool, free of duplicate vertices (or resulting
   vertices in a vertex pool, free of duplicate vertices (or resulting
   stripification will be of lower quality).
   stripification will be of lower quality).
-  The function returns a list of TGIntegerList, each of these lists hosting
+  The function returns a list of TgIntegerList, each of these lists hosting
   a triangle strip, returned objects must be freed by caller.
   a triangle strip, returned objects must be freed by caller.
   If agglomerateLoneTriangles is True, the first of the lists actually contains
   If agglomerateLoneTriangles is True, the first of the lists actually contains
   the agglomerated list of the triangles that couldn't be stripified. 
   the agglomerated list of the triangles that couldn't be stripified. 
 *)
 *)
-function StripifyMesh(indices: TGIntegerList; maxVertexIndex: Integer;
-  agglomerateLoneTriangles: Boolean = False): TGPersistentObjectList;
+function StripifyMesh(indices: TgIntegerList; maxVertexIndex: Integer;
+  agglomerateLoneTriangles: Boolean = False): TgPersistentObjectList;
 (* 
 (* 
   Increases indices coherency wrt vertex caches.
   Increases indices coherency wrt vertex caches.
   The indices parameters is understood as vertex indices of a triangles set,
   The indices parameters is understood as vertex indices of a triangles set,
@@ -156,7 +156,7 @@ function StripifyMesh(indices: TGIntegerList; maxVertexIndex: Integer;
   This procedure performs a coherency optimization via a greedy hill-climber
   This procedure performs a coherency optimization via a greedy hill-climber
   algorithm (ie. not optimal but fast). 
   algorithm (ie. not optimal but fast). 
 *)
 *)
-procedure IncreaseCoherency(indices: TGIntegerList; cacheSize: Integer);
+procedure IncreaseCoherency(indices: TgIntegerList; cacheSize: Integer);
 
 
 type
 type
   TSubdivideEdgeEvent = procedure(const idxA, idxB, newIdx: Integer); register;
   TSubdivideEdgeEvent = procedure(const idxA, idxB, newIdx: Integer); register;
@@ -170,7 +170,7 @@ type
   The procedure is not intended for real-time use. 
   The procedure is not intended for real-time use. 
 *)
 *)
 procedure SubdivideTriangles(smoothFactor: Single; vertices: TGAffineVectorList;
 procedure SubdivideTriangles(smoothFactor: Single; vertices: TGAffineVectorList;
-  triangleIndices: TGIntegerList; normals: TGAffineVectorList = nil;
+  triangleIndices: TgIntegerList; normals: TGAffineVectorList = nil;
   onSubdivideEdge: TSubdivideEdgeEvent = nil);
   onSubdivideEdge: TSubdivideEdgeEvent = nil);
 // Create list of indices of triangles with adjacency from triangle list 
 // Create list of indices of triangles with adjacency from triangle list 
 function MakeTriangleAdjacencyList(const AindicesList: PLongWordArray;
 function MakeTriangleAdjacencyList(const AindicesList: PLongWordArray;
@@ -217,7 +217,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure ConvertStripToList(const strip: TGIntegerList; list: TGIntegerList);
+procedure ConvertStripToList(const strip: TgIntegerList; list: TgIntegerList);
 var
 var
   i: Integer;
   i: Integer;
   stripList: PIntegerArray;
   stripList: PIntegerArray;
@@ -234,7 +234,7 @@ begin
 end;
 end;
 
 
 procedure ConvertStripToList(const strip: TGAffineVectorList;
 procedure ConvertStripToList(const strip: TGAffineVectorList;
-  const indices: TGIntegerList; list: TGAffineVectorList);
+  const indices: TgIntegerList; list: TGAffineVectorList);
 var
 var
   i: Integer;
   i: Integer;
   stripList: PAffineVectorArray;
   stripList: PAffineVectorArray;
@@ -253,7 +253,7 @@ begin
 end;
 end;
 
 
 procedure ConvertIndexedListToList(const data: TGAffineVectorList;
 procedure ConvertIndexedListToList(const data: TGAffineVectorList;
-  const indices: TGIntegerList; list: TGAffineVectorList);
+  const indices: TgIntegerList; list: TGAffineVectorList);
 var
 var
   i: Integer;
   i: Integer;
   indicesList: PIntegerArray;
   indicesList: PIntegerArray;
@@ -279,13 +279,13 @@ end;
 
 
 function BuildVectorCountOptimizedIndices(const vertices: TGAffineVectorList;
 function BuildVectorCountOptimizedIndices(const vertices: TGAffineVectorList;
   const normals: TGAffineVectorList = nil;
   const normals: TGAffineVectorList = nil;
-  const texCoords: TGAffineVectorList = nil): TGIntegerList;
+  const texCoords: TGAffineVectorList = nil): TgIntegerList;
 var
 var
   i, j, k: Integer;
   i, j, k: Integer;
   found: Boolean;
   found: Boolean;
   hashSize: Integer;
   hashSize: Integer;
-  hashTable: array of TGIntegerList;
-  list: TGIntegerList;
+  hashTable: array of TgIntegerList;
+  list: TgIntegerList;
   verticesList, normalsList, texCoordsList: PAffineVectorArray;
   verticesList, normalsList, texCoordsList: PAffineVectorArray;
 const
 const
   cVerticesPerHashKey = 48;
   cVerticesPerHashKey = 48;
@@ -298,7 +298,7 @@ const
   end;
   end;
 
 
 begin
 begin
-  Result := TGIntegerList.Create;
+  Result := TgIntegerList.Create;
   Result.Capacity := vertices.Count;
   Result.Capacity := vertices.Count;
 
 
   if Assigned(normals) then
   if Assigned(normals) then
@@ -333,7 +333,7 @@ begin
   // allocate and fill our hashtable (will store "reference" vertex indices)
   // allocate and fill our hashtable (will store "reference" vertex indices)
   for i := 0 to hashSize do
   for i := 0 to hashSize do
   begin
   begin
-    hashTable[i] := TGIntegerList.Create;
+    hashTable[i] := TgIntegerList.Create;
     hashTable[i].GrowthDelta := cVerticesPerHashKey div 2;
     hashTable[i].GrowthDelta := cVerticesPerHashKey div 2;
   end;
   end;
   // here we go for all vertices
   // here we go for all vertices
@@ -439,7 +439,7 @@ end;
 // RemapReferences (vectors)
 // RemapReferences (vectors)
 //
 //
 procedure RemapReferences(reference: TGAffineVectorList;
 procedure RemapReferences(reference: TGAffineVectorList;
-  const indices: TGIntegerList);
+  const indices: TgIntegerList);
 var
 var
   i: Integer;
   i: Integer;
   tag: array of Byte;
   tag: array of Byte;
@@ -469,7 +469,7 @@ begin
     div SizeOf(TAffineVector);
     div SizeOf(TAffineVector);
 end;
 end;
 
 
-procedure RemapReferences(reference: TGIntegerList; const indices: TGIntegerList);
+procedure RemapReferences(reference: TgIntegerList; const indices: TgIntegerList);
 var
 var
   i, n: Integer;
   i, n: Integer;
   tag: array of Byte;
   tag: array of Byte;
@@ -498,7 +498,7 @@ begin
 end;
 end;
 
 
 procedure RemapAndCleanupReferences(reference: TGAffineVectorList;
 procedure RemapAndCleanupReferences(reference: TGAffineVectorList;
-  indices: TGIntegerList);
+  indices: TgIntegerList);
 var
 var
   i, n: Integer;
   i, n: Integer;
   tag: array of Integer;
   tag: array of Integer;
@@ -530,7 +530,7 @@ begin
     indicesList[i] := tag[indicesList[i]];
     indicesList[i] := tag[indicesList[i]];
 end;
 end;
 
 
-function RemapIndicesToIndicesMap(remapIndices: TGIntegerList): TGIntegerList;
+function RemapIndicesToIndicesMap(remapIndices: TgIntegerList): TgIntegerList;
 var
 var
   i, n: Integer;
   i, n: Integer;
   tag: array of Integer;
   tag: array of Integer;
@@ -552,14 +552,14 @@ begin
     end;
     end;
   end;
   end;
   // 3rd step, fillup indices map
   // 3rd step, fillup indices map
-  Result := TGIntegerList.Create;
+  Result := TgIntegerList.Create;
   Result.Count := remapIndices.Count;
   Result.Count := remapIndices.Count;
   indicesMap := Result.list;
   indicesMap := Result.list;
   for i := 0 to Result.Count - 1 do
   for i := 0 to Result.Count - 1 do
     indicesMap[i] := tag[remapList[i]];
     indicesMap[i] := tag[remapList[i]];
 end;
 end;
 
 
-procedure RemapTrianglesIndices(indices, indicesMap: TGIntegerList);
+procedure RemapTrianglesIndices(indices, indicesMap: TgIntegerList);
 var
 var
   i, k, a, b, c, n: Integer;
   i, k, a, b, c, n: Integer;
 begin
 begin
@@ -584,7 +584,7 @@ begin
   indices.Count := k;
   indices.Count := k;
 end;
 end;
 
 
-procedure remapIndices(indices, indicesMap: TGIntegerList);
+procedure remapIndices(indices, indicesMap: TgIntegerList);
 var
 var
   i: Integer;
   i: Integer;
   map, ind: PIntegerArray;
   map, ind: PIntegerArray;
@@ -595,11 +595,11 @@ begin
     ind[i] := map[ind[i]];
     ind[i] := map[ind[i]];
 end;
 end;
 
 
-procedure UnifyTrianglesWinding(indices: TGIntegerList);
+procedure UnifyTrianglesWinding(indices: TgIntegerList);
 var
 var
   nbTris: Integer;
   nbTris: Integer;
   mark: array of ByteBool; // marks triangles that have been processed
   mark: array of ByteBool; // marks triangles that have been processed
-  triangleStack: TGIntegerList; // marks triangles winded, that must be processed
+  triangleStack: TgIntegerList; // marks triangles winded, that must be processed
 
 
   procedure TestRewind(a, b: Integer);
   procedure TestRewind(a, b: Integer);
   var
   var
@@ -657,7 +657,7 @@ begin
   nbTris := indices.Count div 3;
   nbTris := indices.Count div 3;
   SetLength(mark, nbTris);
   SetLength(mark, nbTris);
   // Build connectivity data
   // Build connectivity data
-  triangleStack := TGIntegerList.Create;
+  triangleStack := TgIntegerList.Create;
   try
   try
     triangleStack.Capacity := nbTris div 4;
     triangleStack.Capacity := nbTris div 4;
     // Pick a triangle, adjust normals of neighboring triangles, recurse
     // Pick a triangle, adjust normals of neighboring triangles, recurse
@@ -673,7 +673,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure InvertTrianglesWinding(indices: TGIntegerList);
+procedure InvertTrianglesWinding(indices: TgIntegerList);
 var
 var
   i: Integer;
   i: Integer;
 begin
 begin
@@ -686,7 +686,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-function BuildNormals(reference: TGAffineVectorList; indices: TGIntegerList)
+function BuildNormals(reference: TGAffineVectorList; indices: TgIntegerList)
   : TGAffineVectorList;
   : TGAffineVectorList;
 var
 var
   i, n, k: Integer;
   i, n, k: Integer;
@@ -723,22 +723,22 @@ begin
 end;
 end;
 
 
 //----------------------------------------------------------
 //----------------------------------------------------------
-function BuildNonOrientedEdgesList(triangleIndices: TGIntegerList;
-  triangleEdges: TGIntegerList = nil; edgesTriangles: TGIntegerList = nil)
-  : TGIntegerList;
+function BuildNonOrientedEdgesList(triangleIndices: TgIntegerList;
+  triangleEdges: TgIntegerList = nil; edgesTriangles: TgIntegerList = nil)
+  : TgIntegerList;
 const
 const
   cEdgesHashMax = 127; // must be a power of two minus 1
   cEdgesHashMax = 127; // must be a power of two minus 1
 var
 var
-  edgesHash: array [0 .. cEdgesHashMax] of TGIntegerList;
+  edgesHash: array [0 .. cEdgesHashMax] of TgIntegerList;
   curTri: Integer;
   curTri: Integer;
-  edges: TGIntegerList;
+  edges: TgIntegerList;
 
 
   function ProcessEdge(a, b: Integer): Integer;
   function ProcessEdge(a, b: Integer): Integer;
   var
   var
     i, n: Integer;
     i, n: Integer;
     HashKey: Integer;
     HashKey: Integer;
     edgesList, iList: PIntegerArray;
     edgesList, iList: PIntegerArray;
-    hashList: TGIntegerList;
+    hashList: TgIntegerList;
   begin
   begin
     if a >= b then
     if a >= b then
     begin
     begin
@@ -770,7 +770,7 @@ var
     HashKey: Integer;
     HashKey: Integer;
     edgesList: PIntegerArray;
     edgesList: PIntegerArray;
     iList, iListEnd: PInteger;
     iList, iListEnd: PInteger;
-    hashList: TGIntegerList;
+    hashList: TgIntegerList;
   begin
   begin
     if a >= b then
     if a >= b then
     begin
     begin
@@ -804,7 +804,7 @@ var
   j, k: Integer;
   j, k: Integer;
   triIndicesList: PIntegerArray;
   triIndicesList: PIntegerArray;
 begin
 begin
-  Result := TGIntegerList.Create;
+  Result := TgIntegerList.Create;
   Result.Capacity := 1024;
   Result.Capacity := 1024;
   Result.GrowthDelta := 1024;
   Result.GrowthDelta := 1024;
   if Assigned(triangleEdges) then
   if Assigned(triangleEdges) then
@@ -815,7 +815,7 @@ begin
   k := (triangleIndices.Count div (cEdgesHashMax + 1)) + 128;
   k := (triangleIndices.Count div (cEdgesHashMax + 1)) + 128;
   for j := 0 to High(edgesHash) do
   for j := 0 to High(edgesHash) do
   begin
   begin
-    edgesHash[j] := TGIntegerList.Create;
+    edgesHash[j] := TgIntegerList.Create;
     edgesHash[j].Capacity := k;
     edgesHash[j].Capacity := k;
   end;
   end;
   // collect all edges
   // collect all edges
@@ -879,20 +879,20 @@ begin
     edgesHash[j].Free;
     edgesHash[j].Free;
 end;
 end;
 
 
-procedure IncreaseCoherency(indices: TGIntegerList; cacheSize: Integer);
+procedure IncreaseCoherency(indices: TgIntegerList; cacheSize: Integer);
 var
 var
   i, n, maxVertex, bestCandidate, bestScore, candidateIdx,
   i, n, maxVertex, bestCandidate, bestScore, candidateIdx,
     lastCandidate: Integer;
     lastCandidate: Integer;
-  trisOfVertex: array of TGIntegerList;
-  candidates: TGIntegerList;
+  trisOfVertex: array of TgIntegerList;
+  candidates: TgIntegerList;
   indicesList: PIntegerArray;
   indicesList: PIntegerArray;
 begin
 begin
   // Alloc lookup structure
   // Alloc lookup structure
   maxVertex := indices.MaxInteger;
   maxVertex := indices.MaxInteger;
   SetLength(trisOfVertex, maxVertex + 1);
   SetLength(trisOfVertex, maxVertex + 1);
   for i := 0 to High(trisOfVertex) do
   for i := 0 to High(trisOfVertex) do
-    trisOfVertex[i] := TGIntegerList.Create;
-  candidates := TGIntegerList.Create;
+    trisOfVertex[i] := TgIntegerList.Create;
+  candidates := TgIntegerList.Create;
   indicesList := PIntegerArray(indices.list);
   indicesList := PIntegerArray(indices.list);
   // Fillup lookup structure
   // Fillup lookup structure
   i := 0;
   i := 0;
@@ -968,7 +968,7 @@ begin
     trisOfVertex[i].Free;
     trisOfVertex[i].Free;
 end;
 end;
 
 
-procedure WeldVertices(vertices: TGAffineVectorList; indicesMap: TGIntegerList;
+procedure WeldVertices(vertices: TGAffineVectorList; indicesMap: TgIntegerList;
   weldRadius: Single);
   weldRadius: Single);
 var
 var
   i, j, n, k: Integer;
   i, j, n, k: Integer;
@@ -1032,21 +1032,21 @@ begin
   vertices.Count := k;
   vertices.Count := k;
 end;
 end;
 
 
-function StripifyMesh(indices: TGIntegerList; maxVertexIndex: Integer;
-  agglomerateLoneTriangles: Boolean = False): TGPersistentObjectList;
+function StripifyMesh(indices: TgIntegerList; maxVertexIndex: Integer;
+  agglomerateLoneTriangles: Boolean = False): TgPersistentObjectList;
 var
 var
   accountedTriangles: array of ByteBool;
   accountedTriangles: array of ByteBool;
-  vertexTris: array of TGIntegerList;
+  vertexTris: array of TgIntegerList;
   indicesList: PIntegerArray;
   indicesList: PIntegerArray;
   indicesCount: Integer;
   indicesCount: Integer;
-  currentStrip: TGIntegerList;
+  currentStrip: TgIntegerList;
   nextTriangle, nextVertex: Integer;
   nextTriangle, nextVertex: Integer;
 
 
   function FindTriangleWithEdge(vertA, vertB: Integer): Boolean;
   function FindTriangleWithEdge(vertA, vertB: Integer): Boolean;
   var
   var
     i, n: Integer;
     i, n: Integer;
     p: PIntegerArray;
     p: PIntegerArray;
-    list: TGIntegerList;
+    list: TgIntegerList;
   begin
   begin
     Result := False;
     Result := False;
     list := vertexTris[vertA];
     list := vertexTris[vertA];
@@ -1102,17 +1102,17 @@ var
 
 
 var
 var
   i, n, triangle: Integer;
   i, n, triangle: Integer;
-  loneTriangles: TGIntegerList;
+  loneTriangles: TgIntegerList;
 begin
 begin
   Assert((indices.Count mod 3) = 0, 'indices count is not a multiple of 3!');
   Assert((indices.Count mod 3) = 0, 'indices count is not a multiple of 3!');
-  Result := TGPersistentObjectList.Create;
+  Result := TgPersistentObjectList.Create;
   // direct access and cache vars
   // direct access and cache vars
   indicesList := indices.list;
   indicesList := indices.list;
   indicesCount := indices.Count;
   indicesCount := indices.Count;
   // Build adjacency lookup table (vertex based, not triangle based)
   // Build adjacency lookup table (vertex based, not triangle based)
   SetLength(vertexTris, maxVertexIndex + 1);
   SetLength(vertexTris, maxVertexIndex + 1);
   for i := 0 to High(vertexTris) do
   for i := 0 to High(vertexTris) do
-    vertexTris[i] := TGIntegerList.Create;
+    vertexTris[i] := TgIntegerList.Create;
   n := 0;
   n := 0;
   triangle := 0;
   triangle := 0;
   for i := 0 to indicesCount - 1 do
   for i := 0 to indicesCount - 1 do
@@ -1130,7 +1130,7 @@ begin
   SetLength(accountedTriangles, indicesCount); // yeah, waste of memory
   SetLength(accountedTriangles, indicesCount); // yeah, waste of memory
   if agglomerateLoneTriangles then
   if agglomerateLoneTriangles then
   begin
   begin
-    loneTriangles := TGIntegerList.Create;
+    loneTriangles := TgIntegerList.Create;
     Result.Add(loneTriangles);
     Result.Add(loneTriangles);
   end
   end
   else
   else
@@ -1143,19 +1143,19 @@ begin
       accountedTriangles[i] := True;
       accountedTriangles[i] := True;
       if FindTriangleWithEdge(indicesList[i + 1], indicesList[i]) then
       if FindTriangleWithEdge(indicesList[i + 1], indicesList[i]) then
       begin
       begin
-        currentStrip := TGIntegerList.Create;
+        currentStrip := TgIntegerList.Create;
         currentStrip.Add(indicesList[i + 2]);
         currentStrip.Add(indicesList[i + 2]);
         BuildStrip(indicesList[i], indicesList[i + 1]);
         BuildStrip(indicesList[i], indicesList[i + 1]);
       end
       end
       else if FindTriangleWithEdge(indicesList[i + 2], indicesList[i + 1]) then
       else if FindTriangleWithEdge(indicesList[i + 2], indicesList[i + 1]) then
       begin
       begin
-        currentStrip := TGIntegerList.Create;
+        currentStrip := TgIntegerList.Create;
         currentStrip.Add(indicesList[i]);
         currentStrip.Add(indicesList[i]);
         BuildStrip(indicesList[i + 1], indicesList[i + 2]);
         BuildStrip(indicesList[i + 1], indicesList[i + 2]);
       end
       end
       else if FindTriangleWithEdge(indicesList[i], indicesList[i + 2]) then
       else if FindTriangleWithEdge(indicesList[i], indicesList[i + 2]) then
       begin
       begin
-        currentStrip := TGIntegerList.Create;
+        currentStrip := TgIntegerList.Create;
         currentStrip.Add(indicesList[i + 1]);
         currentStrip.Add(indicesList[i + 1]);
         BuildStrip(indicesList[i + 2], indicesList[i]);
         BuildStrip(indicesList[i + 2], indicesList[i]);
       end
       end
@@ -1164,7 +1164,7 @@ begin
         if agglomerateLoneTriangles then
         if agglomerateLoneTriangles then
           currentStrip := loneTriangles
           currentStrip := loneTriangles
         else
         else
-          currentStrip := TGIntegerList.Create;
+          currentStrip := TgIntegerList.Create;
         currentStrip.Add(indicesList[i], indicesList[i + 1],
         currentStrip.Add(indicesList[i], indicesList[i + 1],
           indicesList[i + 2]);
           indicesList[i + 2]);
       end;
       end;
@@ -1179,17 +1179,17 @@ begin
 end;
 end;
 
 
 procedure SubdivideTriangles(smoothFactor: Single; vertices: TGAffineVectorList;
 procedure SubdivideTriangles(smoothFactor: Single; vertices: TGAffineVectorList;
-  triangleIndices: TGIntegerList; normals: TGAffineVectorList = nil;
+  triangleIndices: TgIntegerList; normals: TGAffineVectorList = nil;
   onSubdivideEdge: TSubdivideEdgeEvent = nil);
   onSubdivideEdge: TSubdivideEdgeEvent = nil);
 var
 var
   i, a, b, c, nv: Integer;
   i, a, b, c, nv: Integer;
-  edges: TGIntegerList;
-  triangleEdges: TGIntegerList;
+  edges: TgIntegerList;
+  triangleEdges: TgIntegerList;
   p, n: TAffineVector;
   p, n: TAffineVector;
   f: Single;
   f: Single;
 begin
 begin
   // build edges list
   // build edges list
-  triangleEdges := TGIntegerList.Create;
+  triangleEdges := TgIntegerList.Create;
   try
   try
     edges := BuildNonOrientedEdgesList(triangleIndices, triangleEdges);
     edges := BuildNonOrientedEdgesList(triangleIndices, triangleEdges);
     try
     try

+ 1 - 1
Source/GLS.Mirror.pas

@@ -26,7 +26,7 @@ uses
   GLS.State,
   GLS.State,
   GLScene.VectorTypes,
   GLScene.VectorTypes,
   GLScene.PersistentClasses,
   GLScene.PersistentClasses,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLScene.XCollection,
   GLScene.XCollection,
   GLS.Texture;
   GLS.Texture;
 
 

+ 3 - 3
Source/GLS.MultiPolygon.pas

@@ -95,7 +95,7 @@ type
     procedure GetExtents(var min, max: TAffineVector);
     procedure GetExtents(var min, max: TAffineVector);
   end;
   end;
 
 
-  TGLPolygonList = class(TGPersistentObjectList)
+  TGLPolygonList = class(TgPersistentObjectList)
   private
   private
     FAktList: TGAffineVectorList;
     FAktList: TGAffineVectorList;
     function GetList(I: Integer): TGAffineVectorList;
     function GetList(I: Integer): TGAffineVectorList;
@@ -139,7 +139,7 @@ type
     constructor Create(AOwner: TComponent); override;
     constructor Create(AOwner: TComponent); override;
     destructor Destroy; override;
     destructor Destroy; override;
     procedure Assign(Source: TPersistent); override;
     procedure Assign(Source: TPersistent); override;
-    procedure AddNode(const i: Integer; const coords: TGCoordinates); overload;
+    procedure AddNode(const i: Integer; const coords: TgCoordinates); overload;
     procedure AddNode(const i: Integer; const X, Y, Z: TGLfloat); overload;
     procedure AddNode(const i: Integer; const X, Y, Z: TGLfloat); overload;
     procedure AddNode(const i: Integer; const value: TGLVector); overload;
     procedure AddNode(const i: Integer; const value: TGLVector); overload;
     procedure AddNode(const i: Integer; const value: TAffineVector); overload;
     procedure AddNode(const i: Integer; const value: TAffineVector); overload;
@@ -436,7 +436,7 @@ begin
 end;
 end;
 
 
 
 
-procedure TGLMultiPolygonBase.AddNode(const i: Integer; const coords: TGCoordinates);
+procedure TGLMultiPolygonBase.AddNode(const i: Integer; const coords: TgCoordinates);
 begin
 begin
   Path[i].AddNode(coords);
   Path[i].AddNode(coords);
 end;
 end;

+ 55 - 55
Source/GLS.NGDManager.pas

@@ -147,10 +147,10 @@ type
     FSolverModel: TGLNGDSolverModels; // Default=Exact
     FSolverModel: TGLNGDSolverModels; // Default=Exact
     FFrictionModel: TGLNGDFrictionModels; // Default=Exact
     FFrictionModel: TGLNGDFrictionModels; // Default=Exact
     FMinimumFrameRate: Integer; // Default=60
     FMinimumFrameRate: Integer; // Default=60
-    FWorldSizeMin: TGCoordinates; // Default=-100, -100, -100
-    FWorldSizeMax: TGCoordinates; // Default=100, 100, 100
+    FWorldSizeMin: TgCoordinates; // Default=-100, -100, -100
+    FWorldSizeMax: TgCoordinates; // Default=100, 100, 100
     FThreadCount: Integer; // Default=1
     FThreadCount: Integer; // Default=1
-    FGravity: TGCoordinates; // Default=(0,-9.81,0)
+    FGravity: TgCoordinates; // Default=(0,-9.81,0)
     FNewtonSurfaceItem: TCollection;
     FNewtonSurfaceItem: TCollection;
     FNewtonSurfacePair: TOwnedCollection;
     FNewtonSurfacePair: TOwnedCollection;
     FNewtonJointGroup: TOwnedCollection;
     FNewtonJointGroup: TOwnedCollection;
@@ -171,7 +171,7 @@ type
     procedure SetGLLines(const Value: TGLLines);
     procedure SetGLLines(const Value: TGLLines);
     function GetBodyCount: Integer;
     function GetBodyCount: Integer;
     function GetConstraintCount: Integer;
     function GetConstraintCount: Integer;
-    procedure AddNode(const coords: TGCustomCoordinates); overload;
+    procedure AddNode(const coords: TgCustomCoordinates); overload;
     procedure AddNode(const X, Y, Z: Single); overload;
     procedure AddNode(const X, Y, Z: Single); overload;
     procedure AddNode(const Value: TGLVector); overload;
     procedure AddNode(const Value: TGLVector); overload;
     procedure AddNode(const Value: TAffineVector); overload;
     procedure AddNode(const Value: TAffineVector); overload;
@@ -196,9 +196,9 @@ type
     property DllVersion: Integer read FDllVersion;
     property DllVersion: Integer read FDllVersion;
     property NewtonBodyCount: Integer read GetBodyCount;
     property NewtonBodyCount: Integer read GetBodyCount;
     property NewtonConstraintCount: Integer read GetConstraintCount;
     property NewtonConstraintCount: Integer read GetConstraintCount;
-    property Gravity: TGCoordinates read FGravity write FGravity;
-    property WorldSizeMin: TGCoordinates read FWorldSizeMin write FWorldSizeMin;
-    property WorldSizeMax: TGCoordinates read FWorldSizeMax write FWorldSizeMax;
+    property Gravity: TgCoordinates read FGravity write FGravity;
+    property WorldSizeMin: TgCoordinates read FWorldSizeMin write FWorldSizeMin;
+    property WorldSizeMax: TgCoordinates read FWorldSizeMax write FWorldSizeMax;
     property NewtonSurfaceItem: TCollection read FNewtonSurfaceItem write FNewtonSurfaceItem;
     property NewtonSurfaceItem: TCollection read FNewtonSurfaceItem write FNewtonSurfaceItem;
     property NewtonSurfacePair: TOwnedCollection read FNewtonSurfacePair write FNewtonSurfacePair;
     property NewtonSurfacePair: TOwnedCollection read FNewtonSurfacePair write FNewtonSurfacePair;
     property DebugOption: TGLNGDDebugOption read FNewtonDebugOption write FNewtonDebugOption;
     property DebugOption: TGLNGDDebugOption read FNewtonDebugOption write FNewtonDebugOption;
@@ -289,14 +289,14 @@ type
 
 
   TGLNGDDynamic = class(TGLNGDBehaviour)
   TGLNGDDynamic = class(TGLNGDBehaviour)
   strict private
   strict private
-    FAABBmin: TGCoordinates;
-    FAABBmax: TGCoordinates;
-    FForce: TGCoordinates;
-    FTorque: TGCoordinates;
-    FCenterOfMass: TGCoordinates;
+    FAABBmin: TgCoordinates;
+    FAABBmax: TgCoordinates;
+    FForce: TgCoordinates;
+    FTorque: TgCoordinates;
+    FCenterOfMass: TgCoordinates;
     FAutoSleep: Boolean; // Default=True
     FAutoSleep: Boolean; // Default=True
     FLinearDamping: Single; // default=0.1
     FLinearDamping: Single; // default=0.1
-    FAngularDamping: TGCoordinates; // Default=0.1
+    FAngularDamping: TgCoordinates; // Default=0.1
     FDensity: Single; // Default=1
     FDensity: Single; // Default=1
     FUseGravity: Boolean; // Default=True
     FUseGravity: Boolean; // Default=True
     FNullCollisionVolume: Single; // Default=0
     FNullCollisionVolume: Single; // Default=0
@@ -306,10 +306,10 @@ type
     // Read Only
     // Read Only
     FVolume: Single;
     FVolume: Single;
     FMass: Single;
     FMass: Single;
-    FAppliedForce: TGCoordinates;
-    FAppliedTorque: TGCoordinates;
-    FAppliedOmega: TGCoordinates;
-    FAppliedVelocity: TGCoordinates;
+    FAppliedForce: TgCoordinates;
+    FAppliedTorque: TgCoordinates;
+    FAppliedOmega: TgCoordinates;
+    FAppliedVelocity: TgCoordinates;
     function StoredDensity: Boolean;
     function StoredDensity: Boolean;
     function StoredLinearDamping: Boolean;
     function StoredLinearDamping: Boolean;
     function StoredNullCollisionVolume: Boolean;
     function StoredNullCollisionVolume: Boolean;
@@ -349,22 +349,22 @@ type
     property Velocity: TGLVector read GetVelocity write SetVelocity;
     property Velocity: TGLVector read GetVelocity write SetVelocity;
     property Omega: TGLVector read GetOmega write SetOmega;
     property Omega: TGLVector read GetOmega write SetOmega;
   published
   published
-    property Force: TGCoordinates read FForce write FForce;
-    property Torque: TGCoordinates read FTorque write FTorque;
-    property CenterOfMass: TGCoordinates read FCenterOfMass write FCenterOfMass;
+    property Force: TgCoordinates read FForce write FForce;
+    property Torque: TgCoordinates read FTorque write FTorque;
+    property CenterOfMass: TgCoordinates read FCenterOfMass write FCenterOfMass;
     property AutoSleep: Boolean read FAutoSleep write SetAutoSleep default True;
     property AutoSleep: Boolean read FAutoSleep write SetAutoSleep default True;
     property LinearDamping: Single read FLinearDamping write SetLinearDamping
     property LinearDamping: Single read FLinearDamping write SetLinearDamping
       stored StoredLinearDamping;
       stored StoredLinearDamping;
-    property AngularDamping: TGCoordinates read FAngularDamping write FAngularDamping;
+    property AngularDamping: TgCoordinates read FAngularDamping write FAngularDamping;
     property Density: Single read FDensity write SetDensity stored StoredDensity;
     property Density: Single read FDensity write SetDensity stored StoredDensity;
     property UseGravity: Boolean read FUseGravity write FUseGravity default True;
     property UseGravity: Boolean read FUseGravity write FUseGravity default True;
     property NullCollisionVolume: Single read FNullCollisionVolume write FNullCollisionVolume
     property NullCollisionVolume: Single read FNullCollisionVolume write FNullCollisionVolume
       stored StoredNullCollisionVolume;
       stored StoredNullCollisionVolume;
     // Read Only
     // Read Only
-    property AppliedOmega: TGCoordinates read FAppliedOmega;
-    property AppliedVelocity: TGCoordinates read FAppliedVelocity;
-    property AppliedForce: TGCoordinates read FAppliedForce;
-    property AppliedTorque: TGCoordinates read FAppliedTorque;
+    property AppliedOmega: TgCoordinates read FAppliedOmega;
+    property AppliedVelocity: TgCoordinates read FAppliedVelocity;
+    property AppliedForce: TgCoordinates read FAppliedForce;
+    property AppliedTorque: TgCoordinates read FAppliedTorque;
     property Volume: Single read FVolume;
     property Volume: Single read FVolume;
     property Mass: Single read FMass;
     property Mass: Single read FMass;
   end;
   end;
@@ -448,33 +448,33 @@ type
   TGLNGDJointPivot = class(TPersistent)
   TGLNGDJointPivot = class(TPersistent)
   private
   private
     FManager: TGLNGDManager;
     FManager: TGLNGDManager;
-    FPivotPoint: TGCoordinates;
+    FPivotPoint: TgCoordinates;
     FOuter: TGLNGDJoint;
     FOuter: TGLNGDJoint;
   public
   public
     constructor Create(AOwner: TComponent; aOuter: TGLNGDJoint); virtual;
     constructor Create(AOwner: TComponent; aOuter: TGLNGDJoint); virtual;
     destructor Destroy; override;
     destructor Destroy; override;
   published
   published
-    property PivotPoint: TGCoordinates read FPivotPoint write FPivotPoint;
+    property PivotPoint: TgCoordinates read FPivotPoint write FPivotPoint;
   end;
   end;
 
 
   TGLNGDJointPin = class(TGLNGDJointPivot)
   TGLNGDJointPin = class(TGLNGDJointPivot)
   private
   private
-    FPinDirection: TGCoordinates;
+    FPinDirection: TgCoordinates;
   public
   public
     constructor Create(AOwner: TComponent; aOuter: TGLNGDJoint); override;
     constructor Create(AOwner: TComponent; aOuter: TGLNGDJoint); override;
     destructor Destroy; override;
     destructor Destroy; override;
   published
   published
-    property PinDirection: TGCoordinates read FPinDirection write FPinDirection;
+    property PinDirection: TgCoordinates read FPinDirection write FPinDirection;
   end;
   end;
 
 
   TGLNGDJointPin2 = class(TGLNGDJointPin)
   TGLNGDJointPin2 = class(TGLNGDJointPin)
   private
   private
-    FPinDirection2: TGCoordinates;
+    FPinDirection2: TgCoordinates;
   public
   public
     constructor Create(AOwner: TComponent; aOuter: TGLNGDJoint); override;
     constructor Create(AOwner: TComponent; aOuter: TGLNGDJoint); override;
     destructor Destroy; override;
     destructor Destroy; override;
   published
   published
-    property PinDirection2: TGCoordinates read FPinDirection2 write FPinDirection2;
+    property PinDirection2: TgCoordinates read FPinDirection2 write FPinDirection2;
   end;
   end;
 
 
   TGLNGDJointBallAndSocket = class(TGLNGDJointPivot)
   TGLNGDJointBallAndSocket = class(TGLNGDJointPivot)
@@ -565,7 +565,7 @@ type
     // nj_KinematicController
     // nj_KinematicController
     FNewtonUserJoint: Pointer;
     FNewtonUserJoint: Pointer;
     // nj_UpVector
     // nj_UpVector
-    FUPVectorDirection: TGCoordinates;
+    FUPVectorDirection: TgCoordinates;
     FBallAndSocketOptions: TGLNGDJointPivot;
     FBallAndSocketOptions: TGLNGDJointPivot;
     FHingeOptions: TGLNGDJointPin;
     FHingeOptions: TGLNGDJointPin;
     FSliderOptions: TGLNGDJointPin;
     FSliderOptions: TGLNGDJointPin;
@@ -607,7 +607,7 @@ type
     property ChildObject: TGLBaseSceneObject read FChildObject write SetChildObject;
     property ChildObject: TGLBaseSceneObject read FChildObject write SetChildObject;
     property CollisionState: Boolean read FCollisionState write SetCollisionState default False;
     property CollisionState: Boolean read FCollisionState write SetCollisionState default False;
     property Stiffness: Single read FStiffness write SetStiffness stored StoredStiffness;
     property Stiffness: Single read FStiffness write SetStiffness stored StoredStiffness;
-    property UPVectorDirection: TGCoordinates read FUPVectorDirection write FUPVectorDirection;
+    property UPVectorDirection: TgCoordinates read FUPVectorDirection write FUPVectorDirection;
   end;
   end;
 
 
   // Global function
   // Global function
@@ -731,7 +731,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGLNGDManager.AddNode(const coords: TGCustomCoordinates);
+procedure TGLNGDManager.AddNode(const coords: TgCustomCoordinates);
 begin
 begin
   if Assigned(FGLLines) then
   if Assigned(FGLLines) then
   begin
   begin
@@ -769,16 +769,16 @@ begin
   FSolverModel := smExact;
   FSolverModel := smExact;
   FFrictionModel := fmExact;
   FFrictionModel := fmExact;
   FMinimumFrameRate := 60;
   FMinimumFrameRate := 60;
-  FWorldSizeMin := TGCoordinates.CreateInitialized(self, VectorMake(-100, -100, -100, 0), csPoint);
-  FWorldSizeMax := TGCoordinates.CreateInitialized(self, VectorMake(100, 100, 100, 0), csPoint);
+  FWorldSizeMin := TgCoordinates.CreateInitialized(self, VectorMake(-100, -100, -100, 0), csPoint);
+  FWorldSizeMax := TgCoordinates.CreateInitialized(self, VectorMake(100, 100, 100, 0), csPoint);
 
 
   // Using Events because we need to call API Function when
   // Using Events because we need to call API Function when
-  // theses TGCoordinates change.
+  // theses TgCoordinates change.
   FWorldSizeMin.OnNotifyChange := NotifyWorldSizeChange;
   FWorldSizeMin.OnNotifyChange := NotifyWorldSizeChange;
   FWorldSizeMax.OnNotifyChange := NotifyWorldSizeChange;
   FWorldSizeMax.OnNotifyChange := NotifyWorldSizeChange;
 
 
   FThreadCount := 1;
   FThreadCount := 1;
-  FGravity := TGCoordinates3.CreateInitialized(self, VectorMake(0, -9.81, 0, 0), csVector);
+  FGravity := TgCoordinates3.CreateInitialized(self, VectorMake(0, -9.81, 0, 0), csVector);
 
 
   FNewtonWorld := NewtonCreate(nil, nil);
   FNewtonWorld := NewtonCreate(nil, nil);
   FDllVersion := NewtonWorldGetVersion(FNewtonWorld);
   FDllVersion := NewtonWorldGetVersion(FNewtonWorld);
@@ -1209,8 +1209,8 @@ begin
         BuildOneJoint(NewtonJoint.Items[I] as TGLNGDJoint);
         BuildOneJoint(NewtonJoint.Items[I] as TGLNGDJoint);
     if (Sender is TGLNGDJoint) then
     if (Sender is TGLNGDJoint) then
       BuildOneJoint((Sender as TGLNGDJoint));
       BuildOneJoint((Sender as TGLNGDJoint));
-    if Sender is TGCoordinates then
-      BuildOneJoint(((Sender as TGCoordinates).Owner as TGLNGDJoint));
+    if Sender is TgCoordinates then
+      BuildOneJoint(((Sender as TgCoordinates).Owner as TGLNGDJoint));
     NotifyChange(self);
     NotifyChange(self);
   end;
   end;
 end;
 end;
@@ -1866,20 +1866,20 @@ begin
   inherited;
   inherited;
   FAutoSleep := True;
   FAutoSleep := True;
   FLinearDamping := 0.1;
   FLinearDamping := 0.1;
-  FAngularDamping := TGCoordinates.CreateInitialized(self, VectorMake(0.1, 0.1, 0.1, 0), csPoint);
+  FAngularDamping := TgCoordinates.CreateInitialized(self, VectorMake(0.1, 0.1, 0.1, 0), csPoint);
   FAngularDamping.OnNotifyChange := NotifyAngularDampingChange;
   FAngularDamping.OnNotifyChange := NotifyAngularDampingChange;
   FDensity := 1;
   FDensity := 1;
   FVolume := 1;
   FVolume := 1;
-  FForce := TGCoordinates.CreateInitialized(self, NullHmgVector, csVector);
-  FTorque := TGCoordinates.CreateInitialized(self, NullHmgVector, csVector);
-  FCenterOfMass := TGCoordinates.CreateInitialized(self, NullHmgVector, csPoint);
+  FForce := TgCoordinates.CreateInitialized(self, NullHmgVector, csVector);
+  FTorque := TgCoordinates.CreateInitialized(self, NullHmgVector, csVector);
+  FCenterOfMass := TgCoordinates.CreateInitialized(self, NullHmgVector, csPoint);
   FCenterOfMass.OnNotifyChange := NotifyCenterOfMassChange;
   FCenterOfMass.OnNotifyChange := NotifyCenterOfMassChange;
-  FAABBmin := TGCoordinates.CreateInitialized(self, NullHmgVector, csPoint);
-  FAABBmax := TGCoordinates.CreateInitialized(self, NullHmgVector, csPoint);
-  FAppliedOmega := TGCoordinates.CreateInitialized(self, NullHmgVector, csVector);
-  FAppliedVelocity := TGCoordinates.CreateInitialized(self, NullHmgVector, csVector);
-  FAppliedForce := TGCoordinates.CreateInitialized(self, NullHmgVector, csVector);
-  FAppliedTorque := TGCoordinates.CreateInitialized(self, NullHmgVector, csVector);
+  FAABBmin := TgCoordinates.CreateInitialized(self, NullHmgVector, csPoint);
+  FAABBmax := TgCoordinates.CreateInitialized(self, NullHmgVector, csPoint);
+  FAppliedOmega := TgCoordinates.CreateInitialized(self, NullHmgVector, csVector);
+  FAppliedVelocity := TgCoordinates.CreateInitialized(self, NullHmgVector, csVector);
+  FAppliedForce := TgCoordinates.CreateInitialized(self, NullHmgVector, csVector);
+  FAppliedTorque := TgCoordinates.CreateInitialized(self, NullHmgVector, csVector);
   FUseGravity := True;
   FUseGravity := True;
   FNullCollisionVolume := 0;
   FNullCollisionVolume := 0;
 
 
@@ -1938,7 +1938,7 @@ end;
 
 
 procedure TGLNGDDynamic.Render;
 procedure TGLNGDDynamic.Render;
 
 
-  procedure DrawAABB(min, max: TGCoordinates3);
+  procedure DrawAABB(min, max: TgCoordinates3);
   begin
   begin
     (*
     (*
       //    H________G
       //    H________G
@@ -2485,7 +2485,7 @@ begin
   FCustomSliderOptions := TGLNGDJointSlider.Create(FManager, self);
   FCustomSliderOptions := TGLNGDJointSlider.Create(FManager, self);
   FKinematicOptions := TGLNGDJointKinematicController.Create;
   FKinematicOptions := TGLNGDJointKinematicController.Create;
 
 
-  FUPVectorDirection := TGCoordinates.CreateInitialized(self, YHmgVector, csVector);
+  FUPVectorDirection := TgCoordinates.CreateInitialized(self, YHmgVector, csVector);
   FUPVectorDirection.OnNotifyChange := FManager.RebuildAllJoint;
   FUPVectorDirection.OnNotifyChange := FManager.RebuildAllJoint;
 end;
 end;
 
 
@@ -2743,7 +2743,7 @@ constructor TGLNGDJointPivot.Create(AOwner: TComponent; aOuter: TGLNGDJoint);
 begin
 begin
   FManager := AOwner as TGLNGDManager;
   FManager := AOwner as TGLNGDManager;
   FOuter := aOuter;
   FOuter := aOuter;
-  FPivotPoint := TGCoordinates.CreateInitialized(aOuter, NullHMGPoint, csPoint);
+  FPivotPoint := TgCoordinates.CreateInitialized(aOuter, NullHMGPoint, csPoint);
   FPivotPoint.OnNotifyChange := FManager.RebuildAllJoint;
   FPivotPoint.OnNotifyChange := FManager.RebuildAllJoint;
 end;
 end;
 
 
@@ -2759,7 +2759,7 @@ end;
 constructor TGLNGDJointPin.Create(AOwner: TComponent; aOuter: TGLNGDJoint);
 constructor TGLNGDJointPin.Create(AOwner: TComponent; aOuter: TGLNGDJoint);
 begin
 begin
   inherited;
   inherited;
-  FPinDirection := TGCoordinates.CreateInitialized(aOuter, NullHmgVector, csVector);
+  FPinDirection := TgCoordinates.CreateInitialized(aOuter, NullHmgVector, csVector);
   FPinDirection.OnNotifyChange := FManager.RebuildAllJoint;
   FPinDirection.OnNotifyChange := FManager.RebuildAllJoint;
 end;
 end;
 
 
@@ -2776,7 +2776,7 @@ end;
 constructor TGLNGDJointPin2.Create(AOwner: TComponent; aOuter: TGLNGDJoint);
 constructor TGLNGDJointPin2.Create(AOwner: TComponent; aOuter: TGLNGDJoint);
 begin
 begin
   inherited;
   inherited;
-  FPinDirection2 := TGCoordinates.CreateInitialized(aOuter, NullHmgVector, csVector);
+  FPinDirection2 := TgCoordinates.CreateInitialized(aOuter, NullHmgVector, csVector);
   FPinDirection2.OnNotifyChange := FManager.RebuildAllJoint;
   FPinDirection2.OnNotifyChange := FManager.RebuildAllJoint;
 end;
 end;
 
 

+ 5 - 5
Source/GLS.Navigator.pas

@@ -57,7 +57,7 @@ type
   private
   private
     FObject: TGLBaseSceneObject;
     FObject: TGLBaseSceneObject;
     FVirtualRight: TGLVector;
     FVirtualRight: TGLVector;
-    FVirtualUp: TGCoordinates;
+    FVirtualUp: TgCoordinates;
     FUseVirtualUp: boolean;
     FUseVirtualUp: boolean;
     FAutoUpdateObject: boolean;
     FAutoUpdateObject: boolean;
     FMaxAngle: single;
     FMaxAngle: single;
@@ -72,7 +72,7 @@ type
       Operation: TOperation); override;
       Operation: TOperation); override;
     procedure SetObject(NewObject: TGLBaseSceneObject); virtual;
     procedure SetObject(NewObject: TGLBaseSceneObject); virtual;
     procedure SetUseVirtualUp(UseIt: boolean);
     procedure SetUseVirtualUp(UseIt: boolean);
-    procedure SetVirtualUp(Up: TGCoordinates);
+    procedure SetVirtualUp(Up: TgCoordinates);
     function CalcRight: TGLVector;
     function CalcRight: TGLVector;
   public
   public
     constructor Create(AOwner: TComponent); override;
     constructor Create(AOwner: TComponent); override;
@@ -94,7 +94,7 @@ type
     property InvertHorizontalSteeringWhenUpsideDown: boolean
     property InvertHorizontalSteeringWhenUpsideDown: boolean
       read FInvertHorizontalSteeringWhenUpsideDown
       read FInvertHorizontalSteeringWhenUpsideDown
       write FInvertHorizontalSteeringWhenUpsideDown default False;
       write FInvertHorizontalSteeringWhenUpsideDown default False;
-    property VirtualUp: TGCoordinates read FVirtualUp write SetVirtualUp;
+    property VirtualUp: TgCoordinates read FVirtualUp write SetVirtualUp;
     property MovingObject: TGLBaseSceneObject read FObject write SetObject;
     property MovingObject: TGLBaseSceneObject read FObject write SetObject;
     property UseVirtualUp: boolean read FUseVirtualUp write SetUseVirtualUp
     property UseVirtualUp: boolean read FUseVirtualUp write SetUseVirtualUp
       default False;
       default False;
@@ -191,7 +191,7 @@ implementation
 constructor TGLNavigator.Create(AOwner: TComponent);
 constructor TGLNavigator.Create(AOwner: TComponent);
 begin
 begin
   inherited;
   inherited;
-  FVirtualUp := TGCoordinates.CreateInitialized(Self, ZHmgVector, csPoint);
+  FVirtualUp := TgCoordinates.CreateInitialized(Self, ZHmgVector, csPoint);
   FCurrentVAngle := 0;
   FCurrentVAngle := 0;
   FCurrentHAngle := 0;
   FCurrentHAngle := 0;
 end;
 end;
@@ -411,7 +411,7 @@ begin
     FVirtualRight := CalcRight;
     FVirtualRight := CalcRight;
 end;
 end;
 
 
-procedure TGLNavigator.SetVirtualUp(Up: TGCoordinates);
+procedure TGLNavigator.SetVirtualUp(Up: TgCoordinates);
 begin
 begin
   FVirtualUp.Assign(Up);
   FVirtualUp.Assign(Up);
   if csdesigning in componentstate then
   if csdesigning in componentstate then

+ 3 - 3
Source/GLS.Nodes.pas

@@ -72,8 +72,8 @@ type
     function Last: TGLNode;
     function Last: TGLNode;
     procedure NotifyChange; virtual;
     procedure NotifyChange; virtual;
     procedure EndUpdate; override;
     procedure EndUpdate; override;
-    // AddNode (TGCustomCoordinates)
-    procedure AddNode(const Coords: TGCustomCoordinates); overload;
+    // AddNode (TgCustomCoordinates)
+    procedure AddNode(const Coords: TgCustomCoordinates); overload;
     procedure AddNode(const X, Y, Z: TGLfloat); overload;
     procedure AddNode(const X, Y, Z: TGLfloat); overload;
     procedure AddNode(const Value: TGLVector); overload;
     procedure AddNode(const Value: TGLVector); overload;
     procedure AddNode(const Value: TAffineVector); overload;
     procedure AddNode(const Value: TAffineVector); overload;
@@ -267,7 +267,7 @@ begin
     NotifyChange;
     NotifyChange;
 end;
 end;
 
 
-procedure TGLNodes.AddNode(const Coords: TGCustomCoordinates);
+procedure TGLNodes.AddNode(const Coords: TgCustomCoordinates);
 begin
 begin
   Add.AsVector := Coords.AsVector;
   Add.AsVector := Coords.AsVector;
 end;
 end;

+ 71 - 71
Source/GLS.ODEManager.pas

@@ -18,7 +18,7 @@ uses
   GLScene.VectorTypes,
   GLScene.VectorTypes,
   GLScene.VectorLists,
   GLScene.VectorLists,
   GLScene.VectorGeometry,
   GLScene.VectorGeometry,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLScene.PersistentClasses,
   GLScene.PersistentClasses,
   GLScene.Manager,
   GLScene.Manager,
   GLScene.XCollection,
   GLScene.XCollection,
@@ -59,12 +59,12 @@ type
     FWorld: PdxWorld;
     FWorld: PdxWorld;
     FSpace: PdxSpace;
     FSpace: PdxSpace;
     FContactGroup: TdJointGroupID;
     FContactGroup: TdJointGroupID;
-    FGravity: TGCoordinates;
+    FGravity: TgCoordinates;
     FOnCollision: TGLODECollisionEvent;
     FOnCollision: TGLODECollisionEvent;
     FOnCustomCollision: TGLODECustomCollisionEvent;
     FOnCustomCollision: TGLODECustomCollisionEvent;
     FNumContactJoints,
     FNumContactJoints,
 	FMaxContacts: Integer;
 	FMaxContacts: Integer;
-    FODEBehaviours: TGPersistentObjectList;
+    FODEBehaviours: TgPersistentObjectList;
     FRFContactList: TList;
     FRFContactList: TList;
     FIterations: Integer;
     FIterations: Integer;
     FSolver: TGLODESolverMethod;
     FSolver: TGLODESolverMethod;
@@ -82,7 +82,7 @@ type
     procedure Collision(g1, g2: PdxGeom);
     procedure Collision(g1, g2: PdxGeom);
     procedure GravityChange(Sender: TObject);
     procedure GravityChange(Sender: TObject);
     procedure SetMaxContacts(const Value: Integer);
     procedure SetMaxContacts(const Value: Integer);
-    procedure SetGravity(Value: TGCoordinates);
+    procedure SetGravity(Value: TgCoordinates);
     procedure SetIterations(const val: Integer);
     procedure SetIterations(const val: Integer);
     function GetODEBehaviour(index: Integer): TGLODEBehaviour;
     function GetODEBehaviour(index: Integer): TGLODEBehaviour;
     procedure RegisterODEBehaviour(ODEBehaviour: TGLODEBehaviour);
     procedure RegisterODEBehaviour(ODEBehaviour: TGLODEBehaviour);
@@ -109,7 +109,7 @@ type
     property ContactGroup: TdJointGroupID read FContactGroup;
     property ContactGroup: TdJointGroupID read FContactGroup;
     property NumContactJoints: Integer read FNumContactJoints;
     property NumContactJoints: Integer read FNumContactJoints;
   published
   published
-    property Gravity: TGCoordinates read FGravity write SetGravity;
+    property Gravity: TgCoordinates read FGravity write SetGravity;
     property OnCollision: TGLODECollisionEvent read FOnCollision write FOnCollision;
     property OnCollision: TGLODECollisionEvent read FOnCollision write FOnCollision;
     property OnCustomCollision: TGLODECustomCollisionEvent read FOnCustomCollision write FOnCustomCollision;
     property OnCustomCollision: TGLODECustomCollisionEvent read FOnCustomCollision write FOnCustomCollision;
     property Solver: TGLODESolverMethod read FSolver write FSolver;
     property Solver: TGLODESolverMethod read FSolver write FSolver;
@@ -293,7 +293,7 @@ type
 	FGeomElement: PdxGeom;
 	FGeomElement: PdxGeom;
     FPosition, 
     FPosition, 
 	FDirection, 
 	FDirection, 
-	FUp: TGCoordinates;
+	FUp: TgCoordinates;
     FLocalMatrix: TGLMatrix;
     FLocalMatrix: TGLMatrix;
     FRealignODE,
     FRealignODE,
 	FInitialized,
 	FInitialized,
@@ -316,9 +316,9 @@ type
     procedure SetDensity(const Value: TdReal);
     procedure SetDensity(const Value: TdReal);
     procedure SetMatrix(const Value: TGLMatrix);
     procedure SetMatrix(const Value: TGLMatrix);
     function GetMatrix: TGLMatrix;
     function GetMatrix: TGLMatrix;
-    procedure SetPosition(const Value: TGCoordinates);
-    procedure SetDirection(const Value: TGCoordinates);
-    procedure SetUp(const Value: TGCoordinates);
+    procedure SetPosition(const Value: TgCoordinates);
+    procedure SetDirection(const Value: TgCoordinates);
+    procedure SetUp(const Value: TgCoordinates);
   public
   public
     constructor Create(AOwner: TXCollection); override;
     constructor Create(AOwner: TXCollection); override;
     destructor Destroy; override;
     destructor Destroy; override;
@@ -331,9 +331,9 @@ type
     property Initialized: Boolean read FInitialized;
     property Initialized: Boolean read FInitialized;
   published
   published
     property Density: TdReal read FDensity write SetDensity;
     property Density: TdReal read FDensity write SetDensity;
-    property Position: TGCoordinates read FPosition write SetPosition;
-    property Direction: TGCoordinates read FDirection write SetDirection;
-    property Up: TGCoordinates read FUp write SetUp;
+    property Position: TgCoordinates read FPosition write SetPosition;
+    property Direction: TgCoordinates read FDirection write SetDirection;
+    property Up: TgCoordinates read FUp write SetUp;
   end;
   end;
 
 
   // ODE box implementation
   // ODE box implementation
@@ -445,7 +445,7 @@ type
   private
   private
     FTriMeshData: PdxTriMeshData;
     FTriMeshData: PdxTriMeshData;
     FVertices: TGAffineVectorList;
     FVertices: TGAffineVectorList;
-    FIndices: TGIntegerList;
+    FIndices: TgIntegerList;
   protected
   protected
     procedure Initialize; override;
     procedure Initialize; override;
     procedure Finalize; override;
     procedure Finalize; override;
@@ -453,7 +453,7 @@ type
     procedure WriteToFiler(writer: TWriter); override;
     procedure WriteToFiler(writer: TWriter); override;
     procedure ReadFromFiler(reader: TReader); override;
     procedure ReadFromFiler(reader: TReader); override;
     procedure SetVertices(const Value: TGAffineVectorList);
     procedure SetVertices(const Value: TGAffineVectorList);
-    procedure SetIndices(const Value: TGIntegerList);
+    procedure SetIndices(const Value: TgIntegerList);
   public
   public
     constructor Create(AOwner: TXCollection); override;
     constructor Create(AOwner: TXCollection); override;
     destructor Destroy; override;
     destructor Destroy; override;
@@ -462,7 +462,7 @@ type
     class function ItemCategory: String; override;
     class function ItemCategory: String; override;
     procedure RefreshTriMeshData;
     procedure RefreshTriMeshData;
     property Vertices: TGAffineVectorList read FVertices write SetVertices;
     property Vertices: TGAffineVectorList read FVertices write SetVertices;
-    property Indices: TGIntegerList read FIndices write SetIndices;
+    property Indices: TgIntegerList read FIndices write SetIndices;
   end;
   end;
 
 
   // ODE plane implementation
   // ODE plane implementation
@@ -634,13 +634,13 @@ type
   TGLODEJointHinge = class(TGLODEJointBase)
   TGLODEJointHinge = class(TGLODEJointBase)
   private
   private
     FAnchor, 
     FAnchor, 
-	FAxis: TGCoordinates;
+	FAxis: TgCoordinates;
     FAxisParams: TGLODEJointParams;
     FAxisParams: TGLODEJointParams;
   protected
   protected
     procedure WriteToFiler(writer: TWriter); override;
     procedure WriteToFiler(writer: TWriter); override;
     procedure ReadFromFiler(reader: TReader); override;
     procedure ReadFromFiler(reader: TReader); override;
-    procedure SetAnchor(const Value: TGCoordinates);
-    procedure SetAxis(const Value: TGCoordinates);
+    procedure SetAnchor(const Value: TgCoordinates);
+    procedure SetAxis(const Value: TgCoordinates);
     procedure AnchorChange(Sender: TObject);
     procedure AnchorChange(Sender: TObject);
     procedure AxisChange(Sender: TObject);
     procedure AxisChange(Sender: TObject);
     procedure SetAxisParams(const Value: TGLODEJointParams);
     procedure SetAxisParams(const Value: TGLODEJointParams);
@@ -654,19 +654,19 @@ type
     class function FriendlyName: String; override;
     class function FriendlyName: String; override;
     class function FriendlyDescription: String; override;
     class function FriendlyDescription: String; override;
   published
   published
-    property Anchor: TGCoordinates read FAnchor write SetAnchor;
-    property Axis: TGCoordinates read FAxis write SetAxis;
+    property Anchor: TgCoordinates read FAnchor write SetAnchor;
+    property Axis: TgCoordinates read FAxis write SetAxis;
     property AxisParams: TGLODEJointParams read FAxisParams write SetAxisParams;
     property AxisParams: TGLODEJointParams read FAxisParams write SetAxisParams;
   end;
   end;
 
 
   // ODE ball joint implementation
   // ODE ball joint implementation
   TGLODEJointBall = class(TGLODEJointBase)
   TGLODEJointBall = class(TGLODEJointBase)
   private
   private
-    FAnchor: TGCoordinates;
+    FAnchor: TgCoordinates;
   protected
   protected
     procedure WriteToFiler(writer: TWriter); override;
     procedure WriteToFiler(writer: TWriter); override;
     procedure ReadFromFiler(reader: TReader); override;
     procedure ReadFromFiler(reader: TReader); override;
-    procedure SetAnchor(const Value: TGCoordinates);
+    procedure SetAnchor(const Value: TgCoordinates);
     procedure AnchorChange(Sender: TObject);
     procedure AnchorChange(Sender: TObject);
   public
   public
     constructor Create(AOwner: TXCollection); override;
     constructor Create(AOwner: TXCollection); override;
@@ -676,18 +676,18 @@ type
     class function FriendlyName: String; override;
     class function FriendlyName: String; override;
     class function FriendlyDescription: String; override;
     class function FriendlyDescription: String; override;
   published
   published
-    property Anchor: TGCoordinates read FAnchor write SetAnchor;
+    property Anchor: TgCoordinates read FAnchor write SetAnchor;
   end;
   end;
 
 
   // ODE slider joint implementation
   // ODE slider joint implementation
   TGLODEJointSlider = class(TGLODEJointBase)
   TGLODEJointSlider = class(TGLODEJointBase)
   private
   private
-    FAxis: TGCoordinates;
+    FAxis: TgCoordinates;
     FAxisParams: TGLODEJointParams;
     FAxisParams: TGLODEJointParams;
   protected
   protected
     procedure WriteToFiler(writer: TWriter); override;
     procedure WriteToFiler(writer: TWriter); override;
     procedure ReadFromFiler(reader: TReader); override;
     procedure ReadFromFiler(reader: TReader); override;
-    procedure SetAxis(const Value: TGCoordinates);
+    procedure SetAxis(const Value: TgCoordinates);
     procedure AxisChange(Sender: TObject);
     procedure AxisChange(Sender: TObject);
     procedure SetAxisParams(const Value: TGLODEJointParams);
     procedure SetAxisParams(const Value: TGLODEJointParams);
     function SetAxisParam(Param: Integer; const Value: TdReal): Boolean;
     function SetAxisParam(Param: Integer; const Value: TdReal): Boolean;
@@ -700,7 +700,7 @@ type
     class function FriendlyName: String; override;
     class function FriendlyName: String; override;
     class function FriendlyDescription: String; override;
     class function FriendlyDescription: String; override;
   published
   published
-    property Axis: TGCoordinates read FAxis write SetAxis;
+    property Axis: TgCoordinates read FAxis write SetAxis;
     property AxisParams: TGLODEJointParams read FAxisParams write SetAxisParams;
     property AxisParams: TGLODEJointParams read FAxisParams write SetAxisParams;
   end;
   end;
 
 
@@ -720,15 +720,15 @@ type
   private
   private
     FAnchor,
     FAnchor,
 	FAxis1,
 	FAxis1,
-	FAxis2: TGCoordinates;
+	FAxis2: TgCoordinates;
     FAxis1Params,
     FAxis1Params,
 	FAxis2Params: TGLODEJointParams;
 	FAxis2Params: TGLODEJointParams;
   protected
   protected
     procedure WriteToFiler(writer: TWriter); override;
     procedure WriteToFiler(writer: TWriter); override;
     procedure ReadFromFiler(reader: TReader); override;
     procedure ReadFromFiler(reader: TReader); override;
-    procedure SetAnchor(const Value: TGCoordinates);
-    procedure SetAxis1(const Value: TGCoordinates);
-    procedure SetAxis2(const Value: TGCoordinates);
+    procedure SetAnchor(const Value: TgCoordinates);
+    procedure SetAxis1(const Value: TgCoordinates);
+    procedure SetAxis2(const Value: TgCoordinates);
     procedure AnchorChange(Sender: TObject);
     procedure AnchorChange(Sender: TObject);
     procedure Axis1Change(Sender: TObject);
     procedure Axis1Change(Sender: TObject);
     procedure Axis2Change(Sender: TObject);
     procedure Axis2Change(Sender: TObject);
@@ -746,9 +746,9 @@ type
     class function FriendlyName: String; override;
     class function FriendlyName: String; override;
     class function FriendlyDescription: String; override;
     class function FriendlyDescription: String; override;
   published
   published
-    property Anchor: TGCoordinates read FAnchor write SetAnchor;
-    property Axis1: TGCoordinates read FAxis1 write SetAxis1;
-    property Axis2: TGCoordinates read FAxis2 write SetAxis2;
+    property Anchor: TgCoordinates read FAnchor write SetAnchor;
+    property Axis1: TgCoordinates read FAxis1 write SetAxis1;
+    property Axis2: TgCoordinates read FAxis2 write SetAxis2;
     property Axis1Params: TGLODEJointParams read FAxis1Params write SetAxis1Params;
     property Axis1Params: TGLODEJointParams read FAxis1Params write SetAxis1Params;
     property Axis2Params: TGLODEJointParams read FAxis2Params write SetAxis2Params;
     property Axis2Params: TGLODEJointParams read FAxis2Params write SetAxis2Params;
   end;
   end;
@@ -758,15 +758,15 @@ type
   private
   private
     FAnchor,
     FAnchor,
 	FAxis1,
 	FAxis1,
-	FAxis2: TGCoordinates;
+	FAxis2: TgCoordinates;
     FAxis1Params,
     FAxis1Params,
 	FAxis2Params: TGLODEJointParams;
 	FAxis2Params: TGLODEJointParams;
   protected
   protected
     procedure WriteToFiler(writer: TWriter); override;
     procedure WriteToFiler(writer: TWriter); override;
     procedure ReadFromFiler(reader: TReader); override;
     procedure ReadFromFiler(reader: TReader); override;
-    procedure SetAnchor(const Value: TGCoordinates);
-    procedure SetAxis1(const Value: TGCoordinates);
-    procedure SetAxis2(const Value: TGCoordinates);
+    procedure SetAnchor(const Value: TgCoordinates);
+    procedure SetAxis1(const Value: TgCoordinates);
+    procedure SetAxis2(const Value: TgCoordinates);
     procedure AnchorChange(Sender: TObject);
     procedure AnchorChange(Sender: TObject);
     procedure Axis1Change(Sender: TObject);
     procedure Axis1Change(Sender: TObject);
     procedure Axis2Change(Sender: TObject);
     procedure Axis2Change(Sender: TObject);
@@ -784,9 +784,9 @@ type
     class function FriendlyName: String; override;
     class function FriendlyName: String; override;
     class function FriendlyDescription: String; override;
     class function FriendlyDescription: String; override;
   published
   published
-    property Anchor: TGCoordinates read FAnchor write SetAnchor;
-    property Axis1: TGCoordinates read FAxis1 write SetAxis1;
-    property Axis2: TGCoordinates read FAxis2 write SetAxis2;
+    property Anchor: TgCoordinates read FAnchor write SetAnchor;
+    property Axis1: TgCoordinates read FAxis1 write SetAxis1;
+    property Axis2: TgCoordinates read FAxis2 write SetAxis2;
     property Axis1Params: TGLODEJointParams read FAxis1Params write SetAxis1Params;
     property Axis1Params: TGLODEJointParams read FAxis1Params write SetAxis1Params;
     property Axis2Params: TGLODEJointParams read FAxis2Params write SetAxis2Params;
     property Axis2Params: TGLODEJointParams read FAxis2Params write SetAxis2Params;
   end;
   end;
@@ -1294,10 +1294,10 @@ begin
 
 
   inherited;
   inherited;
 
 
-  FODEBehaviours:= TGPersistentObjectList.Create;
+  FODEBehaviours:= TgPersistentObjectList.Create;
   FRFContactList:= TList.Create;
   FRFContactList:= TList.Create;
 
 
-  FGravity:= TGCoordinates.CreateInitialized(Self, NullHmgPoint, csVector);
+  FGravity:= TgCoordinates.CreateInitialized(Self, NullHmgPoint, csVector);
   FGravity.OnNotifyChange:= GravityChange;
   FGravity.OnNotifyChange:= GravityChange;
 
 
   FSolver:= osmDefault;
   FSolver:= osmDefault;
@@ -1364,7 +1364,7 @@ begin
   GravityChange(Self);
   GravityChange(Self);
 end;
 end;
 
 
-procedure TGLODEManager.SetGravity(Value: TGCoordinates);
+procedure TGLODEManager.SetGravity(Value: TgCoordinates);
 begin
 begin
   FGravity.SetPoint(Value.DirectX, Value.DirectY, Value.DirectZ);
   FGravity.SetPoint(Value.DirectX, Value.DirectY, Value.DirectZ);
 end;
 end;
@@ -2484,11 +2484,11 @@ end;
 constructor TGLODEElementBase.Create(AOwner: TXCollection);
 constructor TGLODEElementBase.Create(AOwner: TXCollection);
 begin
 begin
   inherited;
   inherited;
-  FPosition := TGCoordinates.CreateInitialized(Self, NullHmgPoint, csPoint);
+  FPosition := TgCoordinates.CreateInitialized(Self, NullHmgPoint, csPoint);
   FPosition.OnNotifyChange := NotifyChange;
   FPosition.OnNotifyChange := NotifyChange;
-  FDirection := TGCoordinates.CreateInitialized(Self, ZHmgVector, csVector);
+  FDirection := TgCoordinates.CreateInitialized(Self, ZHmgVector, csVector);
   FDirection.OnNotifyChange := CoordinateChanged;
   FDirection.OnNotifyChange := CoordinateChanged;
-  FUp := TGCoordinates.CreateInitialized(Self, YHmgVector, csVector);
+  FUp := TgCoordinates.CreateInitialized(Self, YHmgVector, csVector);
   FUp.OnNotifyChange := CoordinateChanged;
   FUp.OnNotifyChange := CoordinateChanged;
   FDensity := 1;
   FDensity := 1;
   FInitialized := False;
   FInitialized := False;
@@ -2775,17 +2775,17 @@ begin
     TGLODEElements(Owner).NotifyChange(Self);
     TGLODEElements(Owner).NotifyChange(Self);
 end;
 end;
 
 
-procedure TGLODEElementBase.SetPosition(const Value: TGCoordinates);
+procedure TGLODEElementBase.SetPosition(const Value: TgCoordinates);
 begin
 begin
   FPosition.Assign(Value);
   FPosition.Assign(Value);
 end;
 end;
 
 
-procedure TGLODEElementBase.SetDirection(const Value: TGCoordinates);
+procedure TGLODEElementBase.SetDirection(const Value: TgCoordinates);
 begin
 begin
   FDirection.Assign(Value);
   FDirection.Assign(Value);
 end;
 end;
 
 
-procedure TGLODEElementBase.SetUp(const Value: TGCoordinates);
+procedure TGLODEElementBase.SetUp(const Value: TgCoordinates);
 begin
 begin
   FUp.Assign(Value);
   FUp.Assign(Value);
 end;
 end;
@@ -3440,7 +3440,7 @@ constructor TGLODEElementTriMesh.Create(AOwner: TXCollection);
 begin
 begin
   inherited;
   inherited;
   FVertices := TGAffineVectorList.Create;
   FVertices := TGAffineVectorList.Create;
-  FIndices := TGIntegerList.Create;
+  FIndices := TgIntegerList.Create;
 end;
 end;
 
 
 destructor TGLODEElementTriMesh.Destroy;
 destructor TGLODEElementTriMesh.Destroy;
@@ -3530,7 +3530,7 @@ begin
   RefreshTriMeshData;
   RefreshTriMeshData;
 end;
 end;
 
 
-procedure TGLODEElementTriMesh.SetIndices(const Value: TGIntegerList);
+procedure TGLODEElementTriMesh.SetIndices(const Value: TgIntegerList);
 begin
 begin
   FIndices.Assign(Value);
   FIndices.Assign(Value);
   RefreshTriMeshData;
   RefreshTriMeshData;
@@ -4300,9 +4300,9 @@ end;
 constructor TGLODEJointHinge.Create(AOwner: TXCollection);
 constructor TGLODEJointHinge.Create(AOwner: TXCollection);
 begin
 begin
   inherited;
   inherited;
-  FAnchor := TGCoordinates.CreateInitialized(Self, NullHmgPoint, csPoint);
+  FAnchor := TgCoordinates.CreateInitialized(Self, NullHmgPoint, csPoint);
   FAnchor.OnNotifyChange := AnchorChange;
   FAnchor.OnNotifyChange := AnchorChange;
-  FAxis := TGCoordinates.CreateInitialized(Self, ZHmgVector, csVector);
+  FAxis := TgCoordinates.CreateInitialized(Self, ZHmgVector, csVector);
   FAxis.OnNotifyChange := AxisChange;
   FAxis.OnNotifyChange := AxisChange;
   FAxisParams := TGLODEJointParams.Create(Self);
   FAxisParams := TGLODEJointParams.Create(Self);
   FAxisParams.SetCallback := SetAxisParam;
   FAxisParams.SetCallback := SetAxisParam;
@@ -4385,12 +4385,12 @@ begin
   Result := 'ODE Hinge joint';
   Result := 'ODE Hinge joint';
 end;
 end;
 
 
-procedure TGLODEJointHinge.SetAnchor(const Value: TGCoordinates);
+procedure TGLODEJointHinge.SetAnchor(const Value: TgCoordinates);
 begin
 begin
   FAnchor.Assign(Value);
   FAnchor.Assign(Value);
 end;
 end;
 
 
-procedure TGLODEJointHinge.SetAxis(const Value: TGCoordinates);
+procedure TGLODEJointHinge.SetAxis(const Value: TgCoordinates);
 begin
 begin
   FAxis.Assign(Value);
   FAxis.Assign(Value);
 end;
 end;
@@ -4430,7 +4430,7 @@ end;
 constructor TGLODEJointBall.Create(AOwner: TXCollection);
 constructor TGLODEJointBall.Create(AOwner: TXCollection);
 begin
 begin
   inherited;
   inherited;
-  FAnchor := TGCoordinates.CreateInitialized(Self, NullHmgPoint, csPoint);
+  FAnchor := TgCoordinates.CreateInitialized(Self, NullHmgPoint, csPoint);
   FAnchor.OnNotifyChange := AnchorChange;
   FAnchor.OnNotifyChange := AnchorChange;
 end;
 end;
 
 
@@ -4489,7 +4489,7 @@ begin
   Result := 'ODE Ball joint implementation';
   Result := 'ODE Ball joint implementation';
 end;
 end;
 
 
-procedure TGLODEJointBall.SetAnchor(const Value: TGCoordinates);
+procedure TGLODEJointBall.SetAnchor(const Value: TgCoordinates);
 begin
 begin
   FAnchor.Assign(Value);
   FAnchor.Assign(Value);
 end;
 end;
@@ -4502,7 +4502,7 @@ end;
 constructor TGLODEJointSlider.Create(AOwner: TXCollection);
 constructor TGLODEJointSlider.Create(AOwner: TXCollection);
 begin
 begin
   inherited;
   inherited;
-  FAxis := TGCoordinates.CreateInitialized(Self, ZHmgVector, csVector);
+  FAxis := TgCoordinates.CreateInitialized(Self, ZHmgVector, csVector);
   FAxis.OnNotifyChange := AxisChange;
   FAxis.OnNotifyChange := AxisChange;
   FAxisParams := TGLODEJointParams.Create(Self);
   FAxisParams := TGLODEJointParams.Create(Self);
   FAxisParams.SetCallback := SetAxisParam;
   FAxisParams.SetCallback := SetAxisParam;
@@ -4574,7 +4574,7 @@ begin
   Result := 'ODE Slider joint implementation';
   Result := 'ODE Slider joint implementation';
 end;
 end;
 
 
-procedure TGLODEJointSlider.SetAxis(const Value: TGCoordinates);
+procedure TGLODEJointSlider.SetAxis(const Value: TgCoordinates);
 begin
 begin
   FAxis.Assign(Value);
   FAxis.Assign(Value);
 end;
 end;
@@ -4656,11 +4656,11 @@ end;
 constructor TGLODEJointHinge2.Create(AOwner: TXCollection);
 constructor TGLODEJointHinge2.Create(AOwner: TXCollection);
 begin
 begin
   inherited;
   inherited;
-  FAnchor := TGCoordinates.CreateInitialized(Self, NullHmgPoint, csPoint);
+  FAnchor := TgCoordinates.CreateInitialized(Self, NullHmgPoint, csPoint);
   FAnchor.OnNotifyChange := AnchorChange;
   FAnchor.OnNotifyChange := AnchorChange;
-  FAxis1 := TGCoordinates.CreateInitialized(Self, ZHmgVector, csVector);
+  FAxis1 := TgCoordinates.CreateInitialized(Self, ZHmgVector, csVector);
   FAxis1.OnNotifyChange := Axis1Change;
   FAxis1.OnNotifyChange := Axis1Change;
-  FAxis2 := TGCoordinates.CreateInitialized(Self, ZHmgVector, csVector);
+  FAxis2 := TgCoordinates.CreateInitialized(Self, ZHmgVector, csVector);
   FAxis2.OnNotifyChange := Axis2Change;
   FAxis2.OnNotifyChange := Axis2Change;
   FAxis1Params := TGLODEJointParams.Create(Self);
   FAxis1Params := TGLODEJointParams.Create(Self);
   FAxis1Params.SetCallback := SetAxis1Param;
   FAxis1Params.SetCallback := SetAxis1Param;
@@ -4765,17 +4765,17 @@ begin
   Result := 'ODE Double Axis Hinge joint implementation';
   Result := 'ODE Double Axis Hinge joint implementation';
 end;
 end;
 
 
-procedure TGLODEJointHinge2.SetAnchor(const Value: TGCoordinates);
+procedure TGLODEJointHinge2.SetAnchor(const Value: TgCoordinates);
 begin
 begin
   FAnchor.Assign(Value);
   FAnchor.Assign(Value);
 end;
 end;
 
 
-procedure TGLODEJointHinge2.SetAxis1(const Value: TGCoordinates);
+procedure TGLODEJointHinge2.SetAxis1(const Value: TgCoordinates);
 begin
 begin
   FAxis1.Assign(Value);
   FAxis1.Assign(Value);
 end;
 end;
 
 
-procedure TGLODEJointHinge2.SetAxis2(const Value: TGCoordinates);
+procedure TGLODEJointHinge2.SetAxis2(const Value: TgCoordinates);
 begin
 begin
   FAxis2.Assign(Value);
   FAxis2.Assign(Value);
 end;
 end;
@@ -4841,11 +4841,11 @@ end;
 constructor TGLODEJointUniversal.Create(AOwner: TXCollection);
 constructor TGLODEJointUniversal.Create(AOwner: TXCollection);
 begin
 begin
   inherited;
   inherited;
-  FAnchor := TGCoordinates.CreateInitialized(Self, NullHmgPoint, csPoint);
+  FAnchor := TgCoordinates.CreateInitialized(Self, NullHmgPoint, csPoint);
   FAnchor.OnNotifyChange := AnchorChange;
   FAnchor.OnNotifyChange := AnchorChange;
-  FAxis1 := TGCoordinates.CreateInitialized(Self, ZHmgVector, csVector);
+  FAxis1 := TgCoordinates.CreateInitialized(Self, ZHmgVector, csVector);
   FAxis1.OnNotifyChange := Axis1Change;
   FAxis1.OnNotifyChange := Axis1Change;
-  FAxis2 := TGCoordinates.CreateInitialized(Self, XHmgVector, csVector);
+  FAxis2 := TgCoordinates.CreateInitialized(Self, XHmgVector, csVector);
   FAxis2.OnNotifyChange := Axis2Change;
   FAxis2.OnNotifyChange := Axis2Change;
   FAxis1Params := TGLODEJointParams.Create(Self);
   FAxis1Params := TGLODEJointParams.Create(Self);
   FAxis1Params.SetCallback := SetAxis1Param;
   FAxis1Params.SetCallback := SetAxis1Param;
@@ -4951,17 +4951,17 @@ begin
   Result := 'ODE Universal joint implementation';
   Result := 'ODE Universal joint implementation';
 end;
 end;
 
 
-procedure TGLODEJointUniversal.SetAnchor(const Value: TGCoordinates);
+procedure TGLODEJointUniversal.SetAnchor(const Value: TgCoordinates);
 begin
 begin
   FAnchor.Assign(Value);
   FAnchor.Assign(Value);
 end;
 end;
 
 
-procedure TGLODEJointUniversal.SetAxis1(const Value: TGCoordinates);
+procedure TGLODEJointUniversal.SetAxis1(const Value: TgCoordinates);
 begin
 begin
   FAxis1.Assign(Value);
   FAxis1.Assign(Value);
 end;
 end;
 
 
-procedure TGLODEJointUniversal.SetAxis2(const Value: TGCoordinates);
+procedure TGLODEJointUniversal.SetAxis2(const Value: TgCoordinates);
 begin
 begin
   FAxis2.Assign(Value);
   FAxis2.Assign(Value);
 end;
 end;

+ 2 - 2
Source/GLS.ODEUtils.pas

@@ -490,7 +490,7 @@ var
   FaceExtractor: TGLFaceExtractor;
   FaceExtractor: TGLFaceExtractor;
   VertexCount: integer;
   VertexCount: integer;
   Vertex: TAffineVector;
   Vertex: TAffineVector;
-  OffsetList: TGIntegerList;
+  OffsetList: TgIntegerList;
   Face: TGLFace;
   Face: TGLFace;
   iMO: integer;
   iMO: integer;
   TriMeshData: PdxTriMeshData;
   TriMeshData: PdxTriMeshData;
@@ -499,7 +499,7 @@ begin
   FaceExtractor := TGLFaceExtractor.Create(GLBaseMesh);
   FaceExtractor := TGLFaceExtractor.Create(GLBaseMesh);
 
 
   try
   try
-    OffsetList := TGIntegerList.Create;
+    OffsetList := TgIntegerList.Create;
 
 
     FaceExtractor.ProcessMesh;
     FaceExtractor.ProcessMesh;
 
 

+ 10 - 10
Source/GLS.Objects.pas

@@ -38,7 +38,7 @@ uses
   GLScene.Coordinates,
   GLScene.Coordinates,
   GLScene.Spline,
   GLScene.Spline,
   GLScene.VectorLists,
   GLScene.VectorLists,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLS.Scene,
   GLS.Scene,
   GLS.Context,
   GLS.Context,
   GLS.Silhouette,
   GLS.Silhouette,
@@ -238,13 +238,13 @@ type
     FEnabled: Boolean;
     FEnabled: Boolean;
     FMinSize, FMaxSize: Single;
     FMinSize, FMaxSize: Single;
     FFadeTresholdSize: Single;
     FFadeTresholdSize: Single;
-    FDistanceAttenuation: TGCoordinates;
+    FDistanceAttenuation: TgCoordinates;
   protected
   protected
     procedure SetEnabled(const val: Boolean);
     procedure SetEnabled(const val: Boolean);
     procedure SetMinSize(const val: Single);
     procedure SetMinSize(const val: Single);
     procedure SetMaxSize(const val: Single);
     procedure SetMaxSize(const val: Single);
     procedure SetFadeTresholdSize(const val: Single);
     procedure SetFadeTresholdSize(const val: Single);
-    procedure SetDistanceAttenuation(const val: TGCoordinates);
+    procedure SetDistanceAttenuation(const val: TgCoordinates);
     procedure DefineProperties(Filer: TFiler); override;
     procedure DefineProperties(Filer: TFiler); override;
     procedure ReadData(Stream: TStream);
     procedure ReadData(Stream: TStream);
     procedure WriteData(Stream: TStream);
     procedure WriteData(Stream: TStream);
@@ -261,7 +261,7 @@ type
     property FadeTresholdSize: Single read FFadeTresholdSize
     property FadeTresholdSize: Single read FFadeTresholdSize
       write SetFadeTresholdSize stored False;
       write SetFadeTresholdSize stored False;
     // Components XYZ are for constant, linear and quadratic attenuation.
     // Components XYZ are for constant, linear and quadratic attenuation.
-    property DistanceAttenuation: TGCoordinates read FDistanceAttenuation
+    property DistanceAttenuation: TgCoordinates read FDistanceAttenuation
       write SetDistanceAttenuation;
       write SetDistanceAttenuation;
   end;
   end;
 
 
@@ -412,7 +412,7 @@ type
     destructor Destroy; override;
     destructor Destroy; override;
     procedure Assign(Source: TPersistent); override;
     procedure Assign(Source: TPersistent); override;
     function AxisAlignedDimensionsUnscaled: TGLVector; override;
     function AxisAlignedDimensionsUnscaled: TGLVector; override;
-    procedure AddNode(const coords: TGCoordinates); overload;
+    procedure AddNode(const coords: TgCoordinates); overload;
     procedure AddNode(const X, Y, Z: TGLFloat); overload;
     procedure AddNode(const X, Y, Z: TGLFloat); overload;
     procedure AddNode(const Value: TGLVector); overload;
     procedure AddNode(const Value: TGLVector); overload;
     procedure AddNode(const Value: TAffineVector); overload;
     procedure AddNode(const Value: TAffineVector); overload;
@@ -616,7 +616,7 @@ type
     destructor Destroy; override;
     destructor Destroy; override;
     procedure Assign(Source: TPersistent); override;
     procedure Assign(Source: TPersistent); override;
     procedure NotifyChange(Sender: TObject); override;
     procedure NotifyChange(Sender: TObject); override;
-    procedure AddNode(const coords: TGCoordinates); overload;
+    procedure AddNode(const coords: TgCoordinates); overload;
     procedure AddNode(const X, Y, Z: TGLFloat); overload;
     procedure AddNode(const X, Y, Z: TGLFloat); overload;
     procedure AddNode(const Value: TGLVector); overload;
     procedure AddNode(const Value: TGLVector); overload;
     procedure AddNode(const Value: TAffineVector); overload;
     procedure AddNode(const Value: TAffineVector); overload;
@@ -1447,7 +1447,7 @@ begin
   FMinSize := 0;
   FMinSize := 0;
   FMaxSize := 128;
   FMaxSize := 128;
   FFadeTresholdSize := 1;
   FFadeTresholdSize := 1;
-  FDistanceAttenuation := TGCoordinates.CreateInitialized(Self, XHmgVector,
+  FDistanceAttenuation := TgCoordinates.CreateInitialized(Self, XHmgVector,
     csVector);
     csVector);
 end;
 end;
 
 
@@ -1567,7 +1567,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGLPointParameters.SetDistanceAttenuation(const val: TGCoordinates);
+procedure TGLPointParameters.SetDistanceAttenuation(const val: TgCoordinates);
 begin
 begin
   FDistanceAttenuation.Assign(val);
   FDistanceAttenuation.Assign(val);
 end;
 end;
@@ -2040,7 +2040,7 @@ begin
   // DivideVector(Result, Scale.AsVector);     //DanB ?
   // DivideVector(Result, Scale.AsVector);     //DanB ?
 end;
 end;
 
 
-procedure TGLNodedLines.AddNode(const coords: TGCoordinates);
+procedure TGLNodedLines.AddNode(const coords: TgCoordinates);
 var
 var
   n: TGLNode;
   n: TGLNode;
 begin
 begin
@@ -3117,7 +3117,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGLPolygonBase.AddNode(const coords: TGCoordinates);
+procedure TGLPolygonBase.AddNode(const coords: TgCoordinates);
 var
 var
   n: TGLNode;
   n: TGLNode;
 begin
 begin

+ 4 - 4
Source/GLS.Octree.pas

@@ -1477,7 +1477,7 @@ var
 var
 var
   I, K: Integer;
   I, K: Integer;
   P: PGLOctreeNode;
   P: PGLOctreeNode;
-  TriangleIndices: TGIntegerList;
+  TriangleIndices: TgIntegerList;
 
 
 begin
 begin
   // Calc AABBs
   // Calc AABBs
@@ -1488,7 +1488,7 @@ begin
     HandleNode(RootNode);
     HandleNode(RootNode);
 
 
   Result := TGAffineVectorList.Create;
   Result := TGAffineVectorList.Create;
-  TriangleIndices := TGIntegerList.Create;
+  TriangleIndices := TgIntegerList.Create;
   try
   try
     // fill the triangles from all nodes in the resultarray to AL
     // fill the triangles from all nodes in the resultarray to AL
     for I := 0 to High(ResultArray) do
     for I := 0 to High(ResultArray) do
@@ -1542,7 +1542,7 @@ var
 var
 var
   I, K: Integer;
   I, K: Integer;
   P: PGLOctreeNode;
   P: PGLOctreeNode;
-  TriangleIndices: TGIntegerList;
+  TriangleIndices: TgIntegerList;
 begin
 begin
   // Calc AABBs
   // Calc AABBs
   AABB1 := ObjAABB;
   AABB1 := ObjAABB;
@@ -1555,7 +1555,7 @@ begin
     HandleNode(RootNode);
     HandleNode(RootNode);
 
 
   Result := TGAffineVectorList.Create;
   Result := TGAffineVectorList.Create;
-  TriangleIndices := TGIntegerList.Create;
+  TriangleIndices := TgIntegerList.Create;
   try
   try
     // fill the triangles from all nodes in the resultarray to AL
     // fill the triangles from all nodes in the resultarray to AL
     for I := 0 to High(ResultArray) do
     for I := 0 to High(ResultArray) do

+ 9 - 9
Source/GLS.ParametricSurfaces.pas

@@ -143,15 +143,15 @@ type
   private
   private
     FCountU, FCountV: Integer;
     FCountU, FCountV: Integer;
     FControlPointIndices,
     FControlPointIndices,
-    FTexCoordIndices: TGIntegerList;
+    FTexCoordIndices: TgIntegerList;
     FResolution: Integer;
     FResolution: Integer;
     FMinU, FMaxU,
     FMinU, FMaxU,
     FMinV, FMaxV: Single;
     FMinV, FMaxV: Single;
     FTempControlPoints,
     FTempControlPoints,
     FTempTexCoords: TGAffineVectorList;
     FTempTexCoords: TGAffineVectorList;
   protected
   protected
-    procedure SetControlPointIndices(const Value: TGIntegerList);
-    procedure SetTexCoordIndices(const Value: TGIntegerList);
+    procedure SetControlPointIndices(const Value: TgIntegerList);
+    procedure SetTexCoordIndices(const Value: TgIntegerList);
   public
   public
     constructor Create; override;
     constructor Create; override;
     destructor Destroy; override;
     destructor Destroy; override;
@@ -166,8 +166,8 @@ type
     property MaxU: Single read FMaxU write FMaxU;
     property MaxU: Single read FMaxU write FMaxU;
     property MinV: Single read FMinV write FMinV;
     property MinV: Single read FMinV write FMinV;
     property MaxV: Single read FMaxV write FMaxV;
     property MaxV: Single read FMaxV write FMaxV;
-    property ControlPointIndices: TGIntegerList read FControlPointIndices write SetControlPointIndices;
-    property TexCoordIndices: TGIntegerList read FTexCoordIndices write SetTexCoordIndices;
+    property ControlPointIndices: TgIntegerList read FControlPointIndices write SetControlPointIndices;
+    property TexCoordIndices: TgIntegerList read FTexCoordIndices write SetTexCoordIndices;
   end;
   end;
 
 
 // ----------------------------------------------------------------------
 // ----------------------------------------------------------------------
@@ -437,8 +437,8 @@ end;
 constructor TFGBezierSurface.Create;
 constructor TFGBezierSurface.Create;
 begin
 begin
   inherited;
   inherited;
-  FControlPointIndices := TGIntegerList.Create;
-  FTexCoordIndices := TGIntegerList.Create;
+  FControlPointIndices := TgIntegerList.Create;
+  FTexCoordIndices := TgIntegerList.Create;
   FTempControlPoints := TGAffineVectorList.Create;
   FTempControlPoints := TGAffineVectorList.Create;
   FTempTexCoords := TGAffineVectorList.Create;
   FTempTexCoords := TGAffineVectorList.Create;
 
 
@@ -536,12 +536,12 @@ begin
   mrci.GLStates.PopAttrib;
   mrci.GLStates.PopAttrib;
 end;
 end;
 
 
-procedure TFGBezierSurface.SetControlPointIndices(const Value: TGIntegerList);
+procedure TFGBezierSurface.SetControlPointIndices(const Value: TgIntegerList);
 begin
 begin
   FControlPointIndices.Assign(Value);
   FControlPointIndices.Assign(Value);
 end;
 end;
 
 
-procedure TFGBezierSurface.SetTexCoordIndices(const Value: TGIntegerList);
+procedure TFGBezierSurface.SetTexCoordIndices(const Value: TgIntegerList);
 begin
 begin
   FTexCoordIndices.Assign(Value);
   FTexCoordIndices.Assign(Value);
 end;
 end;

+ 24 - 24
Source/GLS.ParticleFX.pas

@@ -23,7 +23,7 @@ uses
   GLScene.OpenGLTokens,
   GLScene.OpenGLTokens,
   GLS.Scene,
   GLS.Scene,
   GLScene.Utils,
   GLScene.Utils,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLS.State,
   GLS.State,
   GLScene.VectorTypes,
   GLScene.VectorTypes,
   GLScene.PersistentClasses,
   GLScene.PersistentClasses,
@@ -106,7 +106,7 @@ type
   TGLParticleList = class(TGPersistentObject)
   TGLParticleList = class(TGPersistentObject)
   private
   private
     FOwner: TGLParticleFXManager; // NOT persistent
     FOwner: TGLParticleFXManager; // NOT persistent
-    FItemList: TGPersistentObjectList;
+    FItemList: TgPersistentObjectList;
     FDirectList: PGLParticleArray; // NOT persistent
     FDirectList: PGLParticleArray; // NOT persistent
   protected
   protected
     function GetItems(index: Integer): TGLParticle;
     function GetItems(index: Integer): TGLParticle;
@@ -351,9 +351,9 @@ type
   // Simple Particles Source.
   // Simple Particles Source.
   TGLSourcePFXEffect = class(TGLParticleFXEffect)
   TGLSourcePFXEffect = class(TGLParticleFXEffect)
   private
   private
-    FInitialVelocity: TGCoordinates;
-    FInitialPosition: TGCoordinates;
-    FPositionDispersionRange: TGCoordinates;
+    FInitialVelocity: TgCoordinates;
+    FInitialPosition: TgCoordinates;
+    FPositionDispersionRange: TgCoordinates;
     FVelocityDispersion: Single;
     FVelocityDispersion: Single;
     FPositionDispersion: Single;
     FPositionDispersion: Single;
     FParticleInterval: Single;
     FParticleInterval: Single;
@@ -365,9 +365,9 @@ type
     FTimeRemainder: Double;
     FTimeRemainder: Double;
     FRotationDispersion: Single;
     FRotationDispersion: Single;
   protected
   protected
-    procedure SetInitialVelocity(const val: TGCoordinates);
-    procedure SetInitialPosition(const val: TGCoordinates);
-    procedure SetPositionDispersionRange(const val: TGCoordinates);
+    procedure SetInitialVelocity(const val: TgCoordinates);
+    procedure SetInitialPosition(const val: TgCoordinates);
+    procedure SetPositionDispersionRange(const val: TgCoordinates);
     procedure SetParticleInterval(const val: Single);
     procedure SetParticleInterval(const val: Single);
     procedure WriteToFiler(writer: TWriter); override;
     procedure WriteToFiler(writer: TWriter); override;
     procedure ReadFromFiler(reader: TReader); override;
     procedure ReadFromFiler(reader: TReader); override;
@@ -384,11 +384,11 @@ type
       minInitialSpeed, maxInitialSpeed: Single;
       minInitialSpeed, maxInitialSpeed: Single;
       nbParticles: Integer);
       nbParticles: Integer);
   published
   published
-    property InitialVelocity: TGCoordinates read FInitialVelocity write SetInitialVelocity;
+    property InitialVelocity: TgCoordinates read FInitialVelocity write SetInitialVelocity;
     property VelocityDispersion: Single read FVelocityDispersion write FVelocityDispersion;
     property VelocityDispersion: Single read FVelocityDispersion write FVelocityDispersion;
-    property InitialPosition: TGCoordinates read FInitialPosition write SetInitialPosition;
+    property InitialPosition: TgCoordinates read FInitialPosition write SetInitialPosition;
     property PositionDispersion: Single read FPositionDispersion write FPositionDispersion;
     property PositionDispersion: Single read FPositionDispersion write FPositionDispersion;
-    property PositionDispersionRange: TGCoordinates read FPositionDispersionRange write SetPositionDispersionRange;
+    property PositionDispersionRange: TgCoordinates read FPositionDispersionRange write SetPositionDispersionRange;
     property ParticleInterval: Single read FParticleInterval write SetParticleInterval;
     property ParticleInterval: Single read FParticleInterval write SetParticleInterval;
     property VelocityMode: TGLSourcePFXVelocityMode read FVelocityMode write FVelocityMode default svmAbsolute;
     property VelocityMode: TGLSourcePFXVelocityMode read FVelocityMode write FVelocityMode default svmAbsolute;
     property PositionMode: TGLSourcePFXPositionMode read FPositionMode write FPositionMode default spmAbsoluteOffset;
     property PositionMode: TGLSourcePFXPositionMode read FPositionMode write FPositionMode default spmAbsoluteOffset;
@@ -403,12 +403,12 @@ type
    (simple velocity and const acceleration integration). *)
    (simple velocity and const acceleration integration). *)
   TGLDynamicPFXManager = class(TGLParticleFXManager)
   TGLDynamicPFXManager = class(TGLParticleFXManager)
   private
   private
-    FAcceleration: TGCoordinates;
+    FAcceleration: TgCoordinates;
     FFriction: Single;
     FFriction: Single;
     FCurrentTime: Double;
     FCurrentTime: Double;
     //FRotationCenter: TAffineVector;
     //FRotationCenter: TAffineVector;
   protected
   protected
-    procedure SetAcceleration(const val: TGCoordinates);
+    procedure SetAcceleration(const val: TgCoordinates);
     (* Returns the maximum age for a particle.
     (* Returns the maximum age for a particle.
        Particles older than that will be killed by DoProgress. *)
        Particles older than that will be killed by DoProgress. *)
     function MaxParticleAge: Single; virtual; abstract;
     function MaxParticleAge: Single; virtual; abstract;
@@ -419,7 +419,7 @@ type
     procedure DoProgress(const progressTime: TGProgressTimes); override;
     procedure DoProgress(const progressTime: TGProgressTimes); override;
   published
   published
     // Oriented acceleration applied to the particles.
     // Oriented acceleration applied to the particles.
-    property Acceleration: TGCoordinates read FAcceleration write SetAcceleration;
+    property Acceleration: TgCoordinates read FAcceleration write SetAcceleration;
     (* Friction applied to the particles.
     (* Friction applied to the particles.
        Friction is applied as a speed scaling factor over 1 second, ie.
        Friction is applied as a speed scaling factor over 1 second, ie.
        a friction of 0.5 will half speed over 1 second, a friction of 3
        a friction of 0.5 will half speed over 1 second, a friction of 3
@@ -744,7 +744,7 @@ end;
 
 
 procedure RndVector(const dispersion: TGLSourcePFXDispersionMode;
 procedure RndVector(const dispersion: TGLSourcePFXDispersionMode;
   var v: TAffineVector; var f: Single;
   var v: TAffineVector; var f: Single;
-  dispersionRange: TGCoordinates);
+  dispersionRange: TgCoordinates);
 
 
   function GetRandomVector(NotIsotropic : boolean) : TVector3f;
   function GetRandomVector(NotIsotropic : boolean) : TVector3f;
   // Isotropic gives constrainted vector within a radius
   // Isotropic gives constrainted vector within a radius
@@ -852,7 +852,7 @@ end;
 constructor TGLParticleList.Create;
 constructor TGLParticleList.Create;
 begin
 begin
   inherited Create;
   inherited Create;
-  FItemList := TGPersistentObjectList.Create;
+  FItemList := TgPersistentObjectList.Create;
   FitemList.GrowthDelta := 64;
   FitemList.GrowthDelta := 64;
   FDirectList := nil;
   FDirectList := nil;
 end;
 end;
@@ -1502,9 +1502,9 @@ end;
 constructor TGLSourcePFXEffect.Create(aOwner: TXCollection);
 constructor TGLSourcePFXEffect.Create(aOwner: TXCollection);
 begin
 begin
   inherited;
   inherited;
-  FInitialVelocity := TGCoordinates.CreateInitialized(Self, NullHmgVector, csVector);
-  FInitialPosition := TGCoordinates.CreateInitialized(Self, NullHmgVector, csPoint);
-  FPositionDispersionRange := TGCoordinates.CreateInitialized(Self, XYZHmgVector, csPoint);
+  FInitialVelocity := TgCoordinates.CreateInitialized(Self, NullHmgVector, csVector);
+  FInitialPosition := TgCoordinates.CreateInitialized(Self, NullHmgVector, csPoint);
+  FPositionDispersionRange := TgCoordinates.CreateInitialized(Self, XYZHmgVector, csPoint);
   FVelocityDispersion := 0;
   FVelocityDispersion := 0;
   FPositionDispersion := 0;
   FPositionDispersion := 0;
   FParticleInterval := 0.1;
   FParticleInterval := 0.1;
@@ -1589,17 +1589,17 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGLSourcePFXEffect.SetInitialVelocity(const val: TGCoordinates);
+procedure TGLSourcePFXEffect.SetInitialVelocity(const val: TgCoordinates);
 begin
 begin
   FInitialVelocity.Assign(val);
   FInitialVelocity.Assign(val);
 end;
 end;
 
 
-procedure TGLSourcePFXEffect.SetInitialPosition(const val: TGCoordinates);
+procedure TGLSourcePFXEffect.SetInitialPosition(const val: TgCoordinates);
 begin
 begin
   FInitialPosition.Assign(val);
   FInitialPosition.Assign(val);
 end;
 end;
 
 
-procedure TGLSourcePFXEffect.SetPositionDispersionRange(const val: TGCoordinates);
+procedure TGLSourcePFXEffect.SetPositionDispersionRange(const val: TgCoordinates);
 begin
 begin
   FPositionDispersionRange.Assign(val);
   FPositionDispersionRange.Assign(val);
 end;
 end;
@@ -1894,7 +1894,7 @@ end;
 constructor TGLDynamicPFXManager.Create(aOwner: TComponent);
 constructor TGLDynamicPFXManager.Create(aOwner: TComponent);
 begin
 begin
   inherited;
   inherited;
-  FAcceleration := TGCoordinates.CreateInitialized(Self, NullHmgVector, csVector);
+  FAcceleration := TgCoordinates.CreateInitialized(Self, NullHmgVector, csVector);
   FFriction := 1;
   FFriction := 1;
 end;
 end;
 
 
@@ -1982,7 +1982,7 @@ begin
     Particles.Pack;
     Particles.Pack;
 end;
 end;
 
 
-procedure TGLDynamicPFXManager.SetAcceleration(const val: TGCoordinates);
+procedure TGLDynamicPFXManager.SetAcceleration(const val: TgCoordinates);
 begin
 begin
   FAcceleration.Assign(val);
   FAcceleration.Assign(val);
 end;
 end;

+ 5 - 5
Source/GLS.PhysFields.pas

@@ -20,9 +20,9 @@ uses
 type
 type
   TGLUniformGravityEmitter = class(TGLBaseForceFieldEmitter)
   TGLUniformGravityEmitter = class(TGLBaseForceFieldEmitter)
   private
   private
-    fGravity: TGCoordinates;
+    fGravity: TgCoordinates;
   protected
   protected
-    procedure SetGravity(const val: TGCoordinates);
+    procedure SetGravity(const val: TgCoordinates);
   public
   public
     constructor Create(aOwner: TXCollection); override;
     constructor Create(aOwner: TXCollection); override;
     destructor Destroy; override;
     destructor Destroy; override;
@@ -35,7 +35,7 @@ type
     function CalculateForceField(Body: TGLBaseSceneObject)
     function CalculateForceField(Body: TGLBaseSceneObject)
       : TAffineVector; override;
       : TAffineVector; override;
   published
   published
-    property Gravity: TGCoordinates read fGravity write SetGravity;
+    property Gravity: TgCoordinates read fGravity write SetGravity;
   end;
   end;
 
 
   TGLRadialGravityEmitter = class(TGLBaseForceFieldEmitter)
   TGLRadialGravityEmitter = class(TGLBaseForceFieldEmitter)
@@ -90,7 +90,7 @@ implementation
 constructor TGLUniformGravityEmitter.Create(aOwner: TXCollection);
 constructor TGLUniformGravityEmitter.Create(aOwner: TXCollection);
 begin
 begin
   inherited Create(aOwner);
   inherited Create(aOwner);
-  fGravity := TGCoordinates.CreateInitialized(Self, nullHmgVector, csVector);
+  fGravity := TgCoordinates.CreateInitialized(Self, nullHmgVector, csVector);
 end;
 end;
 
 
 destructor TGLUniformGravityEmitter.Destroy;
 destructor TGLUniformGravityEmitter.Destroy;
@@ -140,7 +140,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGLUniformGravityEmitter.SetGravity(const val: TGCoordinates);
+procedure TGLUniformGravityEmitter.SetGravity(const val: TgCoordinates);
 begin
 begin
   fGravity.Assign(val);
   fGravity.Assign(val);
 end;
 end;

+ 10 - 10
Source/GLS.PhysForces.pas

@@ -27,8 +27,8 @@ type
   private
   private
     fObject1: TGLBaseSceneObject;
     fObject1: TGLBaseSceneObject;
     fObject2: TGLBaseSceneObject;
     fObject2: TGLBaseSceneObject;
-    fposition1: TGCoordinates;
-    fposition2: TGCoordinates;
+    fposition1: TgCoordinates;
+    fposition2: TgCoordinates;
     object1Name: String;
     object1Name: String;
     object2Name: String;
     object2Name: String;
     // fOnCustomForce: TOnCustomForce;
     // fOnCustomForce: TOnCustomForce;
@@ -52,14 +52,14 @@ type
     class function UniqueItem: Boolean; override;
     class function UniqueItem: Boolean; override;
     procedure SetObject1(const val: TGLBaseSceneObject);
     procedure SetObject1(const val: TGLBaseSceneObject);
     procedure SetObject2(const val: TGLBaseSceneObject);
     procedure SetObject2(const val: TGLBaseSceneObject);
-    procedure SetPosition1(const val: TGCoordinates);
-    procedure SetPosition2(const val: TGCoordinates);
+    procedure SetPosition1(const val: TgCoordinates);
+    procedure SetPosition2(const val: TgCoordinates);
     function CalculateForce(): TAffineVector; virtual;
     function CalculateForce(): TAffineVector; virtual;
   published
   published
     property Object1: TGLBaseSceneObject read fObject1 write SetObject1;
     property Object1: TGLBaseSceneObject read fObject1 write SetObject1;
     property Object2: TGLBaseSceneObject read fObject2 write SetObject2;
     property Object2: TGLBaseSceneObject read fObject2 write SetObject2;
-    property Position1: TGCoordinates read fposition1 write SetPosition1;
-    property Position2: TGCoordinates read fposition2 write SetPosition2;
+    property Position1: TgCoordinates read fposition1 write SetPosition1;
+    property Position2: TgCoordinates read fposition2 write SetPosition2;
     // property OnCustomForce:TOnCustomForce read fOnCustomForce write fOnCustomForce;
     // property OnCustomForce:TOnCustomForce read fOnCustomForce write fOnCustomForce;
   end;
   end;
 
 
@@ -109,8 +109,8 @@ uses
 constructor TGLForce.Create(aOwner: TXCollection);
 constructor TGLForce.Create(aOwner: TXCollection);
 begin
 begin
   inherited; // Create(aOwner)
   inherited; // Create(aOwner)
-  fposition1 := TGCoordinates.CreateInitialized(Self, NullHmgVector, csVector);
-  fposition2 := TGCoordinates.CreateInitialized(Self, NullHmgVector, csVector);
+  fposition1 := TgCoordinates.CreateInitialized(Self, NullHmgVector, csVector);
+  fposition2 := TgCoordinates.CreateInitialized(Self, NullHmgVector, csVector);
   // fObject1:=TGLBaseSceneObject.Create(Self);
   // fObject1:=TGLBaseSceneObject.Create(Self);
   // fObject2:=TGLBaseSceneObject.Create(Self);
   // fObject2:=TGLBaseSceneObject.Create(Self);
 end;
 end;
@@ -153,12 +153,12 @@ begin
   // messagedlg('Object2 does not have an inertia behaviour',mtWarning,[mbOk],0);
   // messagedlg('Object2 does not have an inertia behaviour',mtWarning,[mbOk],0);
 end;
 end;
 
 
-procedure TGLForce.SetPosition1(const val: TGCoordinates);
+procedure TGLForce.SetPosition1(const val: TgCoordinates);
 begin
 begin
   fposition1.Assign(val); // DB101
   fposition1.Assign(val); // DB101
 end;
 end;
 
 
-procedure TGLForce.SetPosition2(const val: TGCoordinates);
+procedure TGLForce.SetPosition2(const val: TgCoordinates);
 begin
 begin
   fposition2.Assign(val);
   fposition2.Assign(val);
 end;
 end;

+ 10 - 10
Source/GLS.PhysInertias.pas

@@ -27,12 +27,12 @@ type
   // modified from TGLBInertia
   // modified from TGLBInertia
   private
   private
     FMass: Single;
     FMass: Single;
-    FTranslationSpeed: TGCoordinates;
+    FTranslationSpeed: TgCoordinates;
     FTranslationDamping: TGLDamping;
     FTranslationDamping: TGLDamping;
   protected
   protected
     function CalcLinearPositionDot(): TAffineVector;
     function CalcLinearPositionDot(): TAffineVector;
     function CalcLinearMomentumDot(): TAffineVector;
     function CalcLinearMomentumDot(): TAffineVector;
-    procedure SetTranslationSpeed(const val: TGCoordinates);
+    procedure SetTranslationSpeed(const val: TgCoordinates);
     procedure SetTranslationDamping(const val: TGLDamping);
     procedure SetTranslationDamping(const val: TGLDamping);
   public
   public
     fForce: TAffineVector;
     fForce: TAffineVector;
@@ -72,7 +72,7 @@ type
     procedure SurfaceBounce(const surfaceNormal: TGLVector; restitution: Single);
     procedure SurfaceBounce(const surfaceNormal: TGLVector; restitution: Single);
   published
   published
     property Mass: Single read FMass write FMass;
     property Mass: Single read FMass write FMass;
-    property TranslationSpeed: TGCoordinates read FTranslationSpeed
+    property TranslationSpeed: TgCoordinates read FTranslationSpeed
       write SetTranslationSpeed;
       write SetTranslationSpeed;
 
 
     (* Enable/Disable damping (damping has a high cpu-cycle cost).
     (* Enable/Disable damping (damping has a high cpu-cycle cost).
@@ -119,7 +119,7 @@ type
     fInertiaTensor: TGLInertiaTensor;
     fInertiaTensor: TGLInertiaTensor;
     InverseInertiaTensor: TAffineMAtrix;
     InverseInertiaTensor: TAffineMAtrix;
     // LinearVelocity:TAffineVector;
     // LinearVelocity:TAffineVector;
-    fRotationSpeed: TGCoordinates;
+    fRotationSpeed: TgCoordinates;
     /// AngularVelocity:TAffineVector;      //rotation about axis, magnitude=speed
     /// AngularVelocity:TAffineVector;      //rotation about axis, magnitude=speed
     // damping properties
     // damping properties
     FRotationDamping: TGLDamping;
     FRotationDamping: TGLDamping;
@@ -167,13 +167,13 @@ type
     procedure ApplyLocalForce(pos, Force: TVector3f); override;
     procedure ApplyLocalForce(pos, Force: TVector3f); override;
     procedure ApplyLocalImpulse(xpos, ypos, zpos, x, y, z: Real);
     procedure ApplyLocalImpulse(xpos, ypos, zpos, x, y, z: Real);
     procedure SetInertiaTensor(newVal: TGLInertiaTensor);
     procedure SetInertiaTensor(newVal: TGLInertiaTensor);
-    procedure SetRotationSpeed(const val: TGCoordinates);
+    procedure SetRotationSpeed(const val: TgCoordinates);
     procedure SetRotationDamping(const val: TGLDamping);
     procedure SetRotationDamping(const val: TGLDamping);
   published
   published
     property Density: Real read fDensity write fDensity;
     property Density: Real read fDensity write fDensity;
     property InertiaTensor: TGLInertiaTensor read fInertiaTensor
     property InertiaTensor: TGLInertiaTensor read fInertiaTensor
       write SetInertiaTensor;
       write SetInertiaTensor;
-    property RotationSpeed: TGCoordinates read fRotationSpeed
+    property RotationSpeed: TgCoordinates read fRotationSpeed
       write SetRotationSpeed;
       write SetRotationSpeed;
     property RotationDamping: TGLDamping read FRotationDamping
     property RotationDamping: TGLDamping read FRotationDamping
       write SetRotationDamping;
       write SetRotationDamping;
@@ -208,7 +208,7 @@ begin
   inherited Create(aOwner);
   inherited Create(aOwner);
   FMass := 1;
   FMass := 1;
   StateSize := 6;
   StateSize := 6;
-  FTranslationSpeed := TGCoordinates.CreateInitialized(Self, NullHmgVector, csVector);
+  FTranslationSpeed := TgCoordinates.CreateInitialized(Self, NullHmgVector, csVector);
   LinearPosition := OwnerBaseSceneObject.position.AsAffineVector;
   LinearPosition := OwnerBaseSceneObject.position.AsAffineVector;
   LinearMomentum := FTranslationSpeed.AsAffineVector;
   LinearMomentum := FTranslationSpeed.AsAffineVector;
   FTranslationDamping := TGLDamping.Create(Self);
   FTranslationDamping := TGLDamping.Create(Self);
@@ -268,7 +268,7 @@ begin
   SetUpStartingState();
   SetUpStartingState();
 end;
 end;
 
 
-procedure TGLParticleInertia.SetTranslationSpeed(const val: TGCoordinates);
+procedure TGLParticleInertia.SetTranslationSpeed(const val: TgCoordinates);
 begin
 begin
   FTranslationSpeed.Assign(val);
   FTranslationSpeed.Assign(val);
   LinearMomentum := VectorScale(FTranslationSpeed.AsAffineVector, FMass);
   LinearMomentum := VectorScale(FTranslationSpeed.AsAffineVector, FMass);
@@ -574,7 +574,7 @@ begin
   fInertiaTensor := newVal;
   fInertiaTensor := newVal;
 end;
 end;
 
 
-procedure TGLRigidBodyInertia.SetRotationSpeed(const val: TGCoordinates);
+procedure TGLRigidBodyInertia.SetRotationSpeed(const val: TgCoordinates);
 begin
 begin
   AngularMomentum := VectorTransform(val.AsAffineVector, fBodyInertiaTensor);
   AngularMomentum := VectorTransform(val.AsAffineVector, fBodyInertiaTensor);
   fRotationSpeed.Assign(val);
   fRotationSpeed.Assign(val);
@@ -890,7 +890,7 @@ begin
   StateSize := 13;
   StateSize := 13;
 
 
   fInertiaTensor := TGLInertiaTensor.Create(Self);
   fInertiaTensor := TGLInertiaTensor.Create(Self);
-  fRotationSpeed := TGCoordinates.CreateInitialized(Self, VectorMake(0, 0, 0));
+  fRotationSpeed := TgCoordinates.CreateInitialized(Self, VectorMake(0, 0, 0));
 
 
   // LinearPosition:=OwnerBaseSceneObject.Position.AsAffineVector;
   // LinearPosition:=OwnerBaseSceneObject.Position.AsAffineVector;
   AngularOrientation := IdentityQuaternion; // fromAngleAxis(0,XVector);
   AngularOrientation := IdentityQuaternion; // fromAngleAxis(0,XVector);

+ 5 - 5
Source/GLS.ProxyObjects.pas

@@ -18,7 +18,7 @@ uses
   GLScene.OpenGLTokens,
   GLScene.OpenGLTokens,
   GLS.Scene,
   GLS.Scene,
   GLScene.XCollection,
   GLScene.XCollection,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLScene.VectorGeometry,
   GLScene.VectorGeometry,
   GLS.Texture,
   GLS.Texture,
   GLS.VectorFileObjects,
   GLS.VectorFileObjects,
@@ -143,7 +143,7 @@ type
     FBonesMatrices: TStringList;
     FBonesMatrices: TStringList;
     FStoreBonesMatrix: boolean;
     FStoreBonesMatrix: boolean;
     FStoredBoneNames: TStrings;
     FStoredBoneNames: TStrings;
-    FOnBeforeRender: TGProgressEvent;
+    FOnBeforeRender: TgProgressEvent;
     FAnimationMode: TGLActorProxyAnimationMode;
     FAnimationMode: TGLActorProxyAnimationMode;
     procedure SetAnimation(const Value: TGLActorAnimationName);
     procedure SetAnimation(const Value: TGLActorAnimationName);
     procedure SetMasterActorObject(const Value: TGLActor);
     procedure SetMasterActorObject(const Value: TGLActor);
@@ -155,7 +155,7 @@ type
     function GetMaterialLibrary: TGLAbstractMaterialLibrary;
     function GetMaterialLibrary: TGLAbstractMaterialLibrary;
     procedure SetStoreBonesMatrix(const Value: boolean);
     procedure SetStoreBonesMatrix(const Value: boolean);
     procedure SetStoredBoneNames(const Value: TStrings);
     procedure SetStoredBoneNames(const Value: TStrings);
-    procedure SetOnBeforeRender(const Value: TGProgressEvent);
+    procedure SetOnBeforeRender(const Value: TgProgressEvent);
   protected
   protected
     procedure DoStoreBonesMatrices; // stores matrices of bones of the current frame rendered
     procedure DoStoreBonesMatrices; // stores matrices of bones of the current frame rendered
   public
   public
@@ -209,7 +209,7 @@ type
     property StoredBoneNames: TStrings read FStoredBoneNames write SetStoredBoneNames;
     property StoredBoneNames: TStrings read FStoredBoneNames write SetStoredBoneNames;
     (* Event allowing to apply extra transformations (f.ex: bone rotations) to the referenced
     (* Event allowing to apply extra transformations (f.ex: bone rotations) to the referenced
        Actor on order to have the proxy render these changes. *)
        Actor on order to have the proxy render these changes. *)
-    property OnBeforeRender: TGProgressEvent read FOnBeforeRender write SetOnBeforeRender;
+    property OnBeforeRender: TgProgressEvent read FOnBeforeRender write SetOnBeforeRender;
   end;
   end;
 
 
 //-------------------------------------------------------------
 //-------------------------------------------------------------
@@ -772,7 +772,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGLActorProxy.SetOnBeforeRender(const Value: TGProgressEvent);
+procedure TGLActorProxy.SetOnBeforeRender(const Value: TgProgressEvent);
 begin
 begin
   FOnBeforeRender := Value;
   FOnBeforeRender := Value;
 end;
 end;

+ 12 - 12
Source/GLS.ROAMPatch.pas

@@ -66,9 +66,9 @@ type
     procedure SetHeightData(Val: TGLHeightData);
     procedure SetHeightData(Val: TGLHeightData);
     procedure SetOcclusionSkip(Val: Integer);
     procedure SetOcclusionSkip(Val: Integer);
     procedure RenderROAM(Vertices: TGAffineVectorList;
     procedure RenderROAM(Vertices: TGAffineVectorList;
-      VertexIndices: TGIntegerList; TexCoords: TGTexPointList);
+      VertexIndices: TgIntegerList; TexCoords: TGTexPointList);
     procedure RenderAsStrips(Vertices: TGAffineVectorList;
     procedure RenderAsStrips(Vertices: TGAffineVectorList;
-      VertexIndices: TGIntegerList; TexCoords: TGTexPointList);
+      VertexIndices: TgIntegerList; TexCoords: TGTexPointList);
   public
   public
     constructor Create;
     constructor Create;
     destructor Destroy; override;
     destructor Destroy; override;
@@ -89,18 +89,18 @@ type
       (additions without capacity check). High-resolution renders use
       (additions without capacity check). High-resolution renders use
       display lists, and are assumed to be made together. *)
       display lists, and are assumed to be made together. *)
     procedure RenderHighRes(Vertices: TGAffineVectorList;
     procedure RenderHighRes(Vertices: TGAffineVectorList;
-      VertexIndices: TGIntegerList; TexCoords: TGTexPointList; ForceROAM: Boolean);
+      VertexIndices: TgIntegerList; TexCoords: TGTexPointList; ForceROAM: Boolean);
     (*  Render the patch by accumulating triangles.
     (*  Render the patch by accumulating triangles.
       The lists are assumed to have enough capacity to allow AddNC calls
       The lists are assumed to have enough capacity to allow AddNC calls
       (additions without capacity check).
       (additions without capacity check).
       Once at least autoFlushVertexCount vertices have been accumulated,
       Once at least autoFlushVertexCount vertices have been accumulated,
       perform a FlushAccum *)
       perform a FlushAccum *)
     procedure RenderAccum(Vertices: TGAffineVectorList;
     procedure RenderAccum(Vertices: TGAffineVectorList;
-      VertexIndices: TGIntegerList; TexCoords: TGTexPointList;
+      VertexIndices: TgIntegerList; TexCoords: TGTexPointList;
       AutoFlushVertexCount: Integer);
       AutoFlushVertexCount: Integer);
     // Render all vertices accumulated in the arrays and set their count back to zero.
     // Render all vertices accumulated in the arrays and set their count back to zero.
     class procedure FlushAccum(Vertices: TGAffineVectorList;
     class procedure FlushAccum(Vertices: TGAffineVectorList;
-      VertexIndices: TGIntegerList; TexCoords: TGTexPointList);
+      VertexIndices: TgIntegerList; TexCoords: TGTexPointList);
     property HeightData: TGLHeightData read FHeightData write SetHeightData;
     property HeightData: TGLHeightData read FHeightData write SetHeightData;
     property VertexScale: TAffineVector read FVertexScale write FVertexScale;
     property VertexScale: TAffineVector read FVertexScale write FVertexScale;
     property VertexOffset: TAffineVector read FVertexOffset write FVertexOffset;
     property VertexOffset: TAffineVector read FVertexOffset write FVertexOffset;
@@ -129,7 +129,7 @@ type
 procedure SetROAMTrianglesCapacity(nb: Integer);
 procedure SetROAMTrianglesCapacity(nb: Integer);
 function GetROAMTrianglesCapacity: Integer;
 function GetROAMTrianglesCapacity: Integer;
 //  Draw contours on rendering terrain patches
 //  Draw contours on rendering terrain patches
-procedure DrawContours(Vertices: TGAffineVectorList; VertexIndices: TGIntegerList;
+procedure DrawContours(Vertices: TGAffineVectorList; VertexIndices: TgIntegerList;
   ContourInterval: Integer; ContourWidth: Integer; DecVal: Integer);
   ContourInterval: Integer; ContourWidth: Integer; DecVal: Integer);
 
 
 // ------------------------------------------------------------------
 // ------------------------------------------------------------------
@@ -174,7 +174,7 @@ begin
   Result := vTriangleNodesCapacity;
   Result := vTriangleNodesCapacity;
 end;
 end;
 
 
-procedure DrawContours(Vertices: TGAffineVectorList; VertexIndices: TGIntegerList;
+procedure DrawContours(Vertices: TGAffineVectorList; VertexIndices: TgIntegerList;
   ContourInterval: Integer; ContourWidth: Integer; DecVal: Integer);
   ContourInterval: Integer; ContourWidth: Integer; DecVal: Integer);
 var
 var
   i: Integer;
   i: Integer;
@@ -679,7 +679,7 @@ begin
 end;
 end;
 
 
 procedure TGLROAMPatch.RenderHighRes(Vertices: TGAffineVectorList;
 procedure TGLROAMPatch.RenderHighRes(Vertices: TGAffineVectorList;
-  VertexIndices: TGIntegerList; TexCoords: TGTexPointList; ForceROAM: Boolean);
+  VertexIndices: TgIntegerList; TexCoords: TGTexPointList; ForceROAM: Boolean);
 
 
 var
 var
   Primitive: Cardinal;
   Primitive: Cardinal;
@@ -726,7 +726,7 @@ begin
 end;
 end;
 
 
 procedure TGLROAMPatch.RenderAccum(Vertices: TGAffineVectorList;
 procedure TGLROAMPatch.RenderAccum(Vertices: TGAffineVectorList;
-  VertexIndices: TGIntegerList; TexCoords: TGTexPointList;
+  VertexIndices: TgIntegerList; TexCoords: TGTexPointList;
   AutoFlushVertexCount: Integer);
   AutoFlushVertexCount: Integer);
 var
 var
   OcclusionPassed: Boolean;
   OcclusionPassed: Boolean;
@@ -777,7 +777,7 @@ begin
 end;
 end;
 
 
 class procedure TGLROAMPatch.FlushAccum(Vertices: TGAffineVectorList;
 class procedure TGLROAMPatch.FlushAccum(Vertices: TGAffineVectorList;
-  VertexIndices: TGIntegerList; TexCoords: TGTexPointList);
+  VertexIndices: TgIntegerList; TexCoords: TGTexPointList);
 begin
 begin
   if VertexIndices.Count = 0 then
   if VertexIndices.Count = 0 then
     Exit;
     Exit;
@@ -841,7 +841,7 @@ begin
 end;
 end;
 
 
 procedure TGLROAMPatch.RenderROAM(Vertices: TGAffineVectorList;
 procedure TGLROAMPatch.RenderROAM(Vertices: TGAffineVectorList;
-  VertexIndices: TGIntegerList; TexCoords: TGTexPointList);
+  VertexIndices: TgIntegerList; TexCoords: TGTexPointList);
 
 
   procedure ROAMRenderPoint(var p: TROAMRenderPoint; anX, anY: Integer);
   procedure ROAMRenderPoint(var p: TROAMRenderPoint; anX, anY: Integer);
   begin
   begin
@@ -875,7 +875,7 @@ begin
 end;
 end;
 
 
 procedure TGLROAMPatch.RenderAsStrips(Vertices: TGAffineVectorList;
 procedure TGLROAMPatch.RenderAsStrips(Vertices: TGAffineVectorList;
-  VertexIndices: TGIntegerList; TexCoords: TGTexPointList);
+  VertexIndices: TgIntegerList; TexCoords: TGTexPointList);
 
 
 var
 var
   X, Y, baseTop, rowLength: Integer;
   X, Y, baseTop, rowLength: Integer;

+ 1 - 1
Source/GLS.Ragdoll.pas

@@ -24,7 +24,7 @@ type
   TGLRagdolJoint = class
   TGLRagdolJoint = class
   end;
   end;
 
 
-  TGLRagdolBoneList = class(TGPersistentObjectList)
+  TGLRagdolBoneList = class(TgPersistentObjectList)
   private
   private
     FRagdoll: TGLRagdoll;
     FRagdoll: TGLRagdoll;
   protected
   protected

+ 2 - 2
Source/GLS.RandomHDS.pas

@@ -338,7 +338,7 @@ type
       vertical/horitontal ratio with any size. Therefore, Scale.X=Scale.Y=1 and
       vertical/horitontal ratio with any size. Therefore, Scale.X=Scale.Y=1 and
       only Scale.Z varies. If you want to increase the landscape scale, the best way
       only Scale.Z varies. If you want to increase the landscape scale, the best way
       would be to place the Terrain Renderer in a DummyCube and rescale it. *)
       would be to place the Terrain Renderer in a DummyCube and rescale it. *)
-    function Scale: TGCoordinates;
+    function Scale: TgCoordinates;
     (* Size of the square height array. With the middle-point algorithm, it is always
     (* Size of the square height array. With the middle-point algorithm, it is always
       Size = 2^N+1. In a cyclic landscape, the last row and columns are identical
       Size = 2^N+1. In a cyclic landscape, the last row and columns are identical
       to the first. *)
       to the first. *)
@@ -1842,7 +1842,7 @@ begin
   Result := (x >= 0) and (x <= FSize) and (y >= 0) and (y <= FSize);
   Result := (x >= 0) and (x <= FSize) and (y >= 0) and (y <= FSize);
 end;
 end;
 
 
-function TGLCustomRandomHDS.Scale: TGCoordinates;
+function TGLCustomRandomHDS.Scale: TgCoordinates;
 begin
 begin
   try
   try
     Result := FTerrainRenderer.Scale;
     Result := FTerrainRenderer.Scale;

+ 4 - 4
Source/GLS.RenderContextInfo.pas

@@ -14,7 +14,7 @@ uses
   GLScene.VectorTypes,
   GLScene.VectorTypes,
   GLScene.VectorGeometry,
   GLScene.VectorGeometry,
   GLS.State,
   GLS.State,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLScene.Color;
   GLScene.Color;
 
 
 type
 type
@@ -74,7 +74,7 @@ type
     ObjectsSorting: TGLObjectsSorting;
     ObjectsSorting: TGLObjectsSorting;
     VisibilityCulling: TGLVisibilityCulling;
     VisibilityCulling: TGLVisibilityCulling;
     GLStates: TGLStateCache;
     GLStates: TGLStateCache;
-    PipelineTransformation: TGLTransformation;
+    PipelineTransformation: TGTransformation;
     Rcci: TGLRenderContextClippingInfo;
     Rcci: TGLRenderContextClippingInfo;
     SceneAmbientColor: TGColorVector;
     SceneAmbientColor: TGColorVector;
     BufferFaceCull: Boolean;
     BufferFaceCull: Boolean;
@@ -86,8 +86,8 @@ type
     IgnoreBlendingRequests: Boolean;
     IgnoreBlendingRequests: Boolean;
     IgnoreDepthRequests: Boolean;
     IgnoreDepthRequests: Boolean;
     Amalgamating: Boolean;
     Amalgamating: Boolean;
-    Lights: TGPersistentObjectList;
-    AfterRenderEffects: TGPersistentObjectList;
+    Lights: TgPersistentObjectList;
+    AfterRenderEffects: TgPersistentObjectList;
     CurrentMaterialLevel: TGLMaterialLevel;
     CurrentMaterialLevel: TGLMaterialLevel;
     PrimitiveMask: TGLMeshPrimitives;
     PrimitiveMask: TGLMeshPrimitives;
     OrderCounter: Integer;
     OrderCounter: Integer;

+ 51 - 52
Source/GLS.Scene.pas

@@ -32,7 +32,7 @@ uses
   GLScene.VectorGeometry,
   GLScene.VectorGeometry,
   GLS.Silhouette,
   GLS.Silhouette,
   GLScene.PersistentClasses,
   GLScene.PersistentClasses,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLS.State,
   GLS.State,
   GLS.Graphics,
   GLS.Graphics,
   GLScene.GeometryBB,
   GLScene.GeometryBB,
@@ -64,7 +64,6 @@ const
   GLSCENE_VERSION = 'v2.5 %s';
   GLSCENE_VERSION = 'v2.5 %s';
 
 
 type
 type
-
   TGLNormalDirection = (ndInside, ndOutside);
   TGLNormalDirection = (ndInside, ndOutside);
 
 
   // Used to describe the changes in an object, which have to be reflected in the scene
   // Used to describe the changes in an object, which have to be reflected in the scene
@@ -157,15 +156,15 @@ type
      To add children at runtime, use the AddNewChild method of TGLBaseSceneObject;
      To add children at runtime, use the AddNewChild method of TGLBaseSceneObject;
      other children manipulations methods and properties are provided (to browse,
      other children manipulations methods and properties are provided (to browse,
      move and delete them). Using the regular TComponent methods is not encouraged *)
      move and delete them). Using the regular TComponent methods is not encouraged *)
-  TGLBaseSceneObject = class(TGCoordinatesUpdateAbleComponent)
+  TGLBaseSceneObject = class(TgCoordinatesUpdateAbleComponent)
   private
   private
     FAbsoluteMatrix, FInvAbsoluteMatrix: TGLMatrix;
     FAbsoluteMatrix, FInvAbsoluteMatrix: TGLMatrix;
     FLocalMatrix: TGLMatrix;
     FLocalMatrix: TGLMatrix;
     FObjectStyle: TGLObjectStyles;
     FObjectStyle: TGLObjectStyles;
     FListHandle: TGLListHandle; // created on 1st use
     FListHandle: TGLListHandle; // created on 1st use
-    FPosition: TGCoordinates;
-    FDirection, FUp: TGCoordinates;
-    FScaling: TGCoordinates;
+    FPosition: TgCoordinates;
+    FDirection, FUp: TgCoordinates;
+    FScaling: TgCoordinates;
     FChanges: TGLObjectChanges;
     FChanges: TGLObjectChanges;
     FParent: TGLBaseSceneObject;
     FParent: TGLBaseSceneObject;
     FScene: TGLScene;
     FScene: TGLScene;
@@ -173,15 +172,15 @@ type
     FBoundingBoxPersonalUnscaled: THmgBoundingBox;
     FBoundingBoxPersonalUnscaled: THmgBoundingBox;
     FBoundingBoxOfChildren: THmgBoundingBox;
     FBoundingBoxOfChildren: THmgBoundingBox;
     FBoundingBoxIncludingChildren: THmgBoundingBox;
     FBoundingBoxIncludingChildren: THmgBoundingBox;
-    FChildren: TGPersistentObjectList; // created on 1st use
+    FChildren: TgPersistentObjectList; // created on 1st use
     FVisible: Boolean;
     FVisible: Boolean;
     FUpdateCount: Integer;
     FUpdateCount: Integer;
     FShowAxes: Boolean;
     FShowAxes: Boolean;
-    FRotation: TGCoordinates; // current rotation angles
+    FRotation: TgCoordinates; // current rotation angles
     FIsCalculating: Boolean;
     FIsCalculating: Boolean;
     FObjectsSorting: TGLObjectsSorting;
     FObjectsSorting: TGLObjectsSorting;
     FVisibilityCulling: TGLVisibilityCulling;
     FVisibilityCulling: TGLVisibilityCulling;
-    FOnProgress: TGProgressEvent;
+    FOnProgress: TgProgressEvent;
     FOnAddedToParent: TNotifyEvent;
     FOnAddedToParent: TNotifyEvent;
     FBehaviours: TGLBehaviours;
     FBehaviours: TGLBehaviours;
     FEffects: TGLEffects;
     FEffects: TGLEffects;
@@ -190,7 +189,7 @@ type
     FTagObject: TObject;
     FTagObject: TObject;
     FTagFloat: Single;
     FTagFloat: Single;
 
 
-    objList: TGPersistentObjectList;
+    objList: TgPersistentObjectList;
     distList: TGSingleList;
     distList: TGSingleList;
     ///  FOriginalFiler: TFiler;   //used to allow persistent events in behaviours & effects
     ///  FOriginalFiler: TFiler;   //used to allow persistent events in behaviours & effects
     (* If somebody could look at DefineProperties, ReadBehaviours, ReadEffects
     (* If somebody could look at DefineProperties, ReadBehaviours, ReadEffects
@@ -200,19 +199,19 @@ type
     function GetIndex: Integer; inline;
     function GetIndex: Integer; inline;
     procedure SetParent(const val: TGLBaseSceneObject); inline;
     procedure SetParent(const val: TGLBaseSceneObject); inline;
     procedure SetIndex(aValue: Integer);
     procedure SetIndex(aValue: Integer);
-    procedure SetDirection(AVector: TGCoordinates);
-    procedure SetUp(AVector: TGCoordinates);
+    procedure SetDirection(AVector: TgCoordinates);
+    procedure SetUp(AVector: TgCoordinates);
     function GetMatrix: PGLMatrix; inline;
     function GetMatrix: PGLMatrix; inline;
-    procedure SetPosition(APosition: TGCoordinates);
+    procedure SetPosition(APosition: TgCoordinates);
     procedure SetPitchAngle(AValue: Single);
     procedure SetPitchAngle(AValue: Single);
     procedure SetRollAngle(AValue: Single);
     procedure SetRollAngle(AValue: Single);
     procedure SetTurnAngle(AValue: Single);
     procedure SetTurnAngle(AValue: Single);
-    procedure SetRotation(aRotation: TGCoordinates);
+    procedure SetRotation(aRotation: TgCoordinates);
     function GetPitchAngle: Single; inline;
     function GetPitchAngle: Single; inline;
     function GetTurnAngle: Single; inline;
     function GetTurnAngle: Single; inline;
     function GetRollAngle: Single; inline;
     function GetRollAngle: Single; inline;
     procedure SetShowAxes(AValue: Boolean);
     procedure SetShowAxes(AValue: Boolean);
-    procedure SetScaling(AValue: TGCoordinates);
+    procedure SetScaling(AValue: TgCoordinates);
     procedure SetObjectsSorting(const val: TGLObjectsSorting);
     procedure SetObjectsSorting(const val: TGLObjectsSorting);
     procedure SetVisibilityCulling(const val: TGLVisibilityCulling);
     procedure SetVisibilityCulling(const val: TGLVisibilityCulling);
     procedure SetBehaviours(const val: TGLBehaviours);
     procedure SetBehaviours(const val: TGLBehaviours);
@@ -519,10 +518,10 @@ type
     procedure StructureChanged; virtual;
     procedure StructureChanged; virtual;
     procedure ClearStructureChanged; inline;
     procedure ClearStructureChanged; inline;
     // Recalculate an orthonormal system
     // Recalculate an orthonormal system
-    procedure CoordinateChanged(Sender: TGCustomCoordinates); override;
+    procedure CoordinateChanged(Sender: TgCustomCoordinates); override;
     procedure TransformationChanged; inline;
     procedure TransformationChanged; inline;
     procedure NotifyChange(Sender: TObject); override;
     procedure NotifyChange(Sender: TObject); override;
-    property Rotation: TGCoordinates read FRotation write SetRotation;
+    property Rotation: TgCoordinates read FRotation write SetRotation;
     property PitchAngle: Single read GetPitchAngle write SetPitchAngle;
     property PitchAngle: Single read GetPitchAngle write SetPitchAngle;
     property RollAngle: Single read GetRollAngle write SetRollAngle;
     property RollAngle: Single read GetRollAngle write SetRollAngle;
     property TurnAngle: Single read GetTurnAngle write SetTurnAngle;
     property TurnAngle: Single read GetTurnAngle write SetTurnAngle;
@@ -530,10 +529,10 @@ type
     property Changes: TGLObjectChanges read FChanges;
     property Changes: TGLObjectChanges read FChanges;
     property BBChanges: TGLObjectBBChanges read fBBChanges write SetBBChanges;
     property BBChanges: TGLObjectBBChanges read fBBChanges write SetBBChanges;
     property Parent: TGLBaseSceneObject read FParent write SetParent;
     property Parent: TGLBaseSceneObject read FParent write SetParent;
-    property Position: TGCoordinates read FPosition write SetPosition;
-    property Direction: TGCoordinates read FDirection write SetDirection;
-    property Up: TGCoordinates read FUp write SetUp;
-    property Scale: TGCoordinates read FScaling write SetScaling;
+    property Position: TgCoordinates read FPosition write SetPosition;
+    property Direction: TgCoordinates read FDirection write SetDirection;
+    property Up: TgCoordinates read FUp write SetUp;
+    property Scale: TgCoordinates read FScaling write SetScaling;
     property Scene: TGLScene read FScene;
     property Scene: TGLScene read FScene;
     property Visible: Boolean read FVisible write SetVisible default True;
     property Visible: Boolean read FVisible write SetVisible default True;
     property Pickable: Boolean read FPickable write SetPickable default True;
     property Pickable: Boolean read FPickable write SetPickable default True;
@@ -541,7 +540,7 @@ type
       SetObjectsSorting default osInherited;
       SetObjectsSorting default osInherited;
     property VisibilityCulling: TGLVisibilityCulling read FVisibilityCulling
     property VisibilityCulling: TGLVisibilityCulling read FVisibilityCulling
       write SetVisibilityCulling default vcInherited;
       write SetVisibilityCulling default vcInherited;
-    property OnProgress: TGProgressEvent read FOnProgress write FOnProgress;
+    property OnProgress: TgProgressEvent read FOnProgress write FOnProgress;
     property OnPicked: TNotifyEvent read FOnPicked write FOnPicked;
     property OnPicked: TNotifyEvent read FOnPicked write FOnPicked;
     property OnAddedToParent: TNotifyEvent read FOnAddedToParent write FOnAddedToParent;
     property OnAddedToParent: TNotifyEvent read FOnAddedToParent write FOnAddedToParent;
     property Behaviours: TGLBehaviours read GetBehaviours write SetBehaviours stored False;
     property Behaviours: TGLBehaviours read GetBehaviours write SetBehaviours stored False;
@@ -901,7 +900,7 @@ type
   TGLLightSource = class(TGLBaseSceneObject)
   TGLLightSource = class(TGLBaseSceneObject)
   private
   private
     FLightID: Cardinal;
     FLightID: Cardinal;
-    FSpotDirection: TGCoordinates;
+    FSpotDirection: TgCoordinates;
     FSpotExponent, FSpotCutOff: Single;
     FSpotExponent, FSpotCutOff: Single;
     FConstAttenuation, FLinearAttenuation, FQuadraticAttenuation: Single;
     FConstAttenuation, FLinearAttenuation, FQuadraticAttenuation: Single;
     FShining: Boolean;
     FShining: Boolean;
@@ -915,7 +914,7 @@ type
     procedure SetLinearAttenuation(AValue: Single);
     procedure SetLinearAttenuation(AValue: Single);
     procedure SetQuadraticAttenuation(AValue: Single);
     procedure SetQuadraticAttenuation(AValue: Single);
     procedure SetShining(AValue: Boolean);
     procedure SetShining(AValue: Boolean);
-    procedure SetSpotDirection(AVector: TGCoordinates);
+    procedure SetSpotDirection(AVector: TgCoordinates);
     procedure SetSpotExponent(AValue: Single);
     procedure SetSpotExponent(AValue: Single);
     procedure SetSpotCutOff(const val: Single);
     procedure SetSpotCutOff(const val: Single);
     procedure SetLightStyle(const val: TGLLightStyle);
     procedure SetLightStyle(const val: TGLLightStyle);
@@ -928,7 +927,7 @@ type
     function RayCastIntersect(const rayStart, rayVector: TGLVector;
     function RayCastIntersect(const rayStart, rayVector: TGLVector;
       intersectPoint: PGLVector = nil;
       intersectPoint: PGLVector = nil;
       intersectNormal: PGLVector = nil): Boolean; override;
       intersectNormal: PGLVector = nil): Boolean; override;
-    procedure CoordinateChanged(Sender: TGCustomCoordinates); override;
+    procedure CoordinateChanged(Sender: TgCustomCoordinates); override;
     function GenerateSilhouette(const silhouetteParameters:
     function GenerateSilhouette(const silhouetteParameters:
       TGLSilhouetteParameters): TGLSilhouette; override;
       TGLSilhouetteParameters): TGLSilhouette; override;
     property LightID: Cardinal read FLightID;
     property LightID: Cardinal read FLightID;
@@ -947,7 +946,7 @@ type
     property Shining: Boolean read FShining write SetShining default True;
     property Shining: Boolean read FShining write SetShining default True;
     property Specular: TGColor read FSpecular write SetSpecular;
     property Specular: TGColor read FSpecular write SetSpecular;
     property SpotCutOff: Single read FSpotCutOff write SetSpotCutOff;
     property SpotCutOff: Single read FSpotCutOff write SetSpotCutOff;
-    property SpotDirection: TGCoordinates read FSpotDirection write
+    property SpotDirection: TgCoordinates read FSpotDirection write
       SetSpotDirection;
       SetSpotDirection;
     property SpotExponent: Single read FSpotExponent write SetSpotExponent;
     property SpotExponent: Single read FSpotExponent write SetSpotExponent;
     property OnProgress;
     property OnProgress;
@@ -1140,13 +1139,13 @@ type
     FUpdateCount: Integer;
     FUpdateCount: Integer;
     FObjects: TGLSceneRootObject;
     FObjects: TGLSceneRootObject;
     FBaseContext: TGLContext; //reference, not owned!
     FBaseContext: TGLContext; //reference, not owned!
-    FLights, FBuffers: TGPersistentObjectList;
+    FLights, FBuffers: TgPersistentObjectList;
     FCurrentGLCamera: TGLCamera;
     FCurrentGLCamera: TGLCamera;
     FCurrentBuffer: TGLSceneBuffer;
     FCurrentBuffer: TGLSceneBuffer;
     FObjectsSorting: TGLObjectsSorting;
     FObjectsSorting: TGLObjectsSorting;
     FVisibilityCulling: TGLVisibilityCulling;
     FVisibilityCulling: TGLVisibilityCulling;
-    FOnBeforeProgress: TGProgressEvent;
-    FOnProgress: TGProgressEvent;
+    FOnBeforeProgress: TgProgressEvent;
+    FOnProgress: TgProgressEvent;
     FCurrentDeltaTime: Double;
     FCurrentDeltaTime: Double;
     FInitializableObjects: TGLInitializableObjectList;
     FInitializableObjects: TGLInitializableObjectList;
   protected
   protected
@@ -1196,7 +1195,7 @@ type
     // Load the scene from a text files. See LoadFromFile for details.
     // Load the scene from a text files. See LoadFromFile for details.
     procedure LoadFromTextFile(const fileName: string);
     procedure LoadFromTextFile(const fileName: string);
     property CurrentGLCamera: TGLCamera read FCurrentGLCamera;
     property CurrentGLCamera: TGLCamera read FCurrentGLCamera;
-    property Lights: TGPersistentObjectList read FLights;
+    property Lights: TgPersistentObjectList read FLights;
     property Objects: TGLSceneRootObject read FObjects;
     property Objects: TGLSceneRootObject read FObjects;
     property CurrentBuffer: TGLSceneBuffer read FCurrentBuffer;
     property CurrentBuffer: TGLSceneBuffer read FCurrentBuffer;
     (* List of objects that request to be initialized when rendering context is active.
     (* List of objects that request to be initialized when rendering context is active.
@@ -1211,8 +1210,8 @@ type
     // Defines default VisibilityCulling option for scene objects.
     // Defines default VisibilityCulling option for scene objects.
     property VisibilityCulling: TGLVisibilityCulling read FVisibilityCulling
     property VisibilityCulling: TGLVisibilityCulling read FVisibilityCulling
       write SetVisibilityCulling default vcNone;
       write SetVisibilityCulling default vcNone;
-    property OnBeforeProgress: TGProgressEvent read FOnBeforeProgress write FOnBeforeProgress;
-    property OnProgress: TGProgressEvent read FOnProgress write FOnProgress;
+    property OnBeforeProgress: TgProgressEvent read FOnBeforeProgress write FOnBeforeProgress;
+    property OnProgress: TgProgressEvent read FOnProgress write FOnProgress;
   end;
   end;
 
 
   TFogMode = (fmLinear, fmExp, fmExp2);
   TFogMode = (fmLinear, fmExp, fmExp2);
@@ -1275,7 +1274,7 @@ type
     // Internal state
     // Internal state
     FRendering: Boolean;
     FRendering: Boolean;
     FRenderingContext: TGLContext;
     FRenderingContext: TGLContext;
-    FAfterRenderEffects: TGPersistentObjectList;
+    FAfterRenderEffects: TgPersistentObjectList;
     FViewMatrixStack: array of TGLMatrix;
     FViewMatrixStack: array of TGLMatrix;
     FProjectionMatrixStack: array of TGLMatrix;
     FProjectionMatrixStack: array of TGLMatrix;
     FBaseProjectionMatrix: TGLMatrix;
     FBaseProjectionMatrix: TGLMatrix;
@@ -1878,24 +1877,24 @@ begin
   FObjectStyle := [];
   FObjectStyle := [];
   FChanges := [ocTransformation, ocStructure,
   FChanges := [ocTransformation, ocStructure,
     ocAbsoluteMatrix, ocInvAbsoluteMatrix];
     ocAbsoluteMatrix, ocInvAbsoluteMatrix];
-  FPosition := TGCoordinates.CreateInitialized(Self, NullHmgPoint, csPoint);
-  FRotation := TGCoordinates.CreateInitialized(Self, NullHmgVector, csVector);
-  FDirection := TGCoordinates.CreateInitialized(Self, ZHmgVector, csVector);
-  FUp := TGCoordinates.CreateInitialized(Self, YHmgVector, csVector);
-  FScaling := TGCoordinates.CreateInitialized(Self, XYZHmgVector, csVector);
+  FPosition := TgCoordinates.CreateInitialized(Self, NullHmgPoint, csPoint);
+  FRotation := TgCoordinates.CreateInitialized(Self, NullHmgVector, csVector);
+  FDirection := TgCoordinates.CreateInitialized(Self, ZHmgVector, csVector);
+  FUp := TgCoordinates.CreateInitialized(Self, YHmgVector, csVector);
+  FScaling := TgCoordinates.CreateInitialized(Self, XYZHmgVector, csVector);
   FLocalMatrix := IdentityHmgMatrix;
   FLocalMatrix := IdentityHmgMatrix;
   FVisible := True;
   FVisible := True;
   FPickable := True;
   FPickable := True;
   FObjectsSorting := osInherited;
   FObjectsSorting := osInherited;
   FVisibilityCulling := vcInherited;
   FVisibilityCulling := vcInherited;
-  FChildren := TGPersistentObjectList.Create;
+  FChildren := TgPersistentObjectList.Create;
 
 
   fBBChanges := [oBBcChild, oBBcStructure];
   fBBChanges := [oBBcChild, oBBcStructure];
   FBoundingBoxPersonalUnscaled := NullBoundingBox;
   FBoundingBoxPersonalUnscaled := NullBoundingBox;
   FBoundingBoxOfChildren := NullBoundingBox;
   FBoundingBoxOfChildren := NullBoundingBox;
   FBoundingBoxIncludingChildren := NullBoundingBox;
   FBoundingBoxIncludingChildren := NullBoundingBox;
   distList := TGSingleList.Create;
   distList := TGSingleList.Create;
-  objList := TGPersistentObjectList.Create;
+  objList := TgPersistentObjectList.Create;
 end;
 end;
 
 
 constructor TGLBaseSceneObject.CreateAsChild(aParentOwner: TGLBaseSceneObject);
 constructor TGLBaseSceneObject.CreateAsChild(aParentOwner: TGLBaseSceneObject);
@@ -3098,7 +3097,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGLBaseSceneObject.SetRotation(aRotation: TGCoordinates);
+procedure TGLBaseSceneObject.SetRotation(aRotation: TgCoordinates);
 begin
 begin
   FRotation.Assign(aRotation);
   FRotation.Assign(aRotation);
   TransformationChanged;
   TransformationChanged;
@@ -3157,7 +3156,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGLBaseSceneObject.SetScaling(AValue: TGCoordinates);
+procedure TGLBaseSceneObject.SetScaling(AValue: TgCoordinates);
 begin
 begin
   FScaling.Assign(AValue);
   FScaling.Assign(AValue);
   TransformationChanged;
   TransformationChanged;
@@ -3400,7 +3399,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGLBaseSceneObject.CoordinateChanged(Sender: TGCustomCoordinates);
+procedure TGLBaseSceneObject.CoordinateChanged(Sender: TgCustomCoordinates);
 var
 var
   rightVector: TGLVector;
   rightVector: TGLVector;
 begin
 begin
@@ -3866,18 +3865,18 @@ begin
   TransformationChanged;
   TransformationChanged;
 end;
 end;
 
 
-procedure TGLBaseSceneObject.SetPosition(APosition: TGCoordinates);
+procedure TGLBaseSceneObject.SetPosition(APosition: TgCoordinates);
 begin
 begin
   FPosition.SetPoint(APosition.DirectX, APosition.DirectY, APosition.DirectZ);
   FPosition.SetPoint(APosition.DirectX, APosition.DirectY, APosition.DirectZ);
 end;
 end;
 
 
-procedure TGLBaseSceneObject.SetDirection(AVector: TGCoordinates);
+procedure TGLBaseSceneObject.SetDirection(AVector: TgCoordinates);
 begin
 begin
   if not VectorIsNull(AVector.DirectVector) then
   if not VectorIsNull(AVector.DirectVector) then
     FDirection.SetVector(AVector.DirectX, AVector.DirectY, AVector.DirectZ);
     FDirection.SetVector(AVector.DirectX, AVector.DirectY, AVector.DirectZ);
 end;
 end;
 
 
-procedure TGLBaseSceneObject.SetUp(AVector: TGCoordinates);
+procedure TGLBaseSceneObject.SetUp(AVector: TgCoordinates);
 begin
 begin
   if not VectorIsNull(AVector.DirectVector) then
   if not VectorIsNull(AVector.DirectVector) then
     FUp.SetVector(AVector.DirectX, AVector.DirectY, AVector.DirectZ);
     FUp.SetVector(AVector.DirectX, AVector.DirectY, AVector.DirectZ);
@@ -5430,7 +5429,7 @@ constructor TGLLightSource.Create(AOwner: TComponent);
 begin
 begin
   inherited Create(AOwner);
   inherited Create(AOwner);
   FShining := True;
   FShining := True;
-  FSpotDirection := TGCoordinates.CreateInitialized(Self, VectorMake(0, 0, -1, 0), csVector);
+  FSpotDirection := TgCoordinates.CreateInitialized(Self, VectorMake(0, 0, -1, 0), csVector);
   FConstAttenuation := 1;
   FConstAttenuation := 1;
   FLinearAttenuation := 0;
   FLinearAttenuation := 0;
   FQuadraticAttenuation := 0;
   FQuadraticAttenuation := 0;
@@ -5466,7 +5465,7 @@ begin
   Result := False;
   Result := False;
 end;
 end;
 
 
-procedure TGLLightSource.CoordinateChanged(Sender: TGCustomCoordinates);
+procedure TGLLightSource.CoordinateChanged(Sender: TgCustomCoordinates);
 begin
 begin
   inherited;
   inherited;
   if Sender = FSpotDirection then
   if Sender = FSpotDirection then
@@ -5488,7 +5487,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGLLightSource.SetSpotDirection(AVector: TGCoordinates);
+procedure TGLLightSource.SetSpotDirection(AVector: TgCoordinates);
 begin
 begin
   FSpotDirection.DirectVector := AVector.AsVector;
   FSpotDirection.DirectVector := AVector.AsVector;
   FSpotDirection.W := 0;
   FSpotDirection.W := 0;
@@ -5587,7 +5586,7 @@ begin
   FCurrentBuffer := nil;
   FCurrentBuffer := nil;
   FObjects := TGLSceneRootObject.Create(Self);
   FObjects := TGLSceneRootObject.Create(Self);
   FObjects.Name := 'ObjectRoot';
   FObjects.Name := 'ObjectRoot';
-  FLights := TGPersistentObjectList.Create;
+  FLights := TgPersistentObjectList.Create;
   FObjectsSorting := osRenderBlendedLast;
   FObjectsSorting := osRenderBlendedLast;
   FVisibilityCulling := vcNone;
   FVisibilityCulling := vcNone;
   // actual maximum number of lights is stored in TGLSceneViewer
   // actual maximum number of lights is stored in TGLSceneViewer
@@ -5667,7 +5666,7 @@ end;
 procedure TGLScene.AddBuffer(aBuffer: TGLSceneBuffer);
 procedure TGLScene.AddBuffer(aBuffer: TGLSceneBuffer);
 begin
 begin
   if not Assigned(FBuffers) then
   if not Assigned(FBuffers) then
-    FBuffers := TGPersistentObjectList.Create;
+    FBuffers := TgPersistentObjectList.Create;
   if FBuffers.IndexOf(aBuffer) < 0 then
   if FBuffers.IndexOf(aBuffer) < 0 then
   begin
   begin
     FBuffers.Add(aBuffer);
     FBuffers.Add(aBuffer);
@@ -6201,7 +6200,7 @@ begin
   FShadeModel := smDefault;
   FShadeModel := smDefault;
   FFogEnable := False;
   FFogEnable := False;
   FLayer := clMainPlane;
   FLayer := clMainPlane;
-  FAfterRenderEffects := TGPersistentObjectList.Create;
+  FAfterRenderEffects := TgPersistentObjectList.Create;
   FContextOptions := [roDoubleBuffer, roRenderToWindow, roDebugContext];
   FContextOptions := [roDoubleBuffer, roRenderToWindow, roDebugContext];
   ResetPerformanceMonitor;
   ResetPerformanceMonitor;
 end;
 end;

+ 40 - 42
Source/GLS.SceneRegister.pas

@@ -819,10 +819,10 @@ end;
 
 
 procedure TGLCoordinatesProperty.Edit;
 procedure TGLCoordinatesProperty.Edit;
 var
 var
-  glc: TGCoordinates;
+  glc: TgCoordinates;
   x, y, z: Single;
   x, y, z: Single;
 begin
 begin
-  glc := TGCoordinates(GetOrdValue);
+  glc := TgCoordinates(GetOrdValue);
   x := glc.x;
   x := glc.x;
   y := glc.y;
   y := glc.y;
   z := glc.z;
   z := glc.z;
@@ -1343,21 +1343,22 @@ begin
   end;
   end;
 end;
 end;
 
 
-// ******************************************************
+// *************************************************************************
 // Register Properties
 // Register Properties
-//*******************************************************
+//**************************************************************************
 procedure GLSceneRegisterPropertiesInCategories;
 procedure GLSceneRegisterPropertiesInCategories;
 begin
 begin
   // property types
   // property types
-  // ScreenDepth in Win32FullScreenViewer
+  // ScreenDepth in FullScreenViewer
   RegisterPropertiesInCategory(strOpenGLCategoryName,
   RegisterPropertiesInCategory(strOpenGLCategoryName,
-     [TypeInfo(TGLCamera), TypeInfo(TGLSceneBuffer),
-     TypeInfo(TGLVSyncMode), TypeInfo(TGLScreenDepth)]);
-  // TGLSceneViewer
+    [TypeInfo(TGLCamera), TypeInfo(TGLSceneBuffer), TypeInfo(TGLVSyncMode), TypeInfo(TGLScreenDepth)]);
+
+  // GLS.SceneViewer
   RegisterPropertiesInCategory(strOpenGLCategoryName, TGLSceneViewer, ['*Render']);
   RegisterPropertiesInCategory(strOpenGLCategoryName, TGLSceneViewer, ['*Render']);
-  // GLScene
+
+  // GLS.Scene
   RegisterPropertiesInCategory(strOpenGLCategoryName,
   RegisterPropertiesInCategory(strOpenGLCategoryName,
-    [TypeInfo(TGLObjectsSorting), TypeInfo(TGProgressEvent),
+    [TypeInfo(TGLObjectsSorting), TypeInfo(TgProgressEvent),
     TypeInfo(TGLBehaviours), TypeInfo(TGLEffects),
     TypeInfo(TGLBehaviours), TypeInfo(TGLEffects),
     TypeInfo(TGLDirectRenderEvent), TypeInfo(TGLCameraStyle),
     TypeInfo(TGLDirectRenderEvent), TypeInfo(TGLCameraStyle),
     TypeInfo(TOnCustomPerspective), TypeInfo(TGLScene)]);
     TypeInfo(TOnCustomPerspective), TypeInfo(TGLScene)]);
@@ -1376,11 +1377,10 @@ begin
   RegisterPropertiesInCategory(strVisualCategoryName, TGLCamera, ['DepthOfView', 'SceneScale']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLCamera, ['DepthOfView', 'SceneScale']);
   RegisterPropertiesInCategory(strOpenGLCategoryName, TGLNonVisualViewer, ['*Render']);
   RegisterPropertiesInCategory(strOpenGLCategoryName, TGLNonVisualViewer, ['*Render']);
 
 
-  // GLObjects
+  // GLS.Objects
   RegisterPropertiesInCategory(strOpenGLCategoryName,
   RegisterPropertiesInCategory(strOpenGLCategoryName,
     [TypeInfo(TGLLinesNodes), TypeInfo(TGLLineNodesAspect),
     [TypeInfo(TGLLinesNodes), TypeInfo(TGLLineNodesAspect),
     TypeInfo(TGLLineSplineMode), TypeInfo(TGLLinesOptions)]);
     TypeInfo(TGLLineSplineMode), TypeInfo(TGLLinesOptions)]);
-  // GLDummyCube
   RegisterPropertiesInCategory(strLayoutCategoryName, TGLDummyCube, ['VisibleAtRunTime']);
   RegisterPropertiesInCategory(strLayoutCategoryName, TGLDummyCube, ['VisibleAtRunTime']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLDummyCube, ['CubeSize', 'VisibleAtRunTime']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLDummyCube, ['CubeSize', 'VisibleAtRunTime']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLPlane, ['*Offset', '*Tiles']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLPlane, ['*Offset', '*Tiles']);
@@ -1392,7 +1392,8 @@ begin
     ['Antialiased', 'Division', 'Line*', 'NodeSize']);
     ['Antialiased', 'Division', 'Line*', 'NodeSize']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLCube, ['Cube*']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLCube, ['Cube*']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLFrustrum, ['ApexHeight', 'Base*']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLFrustrum, ['ApexHeight', 'Base*']);
-  // GLSpaceText
+
+  // GLS.SpaceText
   RegisterPropertiesInCategory(strLayoutCategoryName, [TypeInfo(TGLTextAdjust)]);
   RegisterPropertiesInCategory(strLayoutCategoryName, [TypeInfo(TGLTextAdjust)]);
   RegisterPropertiesInCategory(strLocalizableCategoryName, [TypeInfo(TGLSpaceTextCharRange)]);
   RegisterPropertiesInCategory(strLocalizableCategoryName, [TypeInfo(TGLSpaceTextCharRange)]);
   RegisterPropertiesInCategory(strVisualCategoryName, [TypeInfo(TGLLineSplineMode),
   RegisterPropertiesInCategory(strVisualCategoryName, [TypeInfo(TGLLineSplineMode),
@@ -1418,18 +1419,18 @@ begin
     ['Bottom*', 'Loops', 'Slices', 'Stacks', 'Top*']);
     ['Bottom*', 'Loops', 'Slices', 'Stacks', 'Top*']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLPolygon, ['Division']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLPolygon, ['Division']);
 
 
-  // GLMultiPolygon
+  // GLS.MultiPolygon
   RegisterPropertiesInCategory(strVisualCategoryName, TGLContour, ['Division']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLContour, ['Division']);
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TGLContourNodes), TypeInfo(TGLContours)]);
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TGLContourNodes), TypeInfo(TGLContours)]);
 
 
-  // GLExtrusion
+  // GLS.Extrusion
   RegisterPropertiesInCategory(strVisualCategoryName, TGLExtrusionSolid, ['Stacks']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLExtrusionSolid, ['Stacks']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLPipeNode, ['RadiusFactor']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLPipeNode, ['RadiusFactor']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLPipe, ['Division', 'Radius', 'Slices']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLPipe, ['Division', 'Radius', 'Slices']);
   RegisterPropertiesInCategory(strVisualCategoryName, [TypeInfo(TGLNodes), TypeInfo(TPipeNodesColorMode)]);
   RegisterPropertiesInCategory(strVisualCategoryName, [TypeInfo(TGLNodes), TypeInfo(TPipeNodesColorMode)]);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLRevolutionSolid, ['Division', 'Slices', 'YOffsetPerTurn']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLRevolutionSolid, ['Division', 'Slices', 'YOffsetPerTurn']);
 
 
-  // GLVectorFileObjects
+  // GLS.VectorFileObjects
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TGLActorAnimationMode), TypeInfo(TGLActorAnimations),
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TGLActorAnimationMode), TypeInfo(TGLActorAnimations),
     TypeInfo(TGLMeshAutoCenterings), TypeInfo(TGLActorFrameInterpolation),
     TypeInfo(TGLMeshAutoCenterings), TypeInfo(TGLActorFrameInterpolation),
     TypeInfo(TGLActorAnimationReference), TypeInfo(TGLActor)]);
     TypeInfo(TGLActorAnimationReference), TypeInfo(TGLActor)]);
@@ -1444,21 +1445,21 @@ begin
     ['*Frame*', 'Interval', 'OverlaySkeleton', 'UseMeshmaterials']);
     ['*Frame*', 'Interval', 'OverlaySkeleton', 'UseMeshmaterials']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLActor,  ['OverlaySkeleton']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLActor,  ['OverlaySkeleton']);
 
 
-  // GLMesh
+  // GLS.Mesh
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TGLMeshMode), TypeInfo(TGLVertexMode)]);
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TGLMeshMode), TypeInfo(TGLVertexMode)]);
 
 
-  // GLGraph
+  // GLS.Graph
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TGLHeightFieldOptions)]);
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TGLHeightFieldOptions)]);
   RegisterPropertiesInCategory(strVisualCategoryName, [TypeInfo(TGLHeightFieldColorMode), TypeInfo(TGLSamplingScale),
   RegisterPropertiesInCategory(strVisualCategoryName, [TypeInfo(TGLHeightFieldColorMode), TypeInfo(TGLSamplingScale),
     TypeInfo(TGLXYZGridLinesStyle), TypeInfo(TGLXYZGridParts)]);
     TypeInfo(TGLXYZGridLinesStyle), TypeInfo(TGLXYZGridParts)]);
   RegisterPropertiesInCategory(strOpenGLCategoryName, TGLXYZGrid, ['Antialiased']);
   RegisterPropertiesInCategory(strOpenGLCategoryName, TGLXYZGrid, ['Antialiased']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLXYZGrid, ['Antialiased', 'Line*']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLXYZGrid, ['Antialiased', 'Line*']);
 
 
-  // GLParticles
+  // GLS.Particles
   RegisterPropertiesInCategory(strLayoutCategoryName, TGLParticles, ['VisibleAtRunTime']);
   RegisterPropertiesInCategory(strLayoutCategoryName, TGLParticles, ['VisibleAtRunTime']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLParticles, ['*Size', 'VisibleAtRunTime']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLParticles, ['*Size', 'VisibleAtRunTime']);
 
 
-  // GLSkydome
+  // GLS.Skydome
   RegisterPropertiesInCategory(strOpenGLCategoryName,
   RegisterPropertiesInCategory(strOpenGLCategoryName,
     [TypeInfo(TGLSkyDomeBands), TypeInfo(TGLSkyDomeOptions), TypeInfo(TGLSkyDomeStars)]);
     [TypeInfo(TGLSkyDomeBands), TypeInfo(TGLSkyDomeOptions), TypeInfo(TGLSkyDomeStars)]);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLSkyDomeBand, ['Slices', 'Stacks', '*Angle']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLSkyDomeBand, ['Slices', 'Stacks', '*Angle']);
@@ -1466,11 +1467,11 @@ begin
   RegisterPropertiesInCategory(strOpenGLCategoryName, TGLEarthSkyDome,
   RegisterPropertiesInCategory(strOpenGLCategoryName, TGLEarthSkyDome,
     ['Slices', 'Stacks', 'SunElevation', 'Turbidity']);
     ['Slices', 'Stacks', 'SunElevation', 'Turbidity']);
 
 
-  // GLMirror
+  // GLS.Mirror
   RegisterPropertiesInCategory(strOpenGLCategoryName,
   RegisterPropertiesInCategory(strOpenGLCategoryName,
     [TypeInfo(TGLMirrorOptions), TypeInfo(TGLBaseSceneObject)]);
     [TypeInfo(TGLMirrorOptions), TypeInfo(TGLBaseSceneObject)]);
 
 
-  // GLParticleFX
+  // GLS.ParticleFX
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TGLBlendingMode)]);
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TGLBlendingMode)]);
   RegisterPropertiesInCategory(strVisualCategoryName,
   RegisterPropertiesInCategory(strVisualCategoryName,
     [TypeInfo(TGLBlendingMode), TypeInfo(TPFXLifeColors), TypeInfo(TSpriteColorMode)]);
     [TypeInfo(TGLBlendingMode), TypeInfo(TPFXLifeColors), TypeInfo(TSpriteColorMode)]);
@@ -1482,48 +1483,48 @@ begin
   RegisterPropertiesInCategory(strVisualCategoryName, TGLPolygonPFXManager, ['NbSides']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLPolygonPFXManager, ['NbSides']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLPointLightPFXManager, ['TexMapSize']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLPointLightPFXManager, ['TexMapSize']);
 
 
-  // GLTerrainRenderer
+  // GLS.TerrainRenderer
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TGLHeightDataSource)]);
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TGLHeightDataSource)]);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLTerrainRenderer, ['*CLOD*', 'QualityDistance', 'Tile*']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLTerrainRenderer, ['*CLOD*', 'QualityDistance', 'Tile*']);
 
 
-  // GLzBuffer
+  // GLS.zBuffer
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TGLMemoryViewer),
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TGLMemoryViewer),
     TypeInfo(TGLSceneViewer), TypeInfo(TOptimise)]);
     TypeInfo(TGLSceneViewer), TypeInfo(TOptimise)]);
   RegisterPropertiesInCategory(strVisualCategoryName, [TypeInfo(TOptimise)]);
   RegisterPropertiesInCategory(strVisualCategoryName, [TypeInfo(TOptimise)]);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLZShadows, ['DepthFade', '*Shadow', 'Soft', 'Tolerance']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLZShadows, ['DepthFade', '*Shadow', 'Soft', 'Tolerance']);
 
 
-  // GLHUDObjects
+  // GLS.HUDObjects
   RegisterPropertiesInCategory(strLayoutCategoryName, [TypeInfo(TTextLayout)]);
   RegisterPropertiesInCategory(strLayoutCategoryName, [TypeInfo(TTextLayout)]);
   RegisterPropertiesInCategory(strVisualCategoryName, [TypeInfo(TGLBitmapFont), TypeInfo(TTextLayout)]);
   RegisterPropertiesInCategory(strVisualCategoryName, [TypeInfo(TGLBitmapFont), TypeInfo(TTextLayout)]);
   RegisterPropertiesInCategory(strLocalizableCategoryName,[TypeInfo(TGLBitmapFont)]);
   RegisterPropertiesInCategory(strLocalizableCategoryName,[TypeInfo(TGLBitmapFont)]);
 
 
-  // GLTexture
+  // GLS.Texture
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TGLMaterial), TypeInfo(TGLMaterialLibrary),
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TGLMaterial), TypeInfo(TGLMaterialLibrary),
     TypeInfo(TGLLibMaterials), TypeInfo(TGLTextureNeededEvent)]);
     TypeInfo(TGLLibMaterials), TypeInfo(TGLTextureNeededEvent)]);
   RegisterPropertiesInCategory(strOpenGLCategoryName, TGLLibMaterial, ['Texture2Name']);
   RegisterPropertiesInCategory(strOpenGLCategoryName, TGLLibMaterial, ['Texture2Name']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLLibMaterial, ['TextureOffset', 'TextureScale']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLLibMaterial, ['TextureOffset', 'TextureScale']);
   RegisterPropertiesInCategory(strOpenGLCategoryName, TGLMaterialLibrary, ['TexturePaths']);
   RegisterPropertiesInCategory(strOpenGLCategoryName, TGLMaterialLibrary, ['TexturePaths']);
 
 
-  // GLCadencer
+  // GLS.Cadencer
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TGLCadencer)]);
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TGLCadencer)]);
 
 
-  // GLCollision
+  // GLS.Collision
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TObjectCollisionEvent)]);
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TObjectCollisionEvent)]);
 
 
-  // GLFireFX
+  // GLS.FireFX
   RegisterPropertiesInCategory(strOpenGLCategoryName, TGLFireFXManager,
   RegisterPropertiesInCategory(strOpenGLCategoryName, TGLFireFXManager,
     ['MaxParticles', 'NoZWrite', 'Paused', 'UseInterval']);
     ['MaxParticles', 'NoZWrite', 'Paused', 'UseInterval']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLFireFXManager,
   RegisterPropertiesInCategory(strVisualCategoryName, TGLFireFXManager,
     ['Fire*', 'InitialDir', 'NoZWrite', 'Particle*', 'Paused']);
     ['Fire*', 'InitialDir', 'NoZWrite', 'Particle*', 'Paused']);
 
 
-  // GLThorFX
+  // GLS.ThorFX
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TCalcPointEvent)]);
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TCalcPointEvent)]);
   RegisterPropertiesInCategory(strOpenGLCategoryName, TGLThorFXManager,
   RegisterPropertiesInCategory(strOpenGLCategoryName, TGLThorFXManager,
     ['Maxpoints', 'Paused']);
     ['Maxpoints', 'Paused']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLThorFXManager,
   RegisterPropertiesInCategory(strVisualCategoryName, TGLThorFXManager,
     ['Core', 'Glow*', 'Paused', 'Target', 'Vibrate', 'Wildness']);
     ['Core', 'Glow*', 'Paused', 'Target', 'Vibrate', 'Wildness']);
 
 
-  // GLBitmapFont
+  // GLS.BitmapFont
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TGLMagFilter), TypeInfo(TGLMinFilter)]);
   RegisterPropertiesInCategory(strOpenGLCategoryName, [TypeInfo(TGLMagFilter), TypeInfo(TGLMinFilter)]);
   RegisterPropertiesInCategory(strLocalizableCategoryName, [TypeInfo(TGLBitmapFontRanges)]);
   RegisterPropertiesInCategory(strLocalizableCategoryName, [TypeInfo(TGLBitmapFontRanges)]);
   RegisterPropertiesInCategory(strLocalizableCategoryName, TGLBitmapFontRange, ['*ASCII']);
   RegisterPropertiesInCategory(strLocalizableCategoryName, TGLBitmapFontRange, ['*ASCII']);
@@ -1532,15 +1533,14 @@ begin
   RegisterPropertiesInCategory(strVisualCategoryName, TGLBitmapFont,
   RegisterPropertiesInCategory(strVisualCategoryName, TGLBitmapFont,
     ['Char*', '*Interval*', '*Space', 'Glyphs']);
     ['Char*', '*Interval*', '*Space', 'Glyphs']);
 
 
-  // GLHeightData
+  // GLS.HeightData
   RegisterPropertiesInCategory(strOpenGLCategoryName, TGLBitmapHDS, ['MaxPoolSize']);
   RegisterPropertiesInCategory(strOpenGLCategoryName, TGLBitmapHDS, ['MaxPoolSize']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLBitmapHDS, ['Picture']);
   RegisterPropertiesInCategory(strVisualCategoryName, TGLBitmapHDS, ['Picture']);
 end;
 end;
 
 
-// ******************************************************
+//**************************************************************************
 // Register Components
 // Register Components
-//*******************************************************
-
+//**************************************************************************
 procedure Register;
 procedure Register;
 begin
 begin
   RegisterComponents('GLScene', [TGLScene, TGLSceneViewer, TGLMemoryViewer,
   RegisterComponents('GLScene', [TGLScene, TGLSceneViewer, TGLMemoryViewer,
@@ -1588,7 +1588,7 @@ begin
   RegisterPropertyEditor(TypeInfo(string), TGLTexture, 'ImageClassName', TGLImageClassProperty);
   RegisterPropertyEditor(TypeInfo(string), TGLTexture, 'ImageClassName', TGLImageClassProperty);
   RegisterPropertyEditor(TypeInfo(TGLSoundFile), TGLSoundSample, '', TGLSoundFileProperty);
   RegisterPropertyEditor(TypeInfo(TGLSoundFile), TGLSoundSample, '', TGLSoundFileProperty);
   RegisterPropertyEditor(TypeInfo(string), TGLBaseSoundSource, 'SoundName', TGLSoundNameProperty);
   RegisterPropertyEditor(TypeInfo(string), TGLBaseSoundSource, 'SoundName', TGLSoundNameProperty);
-  RegisterPropertyEditor(TypeInfo(TGCoordinates), nil, '', TGLCoordinatesProperty);
+  RegisterPropertyEditor(TypeInfo(TgCoordinates), nil, '', TGLCoordinatesProperty);
   RegisterPropertyEditor(TypeInfo(TGColor), nil, '', TGLColorProperty);
   RegisterPropertyEditor(TypeInfo(TGColor), nil, '', TGLColorProperty);
   RegisterPropertyEditor(TypeInfo(TGLMaterial), nil, '', TGLMaterialProperty);
   RegisterPropertyEditor(TypeInfo(TGLMaterial), nil, '', TGLMaterialProperty);
   RegisterComponentEditor(TGLGuiLayout, TGLGUILayoutEditor);
   RegisterComponentEditor(TGLGuiLayout, TGLGUILayoutEditor);
@@ -1647,6 +1647,8 @@ begin
   RegisterPropertyEditor(TypeInfo(TStringList), TGLShaderEx, 'Source', TGLShaderEditorProperty);
   RegisterPropertyEditor(TypeInfo(TStringList), TGLShaderEx, 'Source', TGLShaderEditorProperty);
 end;
 end;
 
 
+//----------------------------------------------------------------------------
+
 function GetGLSceneVersion: string;
 function GetGLSceneVersion: string;
 var
 var
   LProject: IOTAProject;
   LProject: IOTAProject;
@@ -1713,9 +1715,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-// ------------------------------------------------------------------
-initialization
-// ------------------------------------------------------------------
+initialization // ------------------------------------------------------------
 
 
   SplashScreenServices.AddPluginBitmap(GetGLSceneVersion, LoadBitmap(HInstance, 'TGLScene'),
   SplashScreenServices.AddPluginBitmap(GetGLSceneVersion, LoadBitmap(HInstance, 'TGLScene'),
     False, 'MPL 2.0 license', 'VCL version');
     False, 'MPL 2.0 license', 'VCL version');
@@ -1853,9 +1853,7 @@ begin
   RegisterSceneObject(TGLFBORenderer, 'OpenGL FrameBuffer', '', HInstance);
   RegisterSceneObject(TGLFBORenderer, 'OpenGL FrameBuffer', '', HInstance);
 end;
 end;
 
 
-//------------------------------------------------------
-finalization
-//------------------------------------------------------
+finalization // ------------------------------------------------------------------
 
 
 ObjectManager.Free;
 ObjectManager.Free;
 
 

+ 1 - 1
Source/GLS.Selection.pas

@@ -38,7 +38,7 @@ type
 
 
   (* List class for object picking.
   (* List class for object picking.
      This list is used to store the results of a PickObjects call. *)
      This list is used to store the results of a PickObjects call. *)
-  TGLPickList = class(TGPersistentObjectList)
+  TGLPickList = class(TgPersistentObjectList)
   private
   private
     function GetFar(aValue: Integer): Single;
     function GetFar(aValue: Integer): Single;
     function GetHit(aValue: Integer): TObject;
     function GetHit(aValue: Integer): TObject;

+ 10 - 10
Source/GLS.ShadowHDS.pas

@@ -54,8 +54,8 @@ type
   private
   private
     FTileSize: integer;
     FTileSize: integer;
     FShadowmapLibrary: TGLMaterialLibrary;
     FShadowmapLibrary: TGLMaterialLibrary;
-    FLightVector: TGCoordinates;
-    FScale: TGCoordinates;
+    FLightVector: TgCoordinates;
+    FScale: TgCoordinates;
     FScaleVec: TVector3f;
     FScaleVec: TVector3f;
     FOnNewTilePrepared: TNewTilePreparedEvent;
     FOnNewTilePrepared: TNewTilePreparedEvent;
     FOnThreadBmp32: TThreadBmp32;
     FOnThreadBmp32: TThreadBmp32;
@@ -69,8 +69,8 @@ type
     OwnerHDS: TGLHeightDataSource; // The owner of the tile
     OwnerHDS: TGLHeightDataSource; // The owner of the tile
   protected
   protected
     procedure SetShadowmapLibrary(const val: TGLMaterialLibrary);
     procedure SetShadowmapLibrary(const val: TGLMaterialLibrary);
-    procedure SetScale(AValue: TGCoordinates);
-    procedure SetLightVector(AValue: TGCoordinates);
+    procedure SetScale(AValue: TgCoordinates);
+    procedure SetLightVector(AValue: TgCoordinates);
     procedure SetSoftRange(AValue: cardinal);
     procedure SetSoftRange(AValue: cardinal);
     procedure SetDiffuse(AValue: single);
     procedure SetDiffuse(AValue: single);
     procedure SetAmbient(AValue: single);
     procedure SetAmbient(AValue: single);
@@ -122,8 +122,8 @@ type
     property ShadowmapLibrary: TGLMaterialLibrary read FShadowmapLibrary write SetShadowmapLibrary;
     property ShadowmapLibrary: TGLMaterialLibrary read FShadowmapLibrary write SetShadowmapLibrary;
     property OnThreadBmp32: TThreadBmp32 read FOnThreadBmp32 write FOnThreadBmp32; // WARNING: This runs in a subthread
     property OnThreadBmp32: TThreadBmp32 read FOnThreadBmp32 write FOnThreadBmp32; // WARNING: This runs in a subthread
     property OnNewTilePrepared: TNewTilePreparedEvent read FOnNewTilePrepared write FOnNewTilePrepared;
     property OnNewTilePrepared: TNewTilePreparedEvent read FOnNewTilePrepared write FOnNewTilePrepared;
-    property LightVector: TGCoordinates read FLightVector write SetLightVector;
-    property scale: TGCoordinates read FScale write FScale;
+    property LightVector: TgCoordinates read FLightVector write SetLightVector;
+    property scale: TgCoordinates read FScale write FScale;
     property ScanDistance: integer read FScanDistance write FScanDistance;
     property ScanDistance: integer read FScanDistance write FScanDistance;
     property SoftRange: cardinal read FSoftRange write SetSoftRange;
     property SoftRange: cardinal read FSoftRange write SetSoftRange;
     // Shadow height above sufrace for max diffuse light
     // Shadow height above sufrace for max diffuse light
@@ -140,9 +140,9 @@ implementation
 constructor TGLShadowHDS.Create(AOwner: TComponent);
 constructor TGLShadowHDS.Create(AOwner: TComponent);
 begin
 begin
   inherited Create(AOwner);
   inherited Create(AOwner);
-  FLightVector := TGCoordinates.CreateInitialized(Self, VectorMake(1, 0, -1));
+  FLightVector := TgCoordinates.CreateInitialized(Self, VectorMake(1, 0, -1));
   FLightVector.Style := csVector; // csPoint;
   FLightVector.Style := csVector; // csPoint;
-  FScale := TGCoordinates.CreateInitialized(Self, VectorMake(1, 1, 1));
+  FScale := TgCoordinates.CreateInitialized(Self, VectorMake(1, 1, 1));
   FScale.Style := csVector; // csPoint;
   FScale.Style := csVector; // csPoint;
   FScanDistance := 64;
   FScanDistance := 64;
   FAmbient := 0.25;
   FAmbient := 0.25;
@@ -250,7 +250,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGLShadowHDS.SetLightVector(AValue: TGCoordinates);
+procedure TGLShadowHDS.SetLightVector(AValue: TgCoordinates);
 begin
 begin
   With OwnerHDS.Data.LockList do
   With OwnerHDS.Data.LockList do
     try
     try
@@ -733,7 +733,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGLShadowHDS.SetScale(AValue: TGCoordinates);
+procedure TGLShadowHDS.SetScale(AValue: TgCoordinates);
 begin
 begin
   with OwnerHDS.Data.LockList do
   with OwnerHDS.Data.LockList do
     try
     try

+ 1 - 1
Source/GLS.ShadowPlane.pas

@@ -21,7 +21,7 @@ uses
 
 
   GLScene.OpenGLTokens,
   GLScene.OpenGLTokens,
   GLScene.PersistentClasses,
   GLScene.PersistentClasses,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLScene.VectorTypes,
   GLScene.VectorTypes,
   GLS.Scene,
   GLS.Scene,
   GLScene.VectorGeometry,
   GLScene.VectorGeometry,

+ 3 - 3
Source/GLS.ShadowVolume.pas

@@ -26,7 +26,7 @@ uses
   GLS.Silhouette,
   GLS.Silhouette,
   GLScene.PersistentClasses,
   GLScene.PersistentClasses,
   GLScene.Coordinates,
   GLScene.Coordinates,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLScene.GeometryBB,
   GLScene.GeometryBB,
   GLScene.Color,
   GLScene.Color,
   GLS.Selection,
   GLS.Selection,
@@ -119,7 +119,7 @@ type
   // Specifies an individual shadow casting light.
   // Specifies an individual shadow casting light.
   TGLShadowVolumeLight = class(TGLShadowVolumeCaster)
   TGLShadowVolumeLight = class(TGLShadowVolumeCaster)
   private
   private
-    FSilhouettes: TGPersistentObjectList;
+    FSilhouettes: TgPersistentObjectList;
   protected
   protected
     function GetLightSource: TGLLightSource;
     function GetLightSource: TGLLightSource;
     procedure SetLightSource(const ls: TGLLightSource);
     procedure SetLightSource(const ls: TGLLightSource);
@@ -326,7 +326,7 @@ end;
 constructor TGLShadowVolumeLight.Create(ACollection: TCollection);
 constructor TGLShadowVolumeLight.Create(ACollection: TCollection);
 begin
 begin
   inherited Create(ACollection);
   inherited Create(ACollection);
-  FSilhouettes := TGPersistentObjectList.Create;
+  FSilhouettes := TgPersistentObjectList.Create;
 end;
 end;
 
 
 destructor TGLShadowVolumeLight.Destroy;
 destructor TGLShadowVolumeLight.Destroy;

+ 18 - 18
Source/GLS.Silhouette.pas

@@ -40,20 +40,20 @@ type
   TGLSilhouette = class
   TGLSilhouette = class
   private
   private
     FVertices: TGVectorList;
     FVertices: TGVectorList;
-    FIndices: TGIntegerList;
-    FCapIndices: TGIntegerList;
+    FIndices: TgIntegerList;
+    FCapIndices: TgIntegerList;
     FParameters: TGLSilhouetteParameters;
     FParameters: TGLSilhouetteParameters;
   protected
   protected
-    procedure SetIndices(const value: TGIntegerList);
-    procedure SetCapIndices(const value: TGIntegerList);
+    procedure SetIndices(const value: TgIntegerList);
+    procedure SetCapIndices(const value: TgIntegerList);
     procedure SetVertices(const value: TGVectorList);
     procedure SetVertices(const value: TGVectorList);
   public
   public
     constructor Create; virtual;
     constructor Create; virtual;
     destructor Destroy; override;
     destructor Destroy; override;
     property Parameters: TGLSilhouetteParameters read FParameters write FParameters;
     property Parameters: TGLSilhouetteParameters read FParameters write FParameters;
     property Vertices: TGVectorList read FVertices write SetVertices;
     property Vertices: TGVectorList read FVertices write SetVertices;
-    property Indices: TGIntegerList read FIndices write SetIndices;
-    property CapIndices: TGIntegerList read FCapIndices write SetCapIndices;
+    property Indices: TgIntegerList read FIndices write SetIndices;
+    property CapIndices: TgIntegerList read FCapIndices write SetCapIndices;
     procedure Flush; virtual;
     procedure Flush; virtual;
     procedure Clear; inline;
     procedure Clear; inline;
     procedure ExtrudeVerticesToInfinity(const origin: TAffineVector);
     procedure ExtrudeVerticesToInfinity(const origin: TAffineVector);
@@ -92,12 +92,12 @@ type
       it'd be nicer with Structs or classes, but it's actually faster this way.
       it'd be nicer with Structs or classes, but it's actually faster this way.
       The reason it's faster is because of less cache overwrites when we only
       The reason it's faster is because of less cache overwrites when we only
       access a tiny bit of a triangle (for instance), not all data. *)
       access a tiny bit of a triangle (for instance), not all data. *)
-    FEdgeVertices: TGIntegerList;
-    FEdgeFaces: TGIntegerList;
+    FEdgeVertices: TgIntegerList;
+    FEdgeFaces: TgIntegerList;
     FFaceVisible: TGByteList;
     FFaceVisible: TGByteList;
-    FFaceVertexIndex: TGIntegerList;
+    FFaceVertexIndex: TgIntegerList;
     FFaceNormal: TGAffineVectorList;
     FFaceNormal: TGAffineVectorList;
-    FVertexMemory: TGIntegerList;
+    FVertexMemory: TgIntegerList;
     FVertices: TGAffineVectorList;
     FVertices: TGAffineVectorList;
     function GetEdgeCount: integer;
     function GetEdgeCount: integer;
     function GetFaceCount: integer;
     function GetFaceCount: integer;
@@ -127,8 +127,8 @@ constructor TGLSilhouette.Create;
 begin
 begin
   inherited;
   inherited;
   FVertices := TGVectorList.Create;
   FVertices := TGVectorList.Create;
-  FIndices := TGIntegerList.Create;
-  FCapIndices := TGIntegerList.Create;
+  FIndices := TgIntegerList.Create;
+  FCapIndices := TgIntegerList.Create;
 end;
 end;
 
 
 destructor TGLSilhouette.Destroy;
 destructor TGLSilhouette.Destroy;
@@ -139,12 +139,12 @@ begin
   inherited;
   inherited;
 end;
 end;
 
 
-procedure TGLSilhouette.SetIndices(const value: TGIntegerList);
+procedure TGLSilhouette.SetIndices(const value: TgIntegerList);
 begin
 begin
   FIndices.Assign(value);
   FIndices.Assign(value);
 end;
 end;
 
 
-procedure TGLSilhouette.SetCapIndices(const value: TGIntegerList);
+procedure TGLSilhouette.SetCapIndices(const value: TgIntegerList);
 begin
 begin
   FCapIndices.Assign(value);
   FCapIndices.Assign(value);
 end;
 end;
@@ -273,12 +273,12 @@ end;
 constructor TGLConnectivity.Create(APrecomputeFaceNormal: Boolean);
 constructor TGLConnectivity.Create(APrecomputeFaceNormal: Boolean);
 begin
 begin
   FFaceVisible := TGByteList.Create;
   FFaceVisible := TGByteList.Create;
-  FFaceVertexIndex := TGIntegerList.Create;
+  FFaceVertexIndex := TgIntegerList.Create;
   FFaceNormal := TGAffineVectorList.Create;
   FFaceNormal := TGAffineVectorList.Create;
-  FEdgeVertices := TGIntegerList.Create;
-  FEdgeFaces := TGIntegerList.Create;
+  FEdgeVertices := TgIntegerList.Create;
+  FEdgeFaces := TgIntegerList.Create;
   FPrecomputeFaceNormal := APrecomputeFaceNormal;
   FPrecomputeFaceNormal := APrecomputeFaceNormal;
-  FVertexMemory := TGIntegerList.Create;
+  FVertexMemory := TgIntegerList.Create;
   FVertices := TGAffineVectorList.Create;
   FVertices := TGAffineVectorList.Create;
 end;
 end;
 
 

+ 2 - 2
Source/GLS.SmartObjects.pas

@@ -32,7 +32,7 @@ uses
   GLScene.VectorTypes,
   GLScene.VectorTypes,
   GLScene.VectorTypesExt,
   GLScene.VectorTypesExt,
   GLScene.Strings,
   GLScene.Strings,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
 
 
   GLS.Scene,
   GLS.Scene,
   GLScene.VectorLists,
   GLScene.VectorLists,
@@ -71,7 +71,7 @@ type
   TGLCyborgThinks = class(TCollection);
   TGLCyborgThinks = class(TCollection);
 
 
   // A list of thinking periods for TGLCyborgThinkMode
   // A list of thinking periods for TGLCyborgThinkMode
-  TGLCyborgThinksList = class(TGPersistentObjectList);
+  TGLCyborgThinksList = class(TgPersistentObjectList);
 
 
 const
 const
   cDefaultCyborgOptions = [coCollide];
   cDefaultCyborgOptions = [coCollide];

+ 10 - 10
Source/GLS.SmoothNavigator.pas

@@ -123,10 +123,10 @@ type
   // Smoothly change any Vector4f value, so it will become TargetValue in the end.
   // Smoothly change any Vector4f value, so it will become TargetValue in the end.
   TGLNavigatorSmoothChangeVector = class(TGLNavigatorSmoothChangeItem)
   TGLNavigatorSmoothChangeVector = class(TGLNavigatorSmoothChangeItem)
   private
   private
-    FTargetValue: TGCoordinates;
+    FTargetValue: TgCoordinates;
     FOnGetCurrentValue: TGLNavigatorSmoothChangeVectorGetEvent;
     FOnGetCurrentValue: TGLNavigatorSmoothChangeVectorGetEvent;
     FOnSetCurrentValue: TGLNavigatorSmoothChangeVectorSetEvent;
     FOnSetCurrentValue: TGLNavigatorSmoothChangeVectorSetEvent;
-    procedure SetTargetValue(const Value: TGCoordinates);
+    procedure SetTargetValue(const Value: TgCoordinates);
   public
   public
     class function FriendlyName: string; override;
     class function FriendlyName: string; override;
     function Proceed(ADeltaTime: Double): Boolean; override;
     function Proceed(ADeltaTime: Double): Boolean; override;
@@ -135,7 +135,7 @@ type
     destructor Destroy; override;
     destructor Destroy; override;
     procedure ResetTargetValue(); override;
     procedure ResetTargetValue(); override;
   published
   published
-    property TargetValue: TGCoordinates read FTargetValue write SetTargetValue;
+    property TargetValue: TgCoordinates read FTargetValue write SetTargetValue;
     property OnGetCurrentValue: TGLNavigatorSmoothChangeVectorGetEvent read FOnGetCurrentValue write FOnGetCurrentValue;
     property OnGetCurrentValue: TGLNavigatorSmoothChangeVectorGetEvent read FOnGetCurrentValue write FOnGetCurrentValue;
     property OnSetCurrentValue: TGLNavigatorSmoothChangeVectorSetEvent read FOnSetCurrentValue write FOnSetCurrentValue;
     property OnSetCurrentValue: TGLNavigatorSmoothChangeVectorSetEvent read FOnSetCurrentValue write FOnSetCurrentValue;
   end;
   end;
@@ -372,9 +372,9 @@ type
     FSmoothNavigator: TGLSmoothNavigator;
     FSmoothNavigator: TGLSmoothNavigator;
     FSmoothVertNavigator: TGLSmoothNavigator;
     FSmoothVertNavigator: TGLSmoothNavigator;
     FInvertMouse: Boolean;
     FInvertMouse: Boolean;
-    FOriginalMousePos: TGCoordinates2;
+    FOriginalMousePos: TgCoordinates2;
     procedure SetSmoothNavigator(const Value: TGLSmoothNavigator); virtual;
     procedure SetSmoothNavigator(const Value: TGLSmoothNavigator); virtual;
-    procedure SetOriginalMousePos(const Value: TGCoordinates2); virtual;
+    procedure SetOriginalMousePos(const Value: TgCoordinates2); virtual;
     procedure SetSmoothVertNavigator(const Value: TGLSmoothNavigator); virtual;
     procedure SetSmoothVertNavigator(const Value: TGLSmoothNavigator); virtual;
     procedure SetMouseLookActive(const Value: Boolean); virtual;
     procedure SetMouseLookActive(const Value: Boolean); virtual;
   protected
   protected
@@ -394,7 +394,7 @@ type
     property SmoothVertNavigator: TGLSmoothNavigator read FSmoothVertNavigator write SetSmoothVertNavigator;
     property SmoothVertNavigator: TGLSmoothNavigator read FSmoothVertNavigator write SetSmoothVertNavigator;
     property SmoothNavigator: TGLSmoothNavigator read FSmoothNavigator write SetSmoothNavigator;
     property SmoothNavigator: TGLSmoothNavigator read FSmoothNavigator write SetSmoothNavigator;
     property InvertMouse: Boolean read FInvertMouse write FInvertMouse default False;
     property InvertMouse: Boolean read FInvertMouse write FInvertMouse default False;
-    property OriginalMousePos: TGCoordinates2 read FOriginalMousePos write SetOriginalMousePos;
+    property OriginalMousePos: TgCoordinates2 read FOriginalMousePos write SetOriginalMousePos;
   end;
   end;
 
 
 //----------------------------------------------------
 //----------------------------------------------------
@@ -906,7 +906,7 @@ begin
   inherited;
   inherited;
   FMouseLookActive := False;
   FMouseLookActive := False;
   FAutoUpdateMouse := True;
   FAutoUpdateMouse := True;
-  FOriginalMousePos := TGCoordinates2.CreateInitialized(Self,
+  FOriginalMousePos := TgCoordinates2.CreateInitialized(Self,
                              VectorMake(GLGetScreenWidth div 2,
                              VectorMake(GLGetScreenWidth div 2,
                              GLGetScreenHeight div 2, 0, 0), csPoint2D);
                              GLGetScreenHeight div 2, 0, 0), csPoint2D);
 end;
 end;
@@ -943,7 +943,7 @@ begin
 end;
 end;
 
 
 procedure TGLSmoothUserInterface.SetOriginalMousePos(
 procedure TGLSmoothUserInterface.SetOriginalMousePos(
-  const Value: TGCoordinates2);
+  const Value: TgCoordinates2);
 begin
 begin
   FOriginalMousePos.Assign(Value);
   FOriginalMousePos.Assign(Value);
 end;
 end;
@@ -1548,7 +1548,7 @@ end;
 constructor TGLNavigatorSmoothChangeVector.Create(aOwner: TXCollection);
 constructor TGLNavigatorSmoothChangeVector.Create(aOwner: TXCollection);
 begin
 begin
   inherited;
   inherited;
-  FTargetValue := TGCoordinates.CreateInitialized(Self, NullHmgVector, csVector);
+  FTargetValue := TgCoordinates.CreateInitialized(Self, NullHmgVector, csVector);
 end;
 end;
 
 
 destructor TGLNavigatorSmoothChangeVector.Destroy;
 destructor TGLNavigatorSmoothChangeVector.Destroy;
@@ -1617,7 +1617,7 @@ begin
 end;
 end;
 
 
 procedure TGLNavigatorSmoothChangeVector.SetTargetValue(
 procedure TGLNavigatorSmoothChangeVector.SetTargetValue(
-  const Value: TGCoordinates);
+  const Value: TgCoordinates);
 begin
 begin
   FTargetValue.Assign(Value);
   FTargetValue.Assign(Value);
 end;
 end;

+ 1 - 1
Source/GLS.SpacePartition.pas

@@ -109,7 +109,7 @@ type
   end;
   end;
 
 
   // List for storing space partition leaves
   // List for storing space partition leaves
-  TGLSpacePartitionLeafList = class(TGPersistentObjectList)
+  TGLSpacePartitionLeafList = class(TgPersistentObjectList)
   private
   private
     function GetItems(I: Integer): TGLSpacePartitionLeaf;
     function GetItems(I: Integer): TGLSpacePartitionLeaf;
     procedure SetItems(I: Integer; const Value: TGLSpacePartitionLeaf);
     procedure SetItems(I: Integer; const Value: TGLSpacePartitionLeaf);

+ 2 - 2
Source/GLS.TerrainRenderer.pas

@@ -69,7 +69,7 @@ type
     FMaxCLODTriangles, FCLODPrecision: Integer;
     FMaxCLODTriangles, FCLODPrecision: Integer;
     FBufferVertices: TGAffineVectorList;
     FBufferVertices: TGAffineVectorList;
     FBufferTexPoints: TGTexPointList;
     FBufferTexPoints: TGTexPointList;
-    FBufferVertexIndices: TGIntegerList;
+    FBufferVertexIndices: TgIntegerList;
     FMaterialLibrary: TGLMaterialLibrary;
     FMaterialLibrary: TGLMaterialLibrary;
     FOnGetTerrainBounds: TGetTerrainBoundsEvent;
     FOnGetTerrainBounds: TGetTerrainBoundsEvent;
     FOnPatchPostRender: TPatchPostRenderEvent;
     FOnPatchPostRender: TPatchPostRenderEvent;
@@ -243,7 +243,7 @@ begin
   FOcclusionTesselate := totTesselateIfVisible;
   FOcclusionTesselate := totTesselateIfVisible;
   FBufferVertices := TGAffineVectorList.Create;
   FBufferVertices := TGAffineVectorList.Create;
   FBufferTexPoints := TGTexPointList.Create;
   FBufferTexPoints := TGTexPointList.Create;
-  FBufferVertexIndices := TGIntegerList.Create;
+  FBufferVertexIndices := TgIntegerList.Create;
   TileManagement := [tmClearUsedFlags, tmMarkUsedTiles, tmReleaseUnusedTiles,
   TileManagement := [tmClearUsedFlags, tmMarkUsedTiles, tmReleaseUnusedTiles,
     tmAllocateNewTiles];
     tmAllocateNewTiles];
 end;
 end;

+ 38 - 38
Source/GLS.Texture.pas

@@ -29,7 +29,7 @@ uses
   GLScene.Coordinates,
   GLScene.Coordinates,
   GLS.RenderContextInfo,
   GLS.RenderContextInfo,
   GLScene.PersistentClasses,
   GLScene.PersistentClasses,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLS.ImageUtils,
   GLS.ImageUtils,
   GLScene.TextureFormat,
   GLScene.TextureFormat,
   GLS.ApplicationFileIO,
   GLS.ApplicationFileIO,
@@ -386,10 +386,10 @@ type
     FImageBrightness: Single;
     FImageBrightness: Single;
     FImageGamma: Single;
     FImageGamma: Single;
     FMappingMode: TGLTextureMappingMode;
     FMappingMode: TGLTextureMappingMode;
-    FMapSCoordinates: TGCoordinates4;
-    FMapTCoordinates: TGCoordinates4;
-    FMapRCoordinates: TGCoordinates4;
-    FMapQCoordinates: TGCoordinates4;
+    FMapSCoordinates: TgCoordinates4;
+    FMapTCoordinates: TgCoordinates4;
+    FMapRCoordinates: TgCoordinates4;
+    FMapQCoordinates: TgCoordinates4;
     FOnTextureNeeded: TGLTextureNeededEvent;
     FOnTextureNeeded: TGLTextureNeededEvent;
     FCompression: TGLTextureCompression;
     FCompression: TGLTextureCompression;
     FRequiredMemorySize: Integer;
     FRequiredMemorySize: Integer;
@@ -428,17 +428,17 @@ type
     procedure SetCompression(const val: TGLTextureCompression);
     procedure SetCompression(const val: TGLTextureCompression);
     procedure SetFilteringQuality(const val: TGLTextureFilteringQuality);
     procedure SetFilteringQuality(const val: TGLTextureFilteringQuality);
     procedure SetMappingMode(const val: TGLTextureMappingMode);
     procedure SetMappingMode(const val: TGLTextureMappingMode);
-    function GetMappingSCoordinates: TGCoordinates4;
-    procedure SetMappingSCoordinates(const val: TGCoordinates4);
+    function GetMappingSCoordinates: TgCoordinates4;
+    procedure SetMappingSCoordinates(const val: TgCoordinates4);
     function StoreMappingSCoordinates: Boolean;
     function StoreMappingSCoordinates: Boolean;
-    function GetMappingTCoordinates: TGCoordinates4;
-    procedure SetMappingTCoordinates(const val: TGCoordinates4);
+    function GetMappingTCoordinates: TgCoordinates4;
+    procedure SetMappingTCoordinates(const val: TgCoordinates4);
     function StoreMappingTCoordinates: Boolean;
     function StoreMappingTCoordinates: Boolean;
-    function GetMappingRCoordinates: TGCoordinates4;
-    procedure SetMappingRCoordinates(const val: TGCoordinates4);
+    function GetMappingRCoordinates: TgCoordinates4;
+    procedure SetMappingRCoordinates(const val: TgCoordinates4);
     function StoreMappingRCoordinates: Boolean;
     function StoreMappingRCoordinates: Boolean;
-    function GetMappingQCoordinates: TGCoordinates4;
-    procedure SetMappingQCoordinates(const val: TGCoordinates4);
+    function GetMappingQCoordinates: TgCoordinates4;
+    procedure SetMappingQCoordinates(const val: TgCoordinates4);
     function StoreMappingQCoordinates: Boolean;
     function StoreMappingQCoordinates: Boolean;
     procedure SetDisabled(AValue: Boolean);
     procedure SetDisabled(AValue: Boolean);
     procedure SetEnabled(const val: Boolean);
     procedure SetEnabled(const val: Boolean);
@@ -580,13 +580,13 @@ type
     (* Texture mapping coordinates mode for S, T, R and Q axis.
     (* Texture mapping coordinates mode for S, T, R and Q axis.
     This property stores the coordinates for automatic texture
     This property stores the coordinates for automatic texture
     coordinates generation *)
     coordinates generation *)
-    property MappingSCoordinates: TGCoordinates4 read GetMappingSCoordinates
+    property MappingSCoordinates: TgCoordinates4 read GetMappingSCoordinates
       write SetMappingSCoordinates stored StoreMappingSCoordinates;
       write SetMappingSCoordinates stored StoreMappingSCoordinates;
-    property MappingTCoordinates: TGCoordinates4 read GetMappingTCoordinates
+    property MappingTCoordinates: TgCoordinates4 read GetMappingTCoordinates
       write SetMappingTCoordinates stored StoreMappingTCoordinates;
       write SetMappingTCoordinates stored StoreMappingTCoordinates;
-    property MappingRCoordinates: TGCoordinates4 read GetMappingRCoordinates
+    property MappingRCoordinates: TgCoordinates4 read GetMappingRCoordinates
       write SetMappingRCoordinates stored StoreMappingRCoordinates;
       write SetMappingRCoordinates stored StoreMappingRCoordinates;
-    property MappingQCoordinates: TGCoordinates4 read GetMappingQCoordinates
+    property MappingQCoordinates: TgCoordinates4 read GetMappingQCoordinates
       write SetMappingQCoordinates stored StoreMappingQCoordinates;
       write SetMappingQCoordinates stored StoreMappingQCoordinates;
     // Texture Environment color
     // Texture Environment color
     property EnvColor: TGColor read FEnvColor write SetEnvColor;
     property EnvColor: TGColor read FEnvColor write SetEnvColor;
@@ -615,7 +615,7 @@ type
   private
   private
     FTexture: TGLTexture;
     FTexture: TGLTexture;
     FTextureIndex: Integer;
     FTextureIndex: Integer;
-    FTextureOffset, FTextureScale: TGCoordinates;
+    FTextureOffset, FTextureScale: TgCoordinates;
     FTextureMatrixIsIdentity: Boolean;
     FTextureMatrixIsIdentity: Boolean;
     FTextureMatrix: TGLMatrix;
     FTextureMatrix: TGLMatrix;
     FApplied: Boolean;
     FApplied: Boolean;
@@ -628,8 +628,8 @@ type
     function GetOwner: TPersistent; override;
     function GetOwner: TPersistent; override;
     procedure SetTexture(const Value: TGLTexture);
     procedure SetTexture(const Value: TGLTexture);
     procedure SetTextureIndex(const Value: Integer);
     procedure SetTextureIndex(const Value: Integer);
-    procedure SetTextureOffset(const Value: TGCoordinates);
-    procedure SetTextureScale(const Value: TGCoordinates);
+    procedure SetTextureOffset(const Value: TgCoordinates);
+    procedure SetTextureScale(const Value: TgCoordinates);
     procedure NotifyTexMapChange(Sender: TObject);
     procedure NotifyTexMapChange(Sender: TObject);
     procedure CalculateTextureMatrix;
     procedure CalculateTextureMatrix;
     procedure OnNotifyChange(Sender: TObject);
     procedure OnNotifyChange(Sender: TObject);
@@ -643,8 +643,8 @@ type
   published
   published
     property Texture: TGLTexture read FTexture write SetTexture;
     property Texture: TGLTexture read FTexture write SetTexture;
     property TextureIndex: Integer read FTextureIndex write SetTextureIndex;
     property TextureIndex: Integer read FTextureIndex write SetTextureIndex;
-    property TextureOffset: TGCoordinates read FTextureOffset write SetTextureOffset;
-    property TextureScale: TGCoordinates read FTextureScale write SetTextureScale;
+    property TextureOffset: TgCoordinates read FTextureOffset write SetTextureOffset;
+    property TextureScale: TgCoordinates read FTextureScale write SetTextureScale;
   end;
   end;
 
 
   TGLTextureEx = class(TCollection)
   TGLTextureEx = class(TCollection)
@@ -2179,15 +2179,15 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGLTexture.SetMappingSCoordinates(const val: TGCoordinates4);
+procedure TGLTexture.SetMappingSCoordinates(const val: TgCoordinates4);
 begin
 begin
   MappingSCoordinates.Assign(val);
   MappingSCoordinates.Assign(val);
 end;
 end;
 
 
-function TGLTexture.GetMappingSCoordinates: TGCoordinates4;
+function TGLTexture.GetMappingSCoordinates: TgCoordinates4;
 begin
 begin
   if not Assigned(FMapSCoordinates) then
   if not Assigned(FMapSCoordinates) then
-    FMapSCoordinates := TGCoordinates4.CreateInitialized(Self, XHmgVector, csVector);
+    FMapSCoordinates := TgCoordinates4.CreateInitialized(Self, XHmgVector, csVector);
   Result := FMapSCoordinates;
   Result := FMapSCoordinates;
 end;
 end;
 
 
@@ -2199,15 +2199,15 @@ begin
     Result := false;
     Result := false;
 end;
 end;
 
 
-procedure TGLTexture.SetMappingTCoordinates(const val: TGCoordinates4);
+procedure TGLTexture.SetMappingTCoordinates(const val: TgCoordinates4);
 begin
 begin
   MappingTCoordinates.Assign(val);
   MappingTCoordinates.Assign(val);
 end;
 end;
 
 
-function TGLTexture.GetMappingTCoordinates: TGCoordinates4;
+function TGLTexture.GetMappingTCoordinates: TgCoordinates4;
 begin
 begin
   if not Assigned(FMapTCoordinates) then
   if not Assigned(FMapTCoordinates) then
-    FMapTCoordinates := TGCoordinates4.CreateInitialized(Self, YHmgVector,
+    FMapTCoordinates := TgCoordinates4.CreateInitialized(Self, YHmgVector,
       csVector);
       csVector);
   Result := FMapTCoordinates;
   Result := FMapTCoordinates;
 end;
 end;
@@ -2220,15 +2220,15 @@ begin
     Result := false;
     Result := false;
 end;
 end;
 
 
-procedure TGLTexture.SetMappingRCoordinates(const val: TGCoordinates4);
+procedure TGLTexture.SetMappingRCoordinates(const val: TgCoordinates4);
 begin
 begin
   MappingRCoordinates.Assign(val);
   MappingRCoordinates.Assign(val);
 end;
 end;
 
 
-function TGLTexture.GetMappingRCoordinates: TGCoordinates4;
+function TGLTexture.GetMappingRCoordinates: TgCoordinates4;
 begin
 begin
   if not Assigned(FMapRCoordinates) then
   if not Assigned(FMapRCoordinates) then
-    FMapRCoordinates := TGCoordinates4.CreateInitialized(Self, ZHmgVector,
+    FMapRCoordinates := TgCoordinates4.CreateInitialized(Self, ZHmgVector,
       csVector);
       csVector);
   Result := FMapRCoordinates;
   Result := FMapRCoordinates;
 end;
 end;
@@ -2241,15 +2241,15 @@ begin
     Result := false;
     Result := false;
 end;
 end;
 
 
-procedure TGLTexture.SetMappingQCoordinates(const val: TGCoordinates4);
+procedure TGLTexture.SetMappingQCoordinates(const val: TgCoordinates4);
 begin
 begin
   MappingQCoordinates.Assign(val);
   MappingQCoordinates.Assign(val);
 end;
 end;
 
 
-function TGLTexture.GetMappingQCoordinates: TGCoordinates4;
+function TGLTexture.GetMappingQCoordinates: TgCoordinates4;
 begin
 begin
   if not Assigned(FMapQCoordinates) then
   if not Assigned(FMapQCoordinates) then
-    FMapQCoordinates := TGCoordinates4.CreateInitialized(Self, WHmgVector,
+    FMapQCoordinates := TgCoordinates4.CreateInitialized(Self, WHmgVector,
       csVector);
       csVector);
   Result := FMapQCoordinates;
   Result := FMapQCoordinates;
 end;
 end;
@@ -2958,10 +2958,10 @@ begin
   inherited;
   inherited;
 
 
   FTexture := TGLTexture.Create(Self);
   FTexture := TGLTexture.Create(Self);
-  FTextureOffset := TGCoordinates.CreateInitialized(Self, NullHMGVector,
+  FTextureOffset := TgCoordinates.CreateInitialized(Self, NullHMGVector,
     csPoint);
     csPoint);
   FTextureOffset.OnNotifyChange := OnNotifyChange;
   FTextureOffset.OnNotifyChange := OnNotifyChange;
-  FTextureScale := TGCoordinates.CreateInitialized(Self, XYZHmgVector,
+  FTextureScale := TgCoordinates.CreateInitialized(Self, XYZHmgVector,
     csPoint);
     csPoint);
   FTextureScale.OnNotifyChange := OnNotifyChange;
   FTextureScale.OnNotifyChange := OnNotifyChange;
 
 
@@ -3106,13 +3106,13 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGLTextureExItem.SetTextureOffset(const Value: TGCoordinates);
+procedure TGLTextureExItem.SetTextureOffset(const Value: TgCoordinates);
 begin
 begin
   FTextureOffset.Assign(Value);
   FTextureOffset.Assign(Value);
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-procedure TGLTextureExItem.SetTextureScale(const Value: TGCoordinates);
+procedure TGLTextureExItem.SetTextureScale(const Value: TgCoordinates);
 begin
 begin
   FTextureScale.Assign(Value);
   FTextureScale.Assign(Value);
   NotifyChange(Self);
   NotifyChange(Self);

+ 10 - 10
Source/GLS.ThorFX.pas

@@ -28,7 +28,7 @@ uses
   GLScene.BaseClasses,
   GLScene.BaseClasses,
   GLScene.Coordinates,
   GLScene.Coordinates,
   GLS.RenderContextInfo,
   GLS.RenderContextInfo,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLScene.Manager,
   GLScene.Manager,
   GLS.State,
   GLS.State,
   GLScene.TextureFormat;
   GLScene.TextureFormat;
@@ -54,7 +54,7 @@ type
   private
   private
     FClients: TList;
     FClients: TList;
     FThorpoints: PThorpointArray;
     FThorpoints: PThorpointArray;
-    FTarget: TGCoordinates;
+    FTarget: TgCoordinates;
     FCadencer: TGLCadencer;
     FCadencer: TGLCadencer;
     FMaxpoints: integer;
     FMaxpoints: integer;
     FGlowSize: single;
     FGlowSize: single;
@@ -68,7 +68,7 @@ type
     procedure RegisterClient(aClient: TGLBThorFX);
     procedure RegisterClient(aClient: TGLBThorFX);
     procedure DeRegisterClient(aClient: TGLBThorFX);
     procedure DeRegisterClient(aClient: TGLBThorFX);
     procedure DeRegisterAllClients;
     procedure DeRegisterAllClients;
-    procedure SetTarget(const val: TGCoordinates);
+    procedure SetTarget(const val: TgCoordinates);
     procedure SetCadencer(const val: TGLCadencer);
     procedure SetCadencer(const val: TGLCadencer);
     procedure SetMaxpoints(const val: integer);
     procedure SetMaxpoints(const val: integer);
     function StoreGlowSize: boolean;
     function StoreGlowSize: boolean;
@@ -86,7 +86,7 @@ type
     destructor Destroy; override;
     destructor Destroy; override;
     procedure DoProgress(const progressTime: TGProgressTimes); override;
     procedure DoProgress(const progressTime: TGProgressTimes); override;
   published
   published
-    property Target: TGCoordinates read FTarget write SetTarget;
+    property Target: TgCoordinates read FTarget write SetTarget;
     property Cadencer: TGLCadencer read FCadencer write SetCadencer;
     property Cadencer: TGLCadencer read FCadencer write SetCadencer;
     property Maxpoints: integer read FMaxpoints write SetMaxpoints default 256;
     property Maxpoints: integer read FMaxpoints write SetMaxpoints default 256;
     property GlowSize: single read FGlowSize write FGlowSize stored StoreGlowSize;
     property GlowSize: single read FGlowSize write FGlowSize stored StoreGlowSize;
@@ -106,13 +106,13 @@ type
   private
   private
     FManager: TGLThorFXManager;
     FManager: TGLThorFXManager;
     FManagerName: String; // NOT persistent, temporarily used for persistence
     FManagerName: String; // NOT persistent, temporarily used for persistence
-    FTarget: TGCoordinates;
+    FTarget: TgCoordinates;
   protected
   protected
     procedure SetManager(const val: TGLThorFXManager);
     procedure SetManager(const val: TGLThorFXManager);
     procedure WriteToFiler(writer: TWriter); override;
     procedure WriteToFiler(writer: TWriter); override;
     procedure ReadFromFiler(reader: TReader); override;
     procedure ReadFromFiler(reader: TReader); override;
     procedure Loaded; override;
     procedure Loaded; override;
-    procedure SetTarget(const val: TGCoordinates);
+    procedure SetTarget(const val: TgCoordinates);
   public
   public
     constructor Create(AOwner: TXCollection); override;
     constructor Create(AOwner: TXCollection); override;
     destructor Destroy; override;
     destructor Destroy; override;
@@ -141,7 +141,7 @@ begin
   inherited Create(AOwner);
   inherited Create(AOwner);
   FClients := TList.Create;
   FClients := TList.Create;
   RegisterManager(Self);
   RegisterManager(Self);
-  FTarget := TGCoordinates.CreateInitialized(Self, VectorMake(0, 1, 0));
+  FTarget := TgCoordinates.CreateInitialized(Self, VectorMake(0, 1, 0));
   FTarget.Style := csPoint;
   FTarget.Style := csPoint;
   FMaxpoints := 64;
   FMaxpoints := 64;
   FGlowSize := 0.2;
   FGlowSize := 0.2;
@@ -201,7 +201,7 @@ begin
   FClients.Clear;
   FClients.Clear;
 end;
 end;
 
 
-procedure TGLThorFXManager.SetTarget(const val: TGCoordinates);
+procedure TGLThorFXManager.SetTarget(const val: TgCoordinates);
 begin
 begin
   FTarget.Assign(val);
   FTarget.Assign(val);
   ThorInit;
   ThorInit;
@@ -368,7 +368,7 @@ end;
 constructor TGLBThorFX.Create(AOwner: TXCollection);
 constructor TGLBThorFX.Create(AOwner: TXCollection);
 begin
 begin
   inherited Create(AOwner);
   inherited Create(AOwner);
-  FTarget := TGCoordinates.CreateInitialized(Self, VectorMake(0, 1, 0));
+  FTarget := TgCoordinates.CreateInitialized(Self, VectorMake(0, 1, 0));
   FTarget.Style := csPoint;
   FTarget.Style := csPoint;
 end;
 end;
 
 
@@ -442,7 +442,7 @@ begin
   inherited Assign(Source);
   inherited Assign(Source);
 end;
 end;
 
 
-procedure TGLBThorFX.SetTarget(const val: TGCoordinates);
+procedure TGLBThorFX.SetTarget(const val: TgCoordinates);
 begin
 begin
   FTarget.Assign(val);
   FTarget.Assign(val);
 end;
 end;

+ 12 - 12
Source/GLS.TilePlane.pas

@@ -30,7 +30,7 @@ type
   TGLTiledAreaRow = class(TGPersistentObject)
   TGLTiledAreaRow = class(TGPersistentObject)
   private
   private
     FColMin, FColMax: Integer;
     FColMin, FColMax: Integer;
-    FData: TGIntegerList;
+    FData: TgIntegerList;
   protected
   protected
     procedure SetColMin(const val: Integer);
     procedure SetColMin(const val: Integer);
     procedure SetColMax(const val: Integer);
     procedure SetColMax(const val: Integer);
@@ -44,10 +44,10 @@ type
     property Cell[col: Integer]: Integer read GetCell write SetCell; default;
     property Cell[col: Integer]: Integer read GetCell write SetCell; default;
     property ColMin: Integer read FColMin write SetColMin;
     property ColMin: Integer read FColMin write SetColMin;
     property ColMax: Integer read FColMax write SetColMax;
     property ColMax: Integer read FColMax write SetColMax;
-    property Data: TGIntegerList read FData;
+    property Data: TgIntegerList read FData;
     procedure Pack;
     procedure Pack;
     function Empty: Boolean;
     function Empty: Boolean;
-    procedure RemapTiles(remapList: TGIntegerList);
+    procedure RemapTiles(remapList: TgIntegerList);
   end;
   end;
 
 
   (* Stores tile information in a tiled area.
   (* Stores tile information in a tiled area.
@@ -56,7 +56,7 @@ type
   TGLTiledArea = class(TGPersistentObject)
   TGLTiledArea = class(TGPersistentObject)
   private
   private
     FRowMin, FRowMax: Integer;
     FRowMin, FRowMax: Integer;
-    FRows: TGPersistentObjectList;
+    FRows: TgPersistentObjectList;
   protected
   protected
     procedure SetRowMin(const val: Integer);
     procedure SetRowMin(const val: Integer);
     procedure SetRowMax(const val: Integer);
     procedure SetRowMax(const val: Integer);
@@ -75,7 +75,7 @@ type
     procedure Pack;
     procedure Pack;
     procedure Clear;
     procedure Clear;
     function Empty: Boolean;
     function Empty: Boolean;
-    procedure RemapTiles(remapList: TGIntegerList);
+    procedure RemapTiles(remapList: TgIntegerList);
   end;
   end;
 
 
   (* A tiled textured plane.
   (* A tiled textured plane.
@@ -128,7 +128,7 @@ implementation
 constructor TGLTiledAreaRow.Create;
 constructor TGLTiledAreaRow.Create;
 begin
 begin
   inherited;
   inherited;
-  FData := TGIntegerList.Create;
+  FData := TgIntegerList.Create;
   FColMin := 0;
   FColMin := 0;
   FColMax := -1;
   FColMax := -1;
 end;
 end;
@@ -207,7 +207,7 @@ begin
   Result := (FData.Count = 0);
   Result := (FData.Count = 0);
 end;
 end;
 
 
-procedure TGLTiledAreaRow.RemapTiles(remapList: TGIntegerList);
+procedure TGLTiledAreaRow.RemapTiles(remapList: TgIntegerList);
 var
 var
   i, k: Integer;
   i, k: Integer;
 begin
 begin
@@ -284,7 +284,7 @@ end;
 constructor TGLTiledArea.Create;
 constructor TGLTiledArea.Create;
 begin
 begin
   inherited;
   inherited;
-  FRows := TGPersistentObjectList.Create;
+  FRows := TgPersistentObjectList.Create;
   FRowMax := -1;
   FRowMax := -1;
 end;
 end;
 
 
@@ -373,7 +373,7 @@ begin
   Result := (FRows.Count = 0);
   Result := (FRows.Count = 0);
 end;
 end;
 
 
-procedure TGLTiledArea.RemapTiles(remapList: TGIntegerList);
+procedure TGLTiledArea.RemapTiles(remapList: TgIntegerList);
 var
 var
   i: Integer;
   i: Integer;
   r: TGLTiledAreaRow;
   r: TGLTiledAreaRow;
@@ -542,7 +542,7 @@ end;
 procedure TGLTilePlane.BuildList(var rci: TGLRenderContextInfo);
 procedure TGLTilePlane.BuildList(var rci: TGLRenderContextInfo);
 type
 type
   TQuadListInfo = packed record
   TQuadListInfo = packed record
-    x, y: TGIntegerList;
+    x, y: TgIntegerList;
   end;
   end;
 
 
   procedure IssueQuad(col, row: Integer);
   procedure IssueQuad(col, row: Integer);
@@ -574,8 +574,8 @@ begin
     SetLength(quadInfos, MaterialLibrary.Materials.Count);
     SetLength(quadInfos, MaterialLibrary.Materials.Count);
     for i := 0 to High(quadInfos) do
     for i := 0 to High(quadInfos) do
     begin // correction in (i:=0) from (i:=1)
     begin // correction in (i:=0) from (i:=1)
-      quadInfos[i].x := TGIntegerList.Create;
-      quadInfos[i].y := TGIntegerList.Create;
+      quadInfos[i].x := TgIntegerList.Create;
+      quadInfos[i].y := TgIntegerList.Create;
     end;
     end;
     // collect quads into quadInfos, sorted by material
     // collect quads into quadInfos, sorted by material
     for row := Tiles.RowMin to Tiles.RowMax do
     for row := Tiles.RowMin to Tiles.RowMax do

+ 10 - 10
Source/GLS.Tree.pas

@@ -79,8 +79,8 @@ type
     FBranchID: Integer;
     FBranchID: Integer;
     FParentID: Integer;
     FParentID: Integer;
     FMatrix: TGLMatrix;
     FMatrix: TGLMatrix;
-    FLower: TGIntegerList;
-    FUpper: TGIntegerList;
+    FLower: TgIntegerList;
+    FUpper: TgIntegerList;
     FCentralLeader: Boolean;
     FCentralLeader: Boolean;
     procedure BuildBranch(branchNoise: TGLTreeBranchNoise;
     procedure BuildBranch(branchNoise: TGLTreeBranchNoise;
       const matrix: TGLMatrix; TexCoordY, Twist: Single; Level: Integer);
       const matrix: TGLMatrix; TexCoordY, Twist: Single; Level: Integer);
@@ -93,8 +93,8 @@ type
     property Right: TGLTreeBranch read FRight;
     property Right: TGLTreeBranch read FRight;
     property Parent: TGLTreeBranch read FParent;
     property Parent: TGLTreeBranch read FParent;
     property matrix: TGLMatrix read FMatrix;
     property matrix: TGLMatrix read FMatrix;
-    property Lower: TGIntegerList read FLower;
-    property Upper: TGIntegerList read FUpper;
+    property Lower: TgIntegerList read FLower;
+    property Upper: TgIntegerList read FUpper;
   end;
   end;
 
 
   TGLTreeBranches = class
   TGLTreeBranches = class
@@ -105,11 +105,11 @@ type
     FVertices: TGAffineVectorList;
     FVertices: TGAffineVectorList;
     FNormals: TGAffineVectorList;
     FNormals: TGAffineVectorList;
     FTexCoords: TGAffineVectorList;
     FTexCoords: TGAffineVectorList;
-    FIndices: TGIntegerList;
+    FIndices: TgIntegerList;
     FRoot: TGLTreeBranch;
     FRoot: TGLTreeBranch;
     FCount: Integer;
     FCount: Integer;
     FBranchCache: TList;
     FBranchCache: TList;
-    FBranchIndices: TGIntegerList;
+    FBranchIndices: TgIntegerList;
     procedure BuildBranches;
     procedure BuildBranches;
   public
   public
     constructor Create(AOwner: TGLTree);
     constructor Create(AOwner: TGLTree);
@@ -371,8 +371,8 @@ constructor TGLTreeBranch.Create(AOwner: TGLTreeBranches;
 begin
 begin
   FOwner := AOwner;
   FOwner := AOwner;
   FParent := AParent;
   FParent := AParent;
-  FUpper := TGIntegerList.Create;
-  FLower := TGIntegerList.Create;
+  FUpper := TgIntegerList.Create;
+  FLower := TgIntegerList.Create;
   FCentralLeader := False;
   FCentralLeader := False;
 
 
   // Skeletal construction helpers
   // Skeletal construction helpers
@@ -618,9 +618,9 @@ begin
   FVertices := TGAffineVectorList.Create;
   FVertices := TGAffineVectorList.Create;
   FNormals := TGAffineVectorList.Create;
   FNormals := TGAffineVectorList.Create;
   FTexCoords := TGAffineVectorList.Create;
   FTexCoords := TGAffineVectorList.Create;
-  FIndices := TGIntegerList.Create;
+  FIndices := TgIntegerList.Create;
   FBranchCache := TList.Create;
   FBranchCache := TList.Create;
-  FBranchIndices := TGIntegerList.Create;
+  FBranchIndices := TgIntegerList.Create;
   FCount := 0;
   FCount := 0;
 end;
 end;
 
 

+ 39 - 39
Source/GLS.VectorFileObjects.pas

@@ -49,7 +49,7 @@ uses
   GLS.ApplicationFileIO,
   GLS.ApplicationFileIO,
   GLS.Context,
   GLS.Context,
   GLScene.Color,
   GLScene.Color,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLS.Selection,
   GLS.Selection,
   GLS.XOpenGL,
   GLS.XOpenGL,
   GLS.MeshUtils,
   GLS.MeshUtils,
@@ -100,8 +100,8 @@ type
       The only valid modes are currently momTriangles and momTriangleStrip
       The only valid modes are currently momTriangles and momTriangleStrip
       (ie. momFaceGroups not supported).
       (ie. momFaceGroups not supported).
     *)
     *)
-    procedure BuildNormals(vertexIndices: TGIntegerList; mode: TGLMeshObjectMode;
-	  NormalIndices: TGIntegerList = nil);
+    procedure BuildNormals(vertexIndices: TgIntegerList; mode: TGLMeshObjectMode;
+	  NormalIndices: TgIntegerList = nil);
     // Builds normals faster without index calculations for the stripe mode
     // Builds normals faster without index calculations for the stripe mode
     procedure GenericOrderedBuildNormals (mode: TGLMeshObjectMode);
     procedure GenericOrderedBuildNormals (mode: TGLMeshObjectMode);
     (*
     (*
@@ -175,7 +175,7 @@ type
   end;
   end;
 
 
   // A list of TGLSkeletonFrame objects
   // A list of TGLSkeletonFrame objects
-  TGLSkeletonFrameList = class(TGPersistentObjectList)
+  TGLSkeletonFrameList = class(TgPersistentObjectList)
   private
   private
     FOwner: TPersistent;
     FOwner: TPersistent;
   protected
   protected
@@ -196,7 +196,7 @@ type
   TGLSkeletonBone = class;
   TGLSkeletonBone = class;
 
 
   // A list of skeleton bones
   // A list of skeleton bones
-  TGLSkeletonBoneList = class(TGPersistentObjectList)
+  TGLSkeletonBoneList = class(TgPersistentObjectList)
   private
   private
     FSkeleton: TGLSkeleton; // not persistent
     FSkeleton: TGLSkeleton; // not persistent
   protected
   protected
@@ -321,7 +321,7 @@ type
   end;
   end;
 
 
   // List class for storing TGLSkeletonCollider objects
   // List class for storing TGLSkeletonCollider objects
-  TGLSkeletonColliderList = class(TGPersistentObjectList)
+  TGLSkeletonColliderList = class(TgPersistentObjectList)
   private
   private
     FOwner: TPersistent;
     FOwner: TPersistent;
   protected
   protected
@@ -549,7 +549,7 @@ type
   end;
   end;
 
 
   // A list of TGLMeshObject objects.
   // A list of TGLMeshObject objects.
-  TGLMeshObjectList = class(TGPersistentObjectList)
+  TGLMeshObjectList = class(TgPersistentObjectList)
   private
   private
     FOwner: TGLBaseMesh;
     FOwner: TGLBaseMesh;
     // Returns True if all its MeshObjects use VBOs.
     // Returns True if all its MeshObjects use VBOs.
@@ -610,7 +610,7 @@ type
   end;
   end;
 
 
   // A list of TGLMeshMorphTarget objects. 
   // A list of TGLMeshMorphTarget objects. 
-  TGLMeshMorphTargetList = class(TGPersistentObjectList)
+  TGLMeshMorphTargetList = class(TgPersistentObjectList)
   private
   private
     FOwner: TPersistent;
     FOwner: TPersistent;
   protected
   protected
@@ -751,14 +751,14 @@ type
     in the order given by the vertices. *)
     in the order given by the vertices. *)
   TFGVertexIndexList = class(TGLFaceGroup)
   TFGVertexIndexList = class(TGLFaceGroup)
   private
   private
-    FVertexIndices: TGIntegerList;
+    FVertexIndices: TgIntegerList;
     FIndexVBO: TGLVBOElementArrayHandle;
     FIndexVBO: TGLVBOElementArrayHandle;
     FMode: TGLFaceGroupMeshMode;
     FMode: TGLFaceGroupMeshMode;
     procedure SetupVBO;
     procedure SetupVBO;
     procedure InvalidateVBO;
     procedure InvalidateVBO;
   protected
   protected
-    procedure SetVertexIndices(const val: TGIntegerList);
-    procedure AddToList(Source, destination: TGAffineVectorList; indices: TGIntegerList);
+    procedure SetVertexIndices(const val: TgIntegerList);
+    procedure AddToList(Source, destination: TGAffineVectorList; indices: TgIntegerList);
   public
   public
     constructor Create; override;
     constructor Create; override;
     destructor Destroy; override;
     destructor Destroy; override;
@@ -776,7 +776,7 @@ type
     // Return the normal from the 1st three points in the facegroup
     // Return the normal from the 1st three points in the facegroup
     function GetNormal: TAffineVector;
     function GetNormal: TAffineVector;
     property Mode: TGLFaceGroupMeshMode read FMode write FMode;
     property Mode: TGLFaceGroupMeshMode read FMode write FMode;
-    property VertexIndices: TGIntegerList read FVertexIndices write SetVertexIndices;
+    property VertexIndices: TgIntegerList read FVertexIndices write SetVertexIndices;
   end;
   end;
 
 
   (* Adds normals and texcoords indices.
   (* Adds normals and texcoords indices.
@@ -784,11 +784,11 @@ type
     indices are optionnal, if missing (empty), VertexIndices will be used. *)
     indices are optionnal, if missing (empty), VertexIndices will be used. *)
   TFGVertexNormalTexIndexList = class(TFGVertexIndexList)
   TFGVertexNormalTexIndexList = class(TFGVertexIndexList)
   private
   private
-    FNormalIndices: TGIntegerList;
-    FTexCoordIndices: TGIntegerList;
+    FNormalIndices: TgIntegerList;
+    FTexCoordIndices: TgIntegerList;
   protected
   protected
-    procedure SetNormalIndices(const val: TGIntegerList); inline;
-    procedure SetTexCoordIndices(const val: TGIntegerList); inline;
+    procedure SetNormalIndices(const val: TgIntegerList); inline;
+    procedure SetTexCoordIndices(const val: TgIntegerList); inline;
   public
   public
     constructor Create; override;
     constructor Create; override;
     destructor Destroy; override;
     destructor Destroy; override;
@@ -798,8 +798,8 @@ type
     procedure AddToTriangles(aList: TGAffineVectorList; aTexCoords: TGAffineVectorList = nil;
     procedure AddToTriangles(aList: TGAffineVectorList; aTexCoords: TGAffineVectorList = nil;
       aNormals: TGAffineVectorList = nil); override;
       aNormals: TGAffineVectorList = nil); override;
     procedure Add(vertexIdx, normalIdx, texCoordIdx: Integer);
     procedure Add(vertexIdx, normalIdx, texCoordIdx: Integer);
-    property NormalIndices: TGIntegerList read FNormalIndices write  SetNormalIndices;
-    property TexCoordIndices: TGIntegerList read FTexCoordIndices write  SetTexCoordIndices;
+    property NormalIndices: TgIntegerList read FNormalIndices write  SetNormalIndices;
+    property TexCoordIndices: TgIntegerList read FTexCoordIndices write  SetTexCoordIndices;
   end;
   end;
 
 
   (* Adds per index texture coordinates to its ancestor.
   (* Adds per index texture coordinates to its ancestor.
@@ -824,7 +824,7 @@ type
   end;
   end;
 
 
   // A list of TGLFaceGroup objects. 
   // A list of TGLFaceGroup objects. 
-  TGLFaceGroups = class(TGPersistentObjectList)
+  TGLFaceGroups = class(TgPersistentObjectList)
   private
   private
     FOwner: TGLMeshObject;
     FOwner: TGLMeshObject;
   protected
   protected
@@ -892,7 +892,7 @@ type
     FOverlaySkeleton: Boolean;
     FOverlaySkeleton: Boolean;
     FIgnoreMissingTextures: Boolean;
     FIgnoreMissingTextures: Boolean;
     FAutoCentering: TGLMeshAutoCenterings;
     FAutoCentering: TGLMeshAutoCenterings;
-    FAutoScaling: TGCoordinates;
+    FAutoScaling: TgCoordinates;
     FMaterialLibraryCachesPrepared: Boolean;
     FMaterialLibraryCachesPrepared: Boolean;
     FConnectivity: TObject;
     FConnectivity: TObject;
     FLastLoadedFilename: string;
     FLastLoadedFilename: string;
@@ -904,7 +904,7 @@ type
     procedure SetLightmapLibrary(const val: TGLMaterialLibrary);
     procedure SetLightmapLibrary(const val: TGLMaterialLibrary);
     procedure SetNormalsOrientation(const val: TGLMeshNormalsOrientation);
     procedure SetNormalsOrientation(const val: TGLMeshNormalsOrientation);
     procedure SetOverlaySkeleton(const val: Boolean);
     procedure SetOverlaySkeleton(const val: Boolean);
-    procedure SetAutoScaling(const Value: TGCoordinates);
+    procedure SetAutoScaling(const Value: TgCoordinates);
     procedure DestroyHandle; override;
     procedure DestroyHandle; override;
     (* Invoked after creating a TGLVectorFile and before loading.
     (* Invoked after creating a TGLVectorFile and before loading.
       Triggered by LoadFromFile/Stream and AddDataFromFile/Stream.
       Triggered by LoadFromFile/Stream and AddDataFromFile/Stream.
@@ -1002,7 +1002,7 @@ type
       no effect on already loaded mesh data or when adding from a file/stream.
       no effect on already loaded mesh data or when adding from a file/stream.
       If you want to alter mesh data, use direct manipulation methods
       If you want to alter mesh data, use direct manipulation methods
       (on the TMeshObjects). *)
       (on the TMeshObjects). *)
-    property AutoScaling: TGCoordinates read FAutoScaling write FAutoScaling;
+    property AutoScaling: TgCoordinates read FAutoScaling write FAutoScaling;
     (* Material library where mesh materials will be stored/retrieved.
     (* Material library where mesh materials will be stored/retrieved.
       If this property is not defined or if UseMeshMaterials is false,
       If this property is not defined or if UseMeshMaterials is false,
       only the FreeForm's material will be used (and the mesh's materials
       only the FreeForm's material will be used (and the mesh's materials
@@ -1307,7 +1307,7 @@ type
   end;
   end;
 
 
   // Stores registered vector file formats 
   // Stores registered vector file formats 
-  TGLVectorFileFormatsList = class(TGPersistentObjectList)
+  TGLVectorFileFormatsList = class(TgPersistentObjectList)
   public
   public
     destructor Destroy; override;
     destructor Destroy; override;
     procedure Add(const Ext, Desc: string; DescID: Integer; AClass: TGLVectorFileClass);
     procedure Add(const Ext, Desc: string; DescID: Integer; AClass: TGLVectorFileClass);
@@ -1606,12 +1606,12 @@ begin
   FVertices.Translate(delta);
   FVertices.Translate(delta);
 end;
 end;
 
 
-procedure TGLBaseMeshObject.BuildNormals(vertexIndices: TGIntegerList; Mode: TGLMeshObjectMode;
-  normalIndices: TGIntegerList = nil);
+procedure TGLBaseMeshObject.BuildNormals(vertexIndices: TgIntegerList; Mode: TGLMeshObjectMode;
+  normalIndices: TgIntegerList = nil);
 var
 var
   i, base: Integer;
   i, base: Integer;
   n: TAffineVector;
   n: TAffineVector;
-  newNormals: TGIntegerList;
+  newNormals: TgIntegerList;
 
 
   function TranslateNewNormal(vertexIndex: Integer; const delta: TAffineVector): Integer;
   function TranslateNewNormal(vertexIndex: Integer; const delta: TAffineVector): Integer;
   var
   var
@@ -1690,7 +1690,7 @@ begin
   begin
   begin
     // add new normals
     // add new normals
     base := Normals.Count;
     base := Normals.Count;
-    newNormals := TGIntegerList.Create;
+    newNormals := TgIntegerList.Create;
     newNormals.AddSerie(-1, 0, Vertices.Count);
     newNormals.AddSerie(-1, 0, Vertices.Count);
     case Mode of
     case Mode of
       momTriangles:
       momTriangles:
@@ -5219,7 +5219,7 @@ end;
 constructor TFGVertexIndexList.Create;
 constructor TFGVertexIndexList.Create;
 begin
 begin
   inherited;
   inherited;
-  FVertexIndices := TGIntegerList.Create;
+  FVertexIndices := TgIntegerList.Create;
   FMode := fgmmTriangles;
   FMode := fgmmTriangles;
 end;
 end;
 
 
@@ -5274,7 +5274,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TFGVertexIndexList.SetVertexIndices(const val: TGIntegerList);
+procedure TFGVertexIndexList.SetVertexIndices(const val: TgIntegerList);
 begin
 begin
   FVertexIndices.Assign(val);
   FVertexIndices.Assign(val);
   InvalidateVBO;
   InvalidateVBO;
@@ -5304,7 +5304,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TFGVertexIndexList.AddToList(Source, destination: TGAffineVectorList; indices: TGIntegerList);
+procedure TFGVertexIndexList.AddToList(Source, destination: TGAffineVectorList; indices: TgIntegerList);
 var
 var
   i, n: Integer;
   i, n: Integer;
 begin
 begin
@@ -5440,14 +5440,14 @@ end;
 procedure TFGVertexIndexList.ConvertToList;
 procedure TFGVertexIndexList.ConvertToList;
 var
 var
   i: Integer;
   i: Integer;
-  bufList: TGIntegerList;
+  bufList: TgIntegerList;
 begin
 begin
   if VertexIndices.Count >= 3 then
   if VertexIndices.Count >= 3 then
   begin
   begin
     case Mode of
     case Mode of
       fgmmTriangleStrip:
       fgmmTriangleStrip:
         begin
         begin
-          bufList := TGIntegerList.Create;
+          bufList := TgIntegerList.Create;
           try
           try
             ConvertStripToList(VertexIndices, bufList);
             ConvertStripToList(VertexIndices, bufList);
             VertexIndices := bufList;
             VertexIndices := bufList;
@@ -5458,7 +5458,7 @@ begin
         end;
         end;
       fgmmTriangleFan:
       fgmmTriangleFan:
         begin
         begin
-          bufList := TGIntegerList.Create;
+          bufList := TgIntegerList.Create;
           try
           try
             for i := 0 to VertexIndices.Count - 3 do
             for i := 0 to VertexIndices.Count - 3 do
               bufList.Add(vertexIndices[0], vertexIndices[i], vertexIndices[i + 1]);
               bufList.Add(vertexIndices[0], vertexIndices[i], vertexIndices[i + 1]);
@@ -5496,8 +5496,8 @@ end;
 constructor TFGVertexNormalTexIndexList.Create;
 constructor TFGVertexNormalTexIndexList.Create;
 begin
 begin
   inherited;
   inherited;
-  FNormalIndices := TGIntegerList.Create;
-  FTexCoordIndices := TGIntegerList.Create;
+  FNormalIndices := TgIntegerList.Create;
+  FTexCoordIndices := TgIntegerList.Create;
 end;
 end;
 
 
 destructor TFGVertexNormalTexIndexList.Destroy;
 destructor TFGVertexNormalTexIndexList.Destroy;
@@ -5534,12 +5534,12 @@ begin
     RaiseFilerException(archiveVersion);
     RaiseFilerException(archiveVersion);
 end;
 end;
 
 
-procedure TFGVertexNormalTexIndexList.SetNormalIndices(const val: TGIntegerList);
+procedure TFGVertexNormalTexIndexList.SetNormalIndices(const val: TgIntegerList);
 begin
 begin
   FNormalIndices.Assign(val);
   FNormalIndices.Assign(val);
 end;
 end;
 
 
-procedure TFGVertexNormalTexIndexList.SetTexCoordIndices(const val: TGIntegerList);
+procedure TFGVertexNormalTexIndexList.SetTexCoordIndices(const val: TgIntegerList);
 begin
 begin
   FTexCoordIndices.Assign(val);
   FTexCoordIndices.Assign(val);
 end;
 end;
@@ -5940,7 +5940,7 @@ begin
   FAutoCentering := [];
   FAutoCentering := [];
   FAxisAlignedDimensionsCache.X := -1;
   FAxisAlignedDimensionsCache.X := -1;
   FBaryCenterOffsetChanged := True;
   FBaryCenterOffsetChanged := True;
-  FAutoScaling := TGCoordinates.CreateInitialized(Self, XYZWHmgVector, csPoint);
+  FAutoScaling := TgCoordinates.CreateInitialized(Self, XYZWHmgVector, csPoint);
 end;
 end;
 
 
 destructor TGLBaseMesh.Destroy;
 destructor TGLBaseMesh.Destroy;
@@ -6190,7 +6190,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGLBaseMesh.SetAutoScaling(const Value: TGCoordinates);
+procedure TGLBaseMesh.SetAutoScaling(const Value: TgCoordinates);
 begin
 begin
   FAutoScaling.SetPoint(Value.DirectX, Value.DirectY, Value.DirectZ);
   FAutoScaling.SetPoint(Value.DirectX, Value.DirectY, Value.DirectZ);
 end;
 end;

+ 2 - 2
Source/GLS.VerletClothify.pas

@@ -145,7 +145,7 @@ type
   TGLMeshObjectVerletNode = class(TGLVerletNode)
   TGLMeshObjectVerletNode = class(TGLVerletNode)
   private
   private
     MeshObject: TGLMeshObject;
     MeshObject: TGLMeshObject;
-    VertexIndices: TGIntegerList;
+    VertexIndices: TgIntegerList;
   public
   public
     procedure AfterProgress; override;
     procedure AfterProgress; override;
     constructor CreateOwned(const AOwner: TGLVerletWorld); override;
     constructor CreateOwned(const AOwner: TGLVerletWorld); override;
@@ -336,7 +336,7 @@ end;
 constructor TGLMeshObjectVerletNode.CreateOwned(const AOwner: TGLVerletWorld);
 constructor TGLMeshObjectVerletNode.CreateOwned(const AOwner: TGLVerletWorld);
 begin
 begin
   inherited;
   inherited;
-  VertexIndices := TGIntegerList.Create;
+  VertexIndices := TgIntegerList.Create;
 end;
 end;
 
 
 destructor TGLMeshObjectVerletNode.Destroy;
 destructor TGLMeshObjectVerletNode.Destroy;

+ 7 - 7
Source/GLS.WaterPlane.pas

@@ -42,7 +42,7 @@ const
    private
    private
      FLocks: packed array of ByteBool;
      FLocks: packed array of ByteBool;
      FPositions, FVelocity: packed array of Single;
      FPositions, FVelocity: packed array of Single;
-     FPlaneQuadIndices: TGPersistentObjectList;
+     FPlaneQuadIndices: TgPersistentObjectList;
      FPlaneQuadTexCoords: TGTexPointList;
      FPlaneQuadTexCoords: TGTexPointList;
      FPlaneQuadVertices: TGAffineVectorList;
      FPlaneQuadVertices: TGAffineVectorList;
      FPlaneQuadNormals: TGAffineVectorList;
      FPlaneQuadNormals: TGAffineVectorList;
@@ -132,7 +132,7 @@ begin
   FMaximumCatchupIterations := 1;
   FMaximumCatchupIterations := 1;
   FOptions := cDefaultWaterPlaneOptions;
   FOptions := cDefaultWaterPlaneOptions;
 
 
-  FPlaneQuadIndices := TGPersistentObjectList.Create;
+  FPlaneQuadIndices := TgPersistentObjectList.Create;
   FPlaneQuadTexCoords := TGTexPointList.Create;
   FPlaneQuadTexCoords := TGTexPointList.Create;
   FPlaneQuadVertices := TGAffineVectorList.Create;
   FPlaneQuadVertices := TGAffineVectorList.Create;
   FPlaneQuadNormals := TGAffineVectorList.Create;
   FPlaneQuadNormals := TGAffineVectorList.Create;
@@ -274,7 +274,7 @@ var
   i, j, ij, resSqr: Integer;
   i, j, ij, resSqr: Integer;
   maskBmp: TBitmap;
   maskBmp: TBitmap;
   scanLine: PIntegerArray;
   scanLine: PIntegerArray;
-  il: TGIntegerList;
+  il: TgIntegerList;
   locked: Boolean;
   locked: Boolean;
 begin
 begin
   resSqr := FResolution * FResolution;
   resSqr := FResolution * FResolution;
@@ -307,7 +307,7 @@ begin
   FPlaneQuadIndices.Clean;
   FPlaneQuadIndices.Clean;
   for j := 0 to Resolution - 2 do
   for j := 0 to Resolution - 2 do
   begin
   begin
-    il := TGIntegerList.Create;
+    il := TgIntegerList.Create;
     for i := 0 to Resolution - 1 do
     for i := 0 to Resolution - 1 do
     begin
     begin
       ij := i + j * Resolution;
       ij := i + j * Resolution;
@@ -324,7 +324,7 @@ begin
       else if il.Count > 0 then
       else if il.Count > 0 then
       begin
       begin
         FPlaneQuadIndices.Add(il);
         FPlaneQuadIndices.Add(il);
-        il := TGIntegerList.Create;
+        il := TgIntegerList.Create;
       end;
       end;
     end;
     end;
     if il.Count > 0 then
     if il.Count > 0 then
@@ -434,7 +434,7 @@ end;
 procedure TGLWaterPlane.BuildList(var rci: TGLRenderContextInfo);
 procedure TGLWaterPlane.BuildList(var rci: TGLRenderContextInfo);
 var
 var
   i: Integer;
   i: Integer;
-  il: TGIntegerList;
+  il: TgIntegerList;
 begin
 begin
   gl.PushClientAttrib(GL_CLIENT_VERTEX_ARRAY_BIT);
   gl.PushClientAttrib(GL_CLIENT_VERTEX_ARRAY_BIT);
 
 
@@ -455,7 +455,7 @@ begin
 
 
   for i := 0 to FPlaneQuadIndices.Count - 1 do
   for i := 0 to FPlaneQuadIndices.Count - 1 do
   begin
   begin
-    il := TGIntegerList(FPlaneQuadIndices[i]);
+    il := TgIntegerList(FPlaneQuadIndices[i]);
     gl.DrawElements(GL_QUAD_STRIP, il.Count, GL_UNSIGNED_INT, il.List);
     gl.DrawElements(GL_QUAD_STRIP, il.Count, GL_UNSIGNED_INT, il.List);
   end;
   end;
 
 

+ 1 - 1
Source/GLS.WindowsContext.pas

@@ -21,7 +21,7 @@ uses
   GLScene.VectorTypes,
   GLScene.VectorTypes,
   GLScene.OpenGLTokens,
   GLScene.OpenGLTokens,
   GLS.OpenGLAdapter,
   GLS.OpenGLAdapter,
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLS.Context,
   GLS.Context,
   GLS.State,
   GLS.State,
   GLScene.Logger,
   GLScene.Logger,

+ 6 - 6
Source/GLS.WindowsFont.pas

@@ -44,7 +44,7 @@ type
   TGLWindowsBitmapFont = class(TGLCustomBitmapFont)
   TGLWindowsBitmapFont = class(TGLCustomBitmapFont)
   private
   private
     FFont: TFont;
     FFont: TFont;
-    procedure SetList(const AList : TGIntegerList);
+    procedure SetList(const AList : TgIntegerList);
   protected
   protected
     procedure SetFont(value: TFont);
     procedure SetFont(value: TFont);
     procedure LoadWindowsFont; virtual;
     procedure LoadWindowsFont; virtual;
@@ -301,7 +301,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGLWindowsBitmapFont.SetList(const AList: TGIntegerList);
+procedure TGLWindowsBitmapFont.SetList(const AList: TgIntegerList);
 var
 var
   i : integer;
   i : integer;
   f, n, s : integer;
   f, n, s : integer;
@@ -340,9 +340,9 @@ end;
 procedure TGLWindowsBitmapFont.EnsureChars(const AStart, AEnd: widechar);
 procedure TGLWindowsBitmapFont.EnsureChars(const AStart, AEnd: widechar);
 var
 var
   c : WideChar;
   c : WideChar;
-  ACharList : TGIntegerList;
+  ACharList : TgIntegerList;
 begin
 begin
-  ACharList := TGIntegerList.Create;
+  ACharList := TgIntegerList.Create;
   for c := AStart to AEnd do
   for c := AStart to AEnd do
       ACharList.Add(integer(c));
       ACharList.Add(integer(c));
   SetList(ACharList);
   SetList(ACharList);
@@ -353,9 +353,9 @@ end;
 procedure TGLWindowsBitmapFont.EnsureString(const s: String);
 procedure TGLWindowsBitmapFont.EnsureString(const s: String);
 var
 var
   i : Integer;
   i : Integer;
-  ACharList : TGIntegerList;
+  ACharList : TgIntegerList;
 begin
 begin
-  ACharList := TGIntegerList.Create;
+  ACharList := TgIntegerList.Create;
   for i := 1 to Length(s) do
   for i := 1 to Length(s) do
       ACharList.Add(integer(s[i]));
       ACharList.Add(integer(s[i]));
   SetList(ACharList);
   SetList(ACharList);

+ 2 - 2
Source/GLSL.BumpShaders.pas

@@ -316,7 +316,7 @@ type
   private
   private
     FVertexProgramHandle: TGLARBVertexProgramHandle;
     FVertexProgramHandle: TGLARBVertexProgramHandle;
     FFragmentProgramHandle: TGLARBFragmentProgramHandle;
     FFragmentProgramHandle: TGLARBFragmentProgramHandle;
-    FLightIDs: TGIntegerList;
+    FLightIDs: TgIntegerList;
     FLightsEnabled: Integer;
     FLightsEnabled: Integer;
     FBumpMethod: TBumpMethod;
     FBumpMethod: TBumpMethod;
     FBumpSpace: TBumpSpace;
     FBumpSpace: TBumpSpace;
@@ -1189,7 +1189,7 @@ end;
 constructor TGLBumpShader.Create(AOwner: TComponent);
 constructor TGLBumpShader.Create(AOwner: TComponent);
 begin
 begin
   inherited;
   inherited;
-  FLightIDs := TGIntegerList.Create;
+  FLightIDs := TgIntegerList.Create;
   FBumpMethod := bmDot3TexCombiner;
   FBumpMethod := bmDot3TexCombiner;
   FBumpSpace := bsObject;
   FBumpSpace := bsObject;
   FBumpOptions := [];
   FBumpOptions := [];

+ 2 - 2
Source/GLSL.CustomShader.pas

@@ -282,7 +282,7 @@ procedure DrawTexturedScreenQuad6(const ViewPortSize: TGLSize);
 procedure CopyScreentoTexture(const ViewPortSize: TGLSize; const TextureTarget: Word = GL_TEXTURE_2D);
 procedure CopyScreentoTexture(const ViewPortSize: TGLSize; const TextureTarget: Word = GL_TEXTURE_2D);
 procedure CopyScreentoTexture2(const ViewPortSize: TGLSize; const TextureTarget: Word = GL_TEXTURE_2D);
 procedure CopyScreentoTexture2(const ViewPortSize: TGLSize; const TextureTarget: Word = GL_TEXTURE_2D);
 function IsFogEnabled(const AFogSupportMode: TGLShaderFogSupport; var rci: TGLRenderContextInfo): Boolean;
 function IsFogEnabled(const AFogSupportMode: TGLShaderFogSupport; var rci: TGLRenderContextInfo): Boolean;
-procedure GetActiveLightsList(const ALightIDs: TGIntegerList);
+procedure GetActiveLightsList(const ALightIDs: TgIntegerList);
 
 
 //------------------------------------------
 //------------------------------------------
 implementation
 implementation
@@ -291,7 +291,7 @@ implementation
 uses
 uses
   GLS.State;
   GLS.State;
 
 
-procedure GetActiveLightsList(const ALightIDs: TGIntegerList);
+procedure GetActiveLightsList(const ALightIDs: TgIntegerList);
 var
 var
   I: Integer;
   I: Integer;
 begin
 begin

+ 2 - 2
Source/GLSL.PhongShader.pas

@@ -29,7 +29,7 @@ uses
 type
 type
   TGLPhongShader = class(TGLCustomAsmShader)
   TGLPhongShader = class(TGLCustomAsmShader)
   private
   private
-    FLightIDs: TGIntegerList;
+    FLightIDs: TgIntegerList;
     FDesignTimeEnabled: Boolean;
     FDesignTimeEnabled: Boolean;
     FAmbientPass: Boolean;
     FAmbientPass: Boolean;
     procedure SetDesignTimeEnabled(const Value: Boolean);
     procedure SetDesignTimeEnabled(const Value: Boolean);
@@ -184,7 +184,7 @@ begin
 
 
     Add('END');
     Add('END');
   end;
   end;
-  FLightIDs := TGIntegerList.Create;
+  FLightIDs := TgIntegerList.Create;
 end;
 end;
 
 
 function TGLPhongShader.ShaderSupported: Boolean;
 function TGLPhongShader.ShaderSupported: Boolean;

+ 1 - 1
Source/GLSL.ProjectedTextures.pas

@@ -27,7 +27,7 @@ uses
   System.Classes,
   System.Classes,
   System.SysUtils,
   System.SysUtils,
 
 
-  GLS.PipelineTransformation,
+  GLScene.PipelineTransform,
   GLS.Scene,
   GLS.Scene,
   GLScene.PersistentClasses,
   GLScene.PersistentClasses,
   GLS.Texture,
   GLS.Texture,

+ 15 - 15
Source/GLSL.ShapeShaders.pas

@@ -323,7 +323,7 @@ type
     FRandomFurLength : Boolean;
     FRandomFurLength : Boolean;
     FColorScale: TGColor;
     FColorScale: TGColor;
     FAmbient: TGColor;
     FAmbient: TGColor;
-    FGravity : TGCoordinates;
+    FGravity : TgCoordinates;
     FLightIntensity : Single;
     FLightIntensity : Single;
     FMainTex  : TGLTexture;
     FMainTex  : TGLTexture;
     FNoiseTex : TGLTexture;
     FNoiseTex : TGLTexture;
@@ -339,7 +339,7 @@ type
     procedure SetNoiseTexName(const Value: TGLLibMaterialName);
     procedure SetNoiseTexName(const Value: TGLLibMaterialName);
     function GetMainTexName: TGLLibMaterialName;
     function GetMainTexName: TGLLibMaterialName;
     procedure SetMainTexName(const Value: TGLLibMaterialName);
     procedure SetMainTexName(const Value: TGLLibMaterialName);
-    procedure SetGravity(APosition:TGCoordinates);
+    procedure SetGravity(APosition:TgCoordinates);
     procedure SetAmbient(AValue: TGColor);
     procedure SetAmbient(AValue: TGColor);
     procedure SetColorScale(AValue: TGColor);
     procedure SetColorScale(AValue: TGColor);
   protected
   protected
@@ -366,7 +366,7 @@ type
     //property BlendEquation : TBlendEquation read FBlendEquation write FBlendEquation default beMin;
     //property BlendEquation : TBlendEquation read FBlendEquation write FBlendEquation default beMin;
     property BlendSrc  : TGLBlendFunction read FBlendSrc write FBlendSrc default bfSrcColor;
     property BlendSrc  : TGLBlendFunction read FBlendSrc write FBlendSrc default bfSrcColor;
     property BlendDst  : TGLBlendFunction read FBlendDst write FBlendDst default bfOneMinusDstColor;
     property BlendDst  : TGLBlendFunction read FBlendDst write FBlendDst default bfOneMinusDstColor;
-    property Gravity : TGCoordinates Read FGravity write setGravity;
+    property Gravity : TgCoordinates Read FGravity write setGravity;
     property LightIntensity : Single read FLightIntensity Write FLightIntensity;
     property LightIntensity : Single read FLightIntensity Write FLightIntensity;
   end;
   end;
 
 
@@ -412,18 +412,18 @@ type
   (* Custom class for a shader that simulate Lattice *)
   (* Custom class for a shader that simulate Lattice *)
   TGLCustomGLSLSimpleLatticeShader = class(TGLCustomGLSLShader)
   TGLCustomGLSLSimpleLatticeShader = class(TGLCustomGLSLShader)
   private
   private
-    FLatticeScale: TGCoordinates2;
-    FLatticeThreshold: TGCoordinates2;
-    procedure SetLatticeScale(const Value: TGCoordinates2);
-    procedure SetLatticeThreshold(const Value: TGCoordinates2);
+    FLatticeScale: TgCoordinates2;
+    FLatticeThreshold: TgCoordinates2;
+    procedure SetLatticeScale(const Value: TgCoordinates2);
+    procedure SetLatticeThreshold(const Value: TgCoordinates2);
   protected
   protected
     procedure DoApply(var rci : TGLRenderContextInfo; Sender : TObject); override;
     procedure DoApply(var rci : TGLRenderContextInfo; Sender : TObject); override;
     function DoUnApply(var rci: TGLRenderContextInfo): Boolean; override;
     function DoUnApply(var rci: TGLRenderContextInfo): Boolean; override;
   public
   public
     constructor Create(AOwner : TComponent); override;
     constructor Create(AOwner : TComponent); override;
     destructor Destroy; override;
     destructor Destroy; override;
-    property LatticeScale: TGCoordinates2 read FLatticeScale write SetLatticeScale;
-    property LatticeThreshold: TGCoordinates2 read FLatticeThreshold write SetLatticeThreshold;
+    property LatticeScale: TgCoordinates2 read FLatticeScale write SetLatticeScale;
+    property LatticeThreshold: TgCoordinates2 read FLatticeThreshold write SetLatticeThreshold;
   end;
   end;
 
 
 (* Custom class for GLSLLatticeShader.
 (* Custom class for GLSLLatticeShader.
@@ -1768,7 +1768,7 @@ begin
   // The Blend Funcs are very important for realistic fur rendering it can vary follow your textures
   // The Blend Funcs are very important for realistic fur rendering it can vary follow your textures
   FBlendSrc := bfOneMinusSrcColor;
   FBlendSrc := bfOneMinusSrcColor;
   FBlendDst := bfOneMinusSrcAlpha;
   FBlendDst := bfOneMinusSrcAlpha;
-  FGravity := TGCoordinates.Create(self);
+  FGravity := TgCoordinates.Create(self);
   FGravity.AsAffineVector := AffinevectorMake(0.0,0.0,0.0);
   FGravity.AsAffineVector := AffinevectorMake(0.0,0.0,0.0);
   FLightIntensity := 2.5;
   FLightIntensity := 2.5;
 end;
 end;
@@ -1937,7 +1937,7 @@ begin
         end;
         end;
   end;
   end;
 
 
-  procedure TGLCustomGLSLFurShader.SetGravity(APosition: TGCoordinates);
+  procedure TGLCustomGLSLFurShader.SetGravity(APosition: TgCoordinates);
   begin
   begin
     FGravity.SetPoint(APosition.DirectX, APosition.DirectY, APosition.DirectZ);
     FGravity.SetPoint(APosition.DirectX, APosition.DirectY, APosition.DirectZ);
   end;
   end;
@@ -2043,8 +2043,8 @@ begin
       Add('} ');
       Add('} ');
     end;
     end;
     // Initial stuff.
     // Initial stuff.
-    FLatticeScale := TGCoordinates2.Create(self);
-    FLatticeThreshold := TGCoordinates2.Create(self);
+    FLatticeScale := TgCoordinates2.Create(self);
+    FLatticeThreshold := TgCoordinates2.Create(self);
 
 
     FLatticeScale.SetPoint2D(10, 40);
     FLatticeScale.SetPoint2D(10, 40);
     FLatticeThreshold.SetPoint2D(0.15, 0.3);
     FLatticeThreshold.SetPoint2D(0.15, 0.3);
@@ -2074,13 +2074,13 @@ begin
   end;
   end;
 
 
   procedure TGLCustomGLSLSimpleLatticeShader.SetLatticeScale
   procedure TGLCustomGLSLSimpleLatticeShader.SetLatticeScale
-    (const Value: TGCoordinates2);
+    (const Value: TgCoordinates2);
   begin
   begin
     FLatticeScale.Assign(Value);
     FLatticeScale.Assign(Value);
   end;
   end;
 
 
   procedure TGLCustomGLSLSimpleLatticeShader.SetLatticeThreshold
   procedure TGLCustomGLSLSimpleLatticeShader.SetLatticeThreshold
-    (const Value: TGCoordinates2);
+    (const Value: TgCoordinates2);
   begin
   begin
     FLatticeThreshold.Assign(Value);
     FLatticeThreshold.Assign(Value);
   end;
   end;

+ 10 - 10
Source/GLSL.TextureShaders.pas

@@ -49,8 +49,8 @@ type
     FNeedToUpdateTextureMatrix: Boolean;
     FNeedToUpdateTextureMatrix: Boolean;
     FTextureMatrixIsUnitary: Boolean;
     FTextureMatrixIsUnitary: Boolean;
     FLibMaterial: TGLLibMaterial;
     FLibMaterial: TGLLibMaterial;
-    FTexOffset: TGCoordinates2;
-    FTexScale: TGCoordinates2;
+    FTexOffset: TgCoordinates2;
+    FTexScale: TgCoordinates2;
     FBlendingMode: TGLBlendingMode;
     FBlendingMode: TGLBlendingMode;
     FSpecular: TGColor;
     FSpecular: TGColor;
     FAmbient: TGColor;
     FAmbient: TGColor;
@@ -68,8 +68,8 @@ type
     procedure SetLibMaterialName(const Value: TGLLibMaterialName);
     procedure SetLibMaterialName(const Value: TGLLibMaterialName);
     procedure SetBlendingMode(const Value: TGLBlendingMode);
     procedure SetBlendingMode(const Value: TGLBlendingMode);
     procedure SetLibMaterial(const Value: TGLLibMaterial);
     procedure SetLibMaterial(const Value: TGLLibMaterial);
-    procedure SetTexOffset(const Value: TGCoordinates2);
-    procedure SetTexScale(const Value: TGCoordinates2);
+    procedure SetTexOffset(const Value: TgCoordinates2);
+    procedure SetTexScale(const Value: TgCoordinates2);
     function GetTextureMatrix: TGLMatrix;
     function GetTextureMatrix: TGLMatrix;
     function GetTextureMatrixIsUnitary: Boolean;
     function GetTextureMatrixIsUnitary: Boolean;
   protected
   protected
@@ -88,8 +88,8 @@ type
     property TextureMatrix: TGLMatrix read GetTextureMatrix;
     property TextureMatrix: TGLMatrix read GetTextureMatrix;
     property TextureMatrixIsUnitary: Boolean read GetTextureMatrixIsUnitary;
     property TextureMatrixIsUnitary: Boolean read GetTextureMatrixIsUnitary;
   published
   published
-    property TexOffset: TGCoordinates2 read FTexOffset write SetTexOffset;
-    property TexScale: TGCoordinates2 read FTexScale write SetTexScale;
+    property TexOffset: TgCoordinates2 read FTexOffset write SetTexOffset;
+    property TexScale: TgCoordinates2 read FTexScale write SetTexScale;
     property BlendingMode: TGLBlendingMode read FBlendingMode write SetBlendingMode;
     property BlendingMode: TGLBlendingMode read FBlendingMode write SetBlendingMode;
     property Emission: TGColor read FEmission write SetEmission;
     property Emission: TGColor read FEmission write SetEmission;
     property Ambient: TGColor read FAmbient write SetAmbient;
     property Ambient: TGColor read FAmbient write SetAmbient;
@@ -340,10 +340,10 @@ begin
   FEmission := TGColor.Create(Self);
   FEmission := TGColor.Create(Self);
   FEmission.OnNotifyChange := OtherNotifychange;
   FEmission.OnNotifyChange := OtherNotifychange;
 
 
-  FTexOffset := TGCoordinates2.CreateInitialized(Self, NullHmgVector, csPoint2d);
+  FTexOffset := TgCoordinates2.CreateInitialized(Self, NullHmgVector, csPoint2d);
   FTexOffset.OnNotifyChange := coordNotifychange;
   FTexOffset.OnNotifyChange := coordNotifychange;
 
 
-  FTexScale := TGCoordinates2.CreateInitialized(Self, XYZHmgVector, csPoint2d);
+  FTexScale := TgCoordinates2.CreateInitialized(Self, XYZHmgVector, csPoint2d);
   FTexScale.OnNotifyChange := coordNotifychange;
   FTexScale.OnNotifyChange := coordNotifychange;
   FNeedToUpdateTextureMatrix := True;
   FNeedToUpdateTextureMatrix := True;
 end;
 end;
@@ -482,13 +482,13 @@ begin
   FSpecular.Assign(Value);
   FSpecular.Assign(Value);
 end;
 end;
 
 
-procedure TGLTextureSharingShaderMaterial.SetTexOffset(const Value: TGCoordinates2);
+procedure TGLTextureSharingShaderMaterial.SetTexOffset(const Value: TgCoordinates2);
 begin
 begin
   FTexOffset.Assign(Value);
   FTexOffset.Assign(Value);
   FNeedToUpdateTextureMatrix := True;
   FNeedToUpdateTextureMatrix := True;
 end;
 end;
 
 
-procedure TGLTextureSharingShaderMaterial.SetTexScale(const Value: TGCoordinates2);
+procedure TGLTextureSharingShaderMaterial.SetTexScale(const Value: TgCoordinates2);
 begin
 begin
   FTexScale.Assign(Value);
   FTexScale.Assign(Value);
   FNeedToUpdateTextureMatrix := True;
   FNeedToUpdateTextureMatrix := True;

+ 1 - 1
Source/GLScene.BaseClasses.pas

@@ -23,7 +23,7 @@ type
   (* Progression event for time-base animations/simulations.
   (* Progression event for time-base animations/simulations.
      deltaTime is the time delta since last progress and newTime is the new
      deltaTime is the time delta since last progress and newTime is the new
      time after the progress event is completed. *)
      time after the progress event is completed. *)
-  TGProgressEvent = procedure(Sender: TObject; const DeltaTime, NewTime: Double) of object;
+  TgProgressEvent = procedure(Sender: TObject; const DeltaTime, NewTime: Double) of object;
 
 
   IGNotifyAble = interface(IInterface)
   IGNotifyAble = interface(IInterface)
     ['{00079A6C-D46E-4126-86EE-F9E2951B4593}']
     ['{00079A6C-D46E-4126-86EE-F9E2951B4593}']

+ 75 - 75
Source/GLScene.Coordinates.pas

@@ -5,7 +5,7 @@ unit GLScene.Coordinates;
 (*
 (*
   Coordinate related classes and functions.
   Coordinate related classes and functions.
   The registered classes are:
   The registered classes are:
-    [TGCoordinates2, TGCoordinates3, TGCoordinates4]
+    [TgCoordinates2, TgCoordinates3, TgCoordinates4]
 *)
 *)
 interface
 interface
 
 
@@ -22,22 +22,22 @@ uses
 
 
 type
 type
 
 
-  (* Identifies the type of data stored within a TGCustomCoordinates.
+  (* Identifies the type of data stored within a TgCustomCoordinates.
      csPoint2D : a simple 2D point (Z=0, W=0)
      csPoint2D : a simple 2D point (Z=0, W=0)
      csPoint : a point (W=1)
      csPoint : a point (W=1)
      csVector : a vector (W=0)
      csVector : a vector (W=0)
      csUnknown : no constraint *)
      csUnknown : no constraint *)
-  TGCoordinatesStyle = (csPoint2D, csPoint, csVector, csUnknown);
+  TgCoordinatesStyle = (csPoint2D, csPoint, csVector, csUnknown);
 
 
   (* Stores any homogeneous vector.
   (* Stores any homogeneous vector.
     This class is basicly a container for a TGLVector, allowing proper use of
     This class is basicly a container for a TGLVector, allowing proper use of
     property editors and editing in the IDE. Vector/Coordinates
     property editors and editing in the IDE. Vector/Coordinates
     manipulation methods are only minimal.
     manipulation methods are only minimal.
     Handles dynamic default values to save resource file space.  *)
     Handles dynamic default values to save resource file space.  *)
-  TGCustomCoordinates = class(TGUpdateAbleObject)
+  TgCustomCoordinates = class(TGUpdateAbleObject)
   private
   private
     FCoords: TGLVector;
     FCoords: TGLVector;
-    FStyle: TGCoordinatesStyle; // NOT Persistent
+    FStyle: TgCoordinatesStyle; // NOT Persistent
     FPDefaultCoords: PGLVector;
     FPDefaultCoords: PGLVector;
     procedure SetAsPoint2D(const Value: TVector2f);
     procedure SetAsPoint2D(const Value: TVector2f);
     procedure SetAsVector(const Value: TGLVector);
     procedure SetAsVector(const Value: TGLVector);
@@ -56,7 +56,7 @@ type
     procedure WriteData(Stream: TStream);
     procedure WriteData(Stream: TStream);
   public
   public
     constructor CreateInitialized(AOwner: TPersistent; const AValue: TGLVector;
     constructor CreateInitialized(AOwner: TPersistent; const AValue: TGLVector;
-      const AStyle: TGCoordinatesStyle = CsUnknown);
+      const AStyle: TgCoordinatesStyle = CsUnknown);
     destructor Destroy; override;
     destructor Destroy; override;
     procedure Assign(Source: TPersistent); override;
     procedure Assign(Source: TPersistent); override;
     procedure WriteToFiler(Writer: TWriter);
     procedure WriteToFiler(Writer: TWriter);
@@ -66,10 +66,10 @@ type
     (* Identifies the coordinates styles.
     (* Identifies the coordinates styles.
       The property is NOT persistent, csUnknown by default, and should be
       The property is NOT persistent, csUnknown by default, and should be
       managed by owner object only (internally).
       managed by owner object only (internally).
-      It is used by the TGCustomCoordinates for internal "assertion" checks
+      It is used by the TgCustomCoordinates for internal "assertion" checks
       to detect "misuses" or "misunderstandings" of what the homogeneous
       to detect "misuses" or "misunderstandings" of what the homogeneous
       coordinates system implies. *)
       coordinates system implies. *)
-    property Style: TGCoordinatesStyle read FStyle write FStyle;
+    property Style: TgCoordinatesStyle read FStyle write FStyle;
     procedure Translate(const TranslationVector: TGLVector); overload;
     procedure Translate(const TranslationVector: TGLVector); overload;
     procedure Translate(const TranslationVector: TAffineVector); overload;
     procedure Translate(const TranslationVector: TAffineVector); overload;
     procedure AddScaledVector(const Factor: Single; const TranslationVector: TGLVector); overload;
     procedure AddScaledVector(const Factor: Single; const TranslationVector: TGLVector); overload;
@@ -124,23 +124,23 @@ type
     property DirectW: Single index 3 read GetDirectCoordinate write SetDirectCoordinate;
     property DirectW: Single index 3 read GetDirectCoordinate write SetDirectCoordinate;
   end;
   end;
 
 
-  // A TGCustomCoordinates that publishes X, Y properties.
-  TGCoordinates2 = class(TGCustomCoordinates)
+  // A TgCustomCoordinates that publishes X, Y properties.
+  TgCoordinates2 = class(TgCustomCoordinates)
   published
   published
     property X stored False;
     property X stored False;
     property Y stored False;
     property Y stored False;
   end;
   end;
 
 
-  // A TGCustomCoordinates that publishes X, Y, Z properties.
-  TGCoordinates3 = class(TGCustomCoordinates)
+  // A TgCustomCoordinates that publishes X, Y, Z properties.
+  TgCoordinates3 = class(TgCustomCoordinates)
   published
   published
     property X stored False;
     property X stored False;
     property Y stored False;
     property Y stored False;
     property Z stored False;
     property Z stored False;
   end;
   end;
 
 
-  // A TGCustomCoordinates that publishes X, Y, Z, W properties.
-  TGCoordinates4 = class(TGCustomCoordinates)
+  // A TgCustomCoordinates that publishes X, Y, Z, W properties.
+  TgCoordinates4 = class(TgCustomCoordinates)
   published
   published
     property X stored False;
     property X stored False;
     property Y stored False;
     property Y stored False;
@@ -148,19 +148,19 @@ type
     property W stored False;
     property W stored False;
   end;
   end;
 
 
-  TGCoordinates = TGCoordinates3;
+  TgCoordinates = TgCoordinates3;
 
 
-  (* Actually Sender should be TGCustomCoordinates, but that would require
+  (* Actually Sender should be TgCustomCoordinates, but that would require
      changes in a some other GLScene units and some other projects that use
      changes in a some other GLScene units and some other projects that use
-     TGCoordinatesUpdateAbleComponent *)
+     TgCoordinatesUpdateAbleComponent *)
   IGCoordinatesUpdateAble = interface(IInterface)
   IGCoordinatesUpdateAble = interface(IInterface)
     ['{ACB98D20-8905-43A7-AFA5-225CF5FA6FF5}']
     ['{ACB98D20-8905-43A7-AFA5-225CF5FA6FF5}']
-    procedure CoordinateChanged(Sender: TGCustomCoordinates);
+    procedure CoordinateChanged(Sender: TgCustomCoordinates);
   end;
   end;
 
 
-  TGCoordinatesUpdateAbleComponent = class(TGUpdateAbleComponent, IGCoordinatesUpdateAble)
+  TgCoordinatesUpdateAbleComponent = class(TGUpdateAbleComponent, IGCoordinatesUpdateAble)
   public
   public
-    procedure CoordinateChanged(Sender: TGCustomCoordinates); virtual; abstract;
+    procedure CoordinateChanged(Sender: TgCustomCoordinates); virtual; abstract;
   end;
   end;
 
 
 (* Calculates the barycentric coordinates for the point p on the triangle
 (* Calculates the barycentric coordinates for the point p on the triangle
@@ -307,7 +307,7 @@ procedure BipolarCylindrical_Cartesian(const u, v, z1, a: double;
   var x, y, z: double; var ierr: integer); overload;
   var x, y, z: double; var ierr: integer); overload;
 
 
 var
 var
-  (* Specifies if TGCustomCoordinates should allocate memory for
+  (* Specifies if TgCustomCoordinates should allocate memory for
     their default values (ie. design-time) or not (run-time) *)
     their default values (ie. design-time) or not (run-time) *)
   VUseDefaultCoordinateSets: Boolean = False;
   VUseDefaultCoordinateSets: Boolean = False;
 
 
@@ -319,25 +319,25 @@ const
   csPoint2DHelp = 'When getting assertions here use one of the SetVector or SetPoint procedures';
   csPoint2DHelp = 'When getting assertions here use one of the SetVector or SetPoint procedures';
 
 
   // ------------------
   // ------------------
-  // ------------------ TGCustomCoordinates ------------------
+  // ------------------ TgCustomCoordinates ------------------
   // ------------------
   // ------------------
 
 
-constructor TGCustomCoordinates.CreateInitialized(AOwner: TPersistent;
-  const AValue: TGLVector; const AStyle: TGCoordinatesStyle = CsUnknown);
+constructor TgCustomCoordinates.CreateInitialized(AOwner: TPersistent;
+  const AValue: TGLVector; const AStyle: TgCoordinatesStyle = CsUnknown);
 begin
 begin
   Create(AOwner);
   Create(AOwner);
   Initialize(AValue);
   Initialize(AValue);
   FStyle := AStyle;
   FStyle := AStyle;
 end;
 end;
 
 
-destructor TGCustomCoordinates.Destroy;
+destructor TgCustomCoordinates.Destroy;
 begin
 begin
   if Assigned(FPDefaultCoords) then
   if Assigned(FPDefaultCoords) then
     Dispose(FPDefaultCoords);
     Dispose(FPDefaultCoords);
   inherited;
   inherited;
 end;
 end;
 
 
-procedure TGCustomCoordinates.Initialize(const Value: TGLVector);
+procedure TgCustomCoordinates.Initialize(const Value: TGLVector);
 begin
 begin
   FCoords := Value;
   FCoords := Value;
   if VUseDefaultCoordinateSets then
   if VUseDefaultCoordinateSets then
@@ -348,15 +348,15 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGCustomCoordinates.Assign(Source: TPersistent);
+procedure TgCustomCoordinates.Assign(Source: TPersistent);
 begin
 begin
-  if Source is TGCustomCoordinates then
-    FCoords := TGCustomCoordinates(Source).FCoords
+  if Source is TgCustomCoordinates then
+    FCoords := TgCustomCoordinates(Source).FCoords
   else
   else
     inherited;
     inherited;
 end;
 end;
 
 
-procedure TGCustomCoordinates.WriteToFiler(Writer: TWriter);
+procedure TgCustomCoordinates.WriteToFiler(Writer: TWriter);
 var
 var
   WriteCoords: Boolean;
   WriteCoords: Boolean;
 begin
 begin
@@ -373,7 +373,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGCustomCoordinates.ReadFromFiler(Reader: TReader);
+procedure TgCustomCoordinates.ReadFromFiler(Reader: TReader);
 var
 var
   N: Integer;
   N: Integer;
 begin
 begin
@@ -391,33 +391,33 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGCustomCoordinates.DefineProperties(Filer: TFiler);
+procedure TgCustomCoordinates.DefineProperties(Filer: TFiler);
 begin
 begin
   inherited;
   inherited;
   Filer.DefineBinaryProperty('Coordinates', ReadData, WriteData,
   Filer.DefineBinaryProperty('Coordinates', ReadData, WriteData,
     not(Assigned(FPDefaultCoords) and VectorEquals(FPDefaultCoords^, FCoords)));
     not(Assigned(FPDefaultCoords) and VectorEquals(FPDefaultCoords^, FCoords)));
 end;
 end;
 
 
-procedure TGCustomCoordinates.ReadData(Stream: TStream);
+procedure TgCustomCoordinates.ReadData(Stream: TStream);
 begin
 begin
   Stream.Read(FCoords, SizeOf(FCoords));
   Stream.Read(FCoords, SizeOf(FCoords));
 end;
 end;
 
 
-procedure TGCustomCoordinates.WriteData(Stream: TStream);
+procedure TgCustomCoordinates.WriteData(Stream: TStream);
 begin
 begin
   Stream.Write(FCoords, SizeOf(FCoords));
   Stream.Write(FCoords, SizeOf(FCoords));
 end;
 end;
 
 
-procedure TGCustomCoordinates.NotifyChange(Sender: TObject);
+procedure TgCustomCoordinates.NotifyChange(Sender: TObject);
 var
 var
   Int: IGCoordinatesUpdateAble;
   Int: IGCoordinatesUpdateAble;
 begin
 begin
   if Supports(Owner, IGCoordinatesUpdateAble, Int) then
   if Supports(Owner, IGCoordinatesUpdateAble, Int) then
-    Int.CoordinateChanged(TGCoordinates(Self));
+    Int.CoordinateChanged(TgCoordinates(Self));
   inherited NotifyChange(Sender);
   inherited NotifyChange(Sender);
 end;
 end;
 
 
-procedure TGCustomCoordinates.Translate(const TranslationVector: TGLVector);
+procedure TgCustomCoordinates.Translate(const TranslationVector: TGLVector);
 begin
 begin
   FCoords.X := FCoords.X + TranslationVector.X;
   FCoords.X := FCoords.X + TranslationVector.X;
   FCoords.Y := FCoords.Y + TranslationVector.Y;
   FCoords.Y := FCoords.Y + TranslationVector.Y;
@@ -425,7 +425,7 @@ begin
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-procedure TGCustomCoordinates.Translate(const TranslationVector
+procedure TgCustomCoordinates.Translate(const TranslationVector
   : TAffineVector);
   : TAffineVector);
 begin
 begin
   FCoords.X := FCoords.X + TranslationVector.X;
   FCoords.X := FCoords.X + TranslationVector.X;
@@ -434,7 +434,7 @@ begin
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-procedure TGCustomCoordinates.AddScaledVector(const Factor: Single;
+procedure TgCustomCoordinates.AddScaledVector(const Factor: Single;
   const TranslationVector: TGLVector);
   const TranslationVector: TGLVector);
 var
 var
   F: Single;
   F: Single;
@@ -444,7 +444,7 @@ begin
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-procedure TGCustomCoordinates.AddScaledVector(const Factor: Single;
+procedure TgCustomCoordinates.AddScaledVector(const Factor: Single;
   const TranslationVector: TAffineVector);
   const TranslationVector: TAffineVector);
 var
 var
   F: Single;
   F: Single;
@@ -454,92 +454,92 @@ begin
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-procedure TGCustomCoordinates.Rotate(const AnAxis: TAffineVector;
+procedure TgCustomCoordinates.Rotate(const AnAxis: TAffineVector;
   AnAngle: Single);
   AnAngle: Single);
 begin
 begin
   RotateVector(FCoords, AnAxis, AnAngle);
   RotateVector(FCoords, AnAxis, AnAngle);
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-procedure TGCustomCoordinates.Rotate(const AnAxis: TGLVector; AnAngle: Single);
+procedure TgCustomCoordinates.Rotate(const AnAxis: TGLVector; AnAngle: Single);
 begin
 begin
   RotateVector(FCoords, AnAxis, AnAngle);
   RotateVector(FCoords, AnAxis, AnAngle);
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-procedure TGCustomCoordinates.Normalize;
+procedure TgCustomCoordinates.Normalize;
 begin
 begin
   NormalizeVector(FCoords);
   NormalizeVector(FCoords);
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-procedure TGCustomCoordinates.Invert;
+procedure TgCustomCoordinates.Invert;
 begin
 begin
   NegateVector(FCoords);
   NegateVector(FCoords);
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-procedure TGCustomCoordinates.Scale(Factor: Single);
+procedure TgCustomCoordinates.Scale(Factor: Single);
 begin
 begin
   ScaleVector(PAffineVector(@FCoords)^, Factor);
   ScaleVector(PAffineVector(@FCoords)^, Factor);
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-function TGCustomCoordinates.VectorLength: Single;
+function TgCustomCoordinates.VectorLength: Single;
 begin
 begin
   Result := GLScene.VectorGeometry.VectorLength(FCoords);
   Result := GLScene.VectorGeometry.VectorLength(FCoords);
 end;
 end;
 
 
-function TGCustomCoordinates.VectorNorm: Single;
+function TgCustomCoordinates.VectorNorm: Single;
 begin
 begin
   Result := GLScene.VectorGeometry.VectorNorm(FCoords);
   Result := GLScene.VectorGeometry.VectorNorm(FCoords);
 end;
 end;
 
 
-function TGCustomCoordinates.MaxXYZ: Single;
+function TgCustomCoordinates.MaxXYZ: Single;
 begin
 begin
   Result := MaxXYZComponent(FCoords);
   Result := MaxXYZComponent(FCoords);
 end;
 end;
 
 
-function TGCustomCoordinates.Equals(const AVector: TGLVector): Boolean;
+function TgCustomCoordinates.Equals(const AVector: TGLVector): Boolean;
 begin
 begin
   Result := VectorEquals(FCoords, AVector);
   Result := VectorEquals(FCoords, AVector);
 end;
 end;
 
 
-procedure TGCustomCoordinates.SetVector(const X, Y: Single; Z: Single = 0);
+procedure TgCustomCoordinates.SetVector(const X, Y: Single; Z: Single = 0);
 begin
 begin
   Assert(FStyle = csVector, csVectorHelp);
   Assert(FStyle = csVector, csVectorHelp);
   GLScene.VectorGeometry.SetVector(FCoords, X, Y, Z);
   GLScene.VectorGeometry.SetVector(FCoords, X, Y, Z);
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-procedure TGCustomCoordinates.SetVector(const V: TAffineVector);
+procedure TgCustomCoordinates.SetVector(const V: TAffineVector);
 begin
 begin
   Assert(FStyle = csVector, csVectorHelp);
   Assert(FStyle = csVector, csVectorHelp);
   GLScene.VectorGeometry.SetVector(FCoords, V);
   GLScene.VectorGeometry.SetVector(FCoords, V);
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-procedure TGCustomCoordinates.SetVector(const V: TGLVector);
+procedure TgCustomCoordinates.SetVector(const V: TGLVector);
 begin
 begin
   Assert(FStyle = csVector, csVectorHelp);
   Assert(FStyle = csVector, csVectorHelp);
   GLScene.VectorGeometry.SetVector(FCoords, V);
   GLScene.VectorGeometry.SetVector(FCoords, V);
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-procedure TGCustomCoordinates.SetVector(const X, Y, Z, W: Single);
+procedure TgCustomCoordinates.SetVector(const X, Y, Z, W: Single);
 begin
 begin
   Assert(FStyle = csVector, csVectorHelp);
   Assert(FStyle = csVector, csVectorHelp);
   GLScene.VectorGeometry.SetVector(FCoords, X, Y, Z, W);
   GLScene.VectorGeometry.SetVector(FCoords, X, Y, Z, W);
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-procedure TGCustomCoordinates.SetDirectCoordinate(const Index: Integer;
+procedure TgCustomCoordinates.SetDirectCoordinate(const Index: Integer;
   const AValue: Single);
   const AValue: Single);
 begin
 begin
   FCoords.V[index] := AValue;
   FCoords.V[index] := AValue;
 end;
 end;
 
 
-procedure TGCustomCoordinates.SetDirectVector(const V: TGLVector);
+procedure TgCustomCoordinates.SetDirectVector(const V: TGLVector);
 begin
 begin
   FCoords.X := V.X;
   FCoords.X := V.X;
   FCoords.Y := V.Y;
   FCoords.Y := V.Y;
@@ -547,7 +547,7 @@ begin
   FCoords.W := V.W;
   FCoords.W := V.W;
 end;
 end;
 
 
-procedure TGCustomCoordinates.SetToZero;
+procedure TgCustomCoordinates.SetToZero;
 begin
 begin
   FCoords.X := 0;
   FCoords.X := 0;
   FCoords.Y := 0;
   FCoords.Y := 0;
@@ -559,61 +559,61 @@ begin
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-procedure TGCustomCoordinates.SetPoint(const X, Y, Z: Single);
+procedure TgCustomCoordinates.SetPoint(const X, Y, Z: Single);
 begin
 begin
   Assert(FStyle = CsPoint, CsPointHelp);
   Assert(FStyle = CsPoint, CsPointHelp);
   MakePoint(FCoords, X, Y, Z);
   MakePoint(FCoords, X, Y, Z);
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-procedure TGCustomCoordinates.SetPoint(const V: TAffineVector);
+procedure TgCustomCoordinates.SetPoint(const V: TAffineVector);
 begin
 begin
   Assert(FStyle = CsPoint, CsPointHelp);
   Assert(FStyle = CsPoint, CsPointHelp);
   MakePoint(FCoords, V);
   MakePoint(FCoords, V);
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-procedure TGCustomCoordinates.SetPoint(const V: TGLVector);
+procedure TgCustomCoordinates.SetPoint(const V: TGLVector);
 begin
 begin
   Assert(FStyle = CsPoint, CsPointHelp);
   Assert(FStyle = CsPoint, CsPointHelp);
   MakePoint(FCoords, V);
   MakePoint(FCoords, V);
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-procedure TGCustomCoordinates.SetPoint2D(const X, Y: Single);
+procedure TgCustomCoordinates.SetPoint2D(const X, Y: Single);
 begin
 begin
   Assert(FStyle = CsPoint2D, CsPoint2DHelp);
   Assert(FStyle = CsPoint2D, CsPoint2DHelp);
   GLScene.VectorGeometry.MakeVector(FCoords, X, Y, 0);
   GLScene.VectorGeometry.MakeVector(FCoords, X, Y, 0);
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-procedure TGCustomCoordinates.SetPoint2D(const Vector: TAffineVector);
+procedure TgCustomCoordinates.SetPoint2D(const Vector: TAffineVector);
 begin
 begin
   Assert(FStyle = CsPoint2D, CsPoint2DHelp);
   Assert(FStyle = CsPoint2D, CsPoint2DHelp);
   MakeVector(FCoords, Vector);
   MakeVector(FCoords, Vector);
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-procedure TGCustomCoordinates.SetPoint2D(const Vector: TGLVector);
+procedure TgCustomCoordinates.SetPoint2D(const Vector: TGLVector);
 begin
 begin
   Assert(FStyle = CsPoint2D, CsPoint2DHelp);
   Assert(FStyle = CsPoint2D, CsPoint2DHelp);
   MakeVector(FCoords, Vector);
   MakeVector(FCoords, Vector);
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-procedure TGCustomCoordinates.SetPoint2D(const Vector: TVector2f);
+procedure TgCustomCoordinates.SetPoint2D(const Vector: TVector2f);
 begin
 begin
   Assert(FStyle = CsPoint2D, CsPoint2DHelp);
   Assert(FStyle = CsPoint2D, CsPoint2DHelp);
   MakeVector(FCoords, Vector.X, Vector.Y, 0);
   MakeVector(FCoords, Vector.X, Vector.Y, 0);
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-function TGCustomCoordinates.AsAddress: PSingle;
+function TgCustomCoordinates.AsAddress: PSingle;
 begin
 begin
   Result := @FCoords;
   Result := @FCoords;
 end;
 end;
 
 
-procedure TGCustomCoordinates.SetAsVector(const Value: TGLVector);
+procedure TgCustomCoordinates.SetAsVector(const Value: TGLVector);
 begin
 begin
   FCoords := Value;
   FCoords := Value;
   case FStyle of
   case FStyle of
@@ -632,7 +632,7 @@ begin
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-procedure TGCustomCoordinates.SetAsAffineVector(const Value: TAffineVector);
+procedure TgCustomCoordinates.SetAsAffineVector(const Value: TAffineVector);
 begin
 begin
   case FStyle of
   case FStyle of
     CsPoint2D:
     CsPoint2D:
@@ -647,7 +647,7 @@ begin
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-procedure TGCustomCoordinates.SetAsPoint2D(const Value: TVector2f);
+procedure TgCustomCoordinates.SetAsPoint2D(const Value: TVector2f);
 begin
 begin
   case FStyle of
   case FStyle of
     CsPoint2D, CsPoint, CsVector:
     CsPoint2D, CsPoint, CsVector:
@@ -663,36 +663,36 @@ begin
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-function TGCustomCoordinates.GetAsAffineVector: TAffineVector;
+function TgCustomCoordinates.GetAsAffineVector: TAffineVector;
 begin
 begin
   GLScene.VectorGeometry.SetVector(Result, FCoords);
   GLScene.VectorGeometry.SetVector(Result, FCoords);
 end;
 end;
 
 
-function TGCustomCoordinates.GetAsPoint2D: TVector2f;
+function TgCustomCoordinates.GetAsPoint2D: TVector2f;
 begin
 begin
   Result.X := FCoords.X;
   Result.X := FCoords.X;
   Result.Y := FCoords.Y;
   Result.Y := FCoords.Y;
 end;
 end;
 
 
-procedure TGCustomCoordinates.SetCoordinate(const AIndex: Integer;
+procedure TgCustomCoordinates.SetCoordinate(const AIndex: Integer;
   const AValue: Single);
   const AValue: Single);
 begin
 begin
   FCoords.V[AIndex] := AValue;
   FCoords.V[AIndex] := AValue;
   NotifyChange(Self);
   NotifyChange(Self);
 end;
 end;
 
 
-function TGCustomCoordinates.GetCoordinate(const AIndex: Integer): Single;
+function TgCustomCoordinates.GetCoordinate(const AIndex: Integer): Single;
 begin
 begin
   Result := FCoords.V[AIndex];
   Result := FCoords.V[AIndex];
 end;
 end;
 
 
-function TGCustomCoordinates.GetDirectCoordinate(
+function TgCustomCoordinates.GetDirectCoordinate(
   const Index: Integer): Single;
   const Index: Integer): Single;
 begin
 begin
   Result := FCoords.V[index]
   Result := FCoords.V[index]
 end;
 end;
 
 
-function TGCustomCoordinates.GetAsString: String;
+function TgCustomCoordinates.GetAsString: String;
 begin
 begin
   case Style of
   case Style of
     CsPoint2D:
     CsPoint2D:
@@ -1179,10 +1179,10 @@ end;
 
 
 initialization //------------------------------------------------------------
 initialization //------------------------------------------------------------
 
 
-RegisterClasses([TGCoordinates2, TGCoordinates3, TGCoordinates4]);
+RegisterClasses([TgCoordinates2, TgCoordinates3, TgCoordinates4]);
 
 
 finalization //--------------------------------------------------------------
 finalization //--------------------------------------------------------------
 
 
-// UnRegisterClasses([TGCoordinates2, TGCoordinates3, TGCoordinates4]);
+// UnRegisterClasses([TgCoordinates2, TgCoordinates3, TgCoordinates4]);
 
 
 end.
 end.

+ 4 - 37
Sourcex/GXS.OpenGL.pas → Source/GLScene.OpenGL4.pas

@@ -1,7 +1,7 @@
 //
 //
 // The graphics engine GXScene https://github.com/glscene
 // The graphics engine GXScene https://github.com/glscene
 //
 //
-unit GXS.OpenGL;
+unit GLScene.OpenGL4;
 
 
 (* -------------------------------------------------------------
 (* -------------------------------------------------------------
  Copyright 1991-1993, Silicon Graphics, Inc.
  Copyright 1991-1993, Silicon Graphics, Inc.
@@ -237,18 +237,6 @@ type
   TGLUNurbsErrorProc = procedure(errorCode: Cardinal); {$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
   TGLUNurbsErrorProc = procedure(errorCode: Cardinal); {$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
 
 
 var
 var
-  GL_VERSION_1_0,
-  GL_VERSION_1_1,
-  GL_VERSION_1_2,
-  GL_VERSION_1_3,
-  GL_VERSION_1_4,
-  GL_VERSION_1_5,
-  GL_VERSION_2_0,
-  GL_VERSION_2_1,
-  GL_VERSION_3_0,
-  GL_VERSION_3_1,
-  GL_VERSION_3_2,
-  GL_VERSION_3_3,
   GL_VERSION_4_0,
   GL_VERSION_4_0,
   GL_VERSION_4_1,
   GL_VERSION_4_1,
   GL_VERSION_4_2,
   GL_VERSION_4_2,
@@ -256,8 +244,6 @@ var
   GL_VERSION_4_4,
   GL_VERSION_4_4,
   GL_VERSION_4_5,
   GL_VERSION_4_5,
   GL_VERSION_4_6,
   GL_VERSION_4_6,
-  GLU_VERSION_1_1,
-  GLU_VERSION_1_2,
   GLU_VERSION_1_3,
   GLU_VERSION_1_3,
   GL_3DFX_multisample,
   GL_3DFX_multisample,
   GL_3DFX_tbuffer,
   GL_3DFX_tbuffer,
@@ -804,7 +790,6 @@ var
   WIN_swap_hint,
   WIN_swap_hint,
 
 
   // GLX
   // GLX
-  GLX_VERSION_1_3,
   GLX_VERSION_1_4,
   GLX_VERSION_1_4,
   GLX_ARB_multisample,
   GLX_ARB_multisample,
   GLX_ARB_fbconfig_float,
   GLX_ARB_fbconfig_float,
@@ -832,7 +817,7 @@ const
   GL_COLOR_BUFFER_BIT = $00004000;
   GL_COLOR_BUFFER_BIT = $00004000;
   GL_TRUE = 1;
   GL_TRUE = 1;
   GL_FALSE = 0;
   GL_FALSE = 0;
-  // BeginMode 
+  // BeginMode
   GL_POINTS = $0000;
   GL_POINTS = $0000;
   GL_LINES = $0001;
   GL_LINES = $0001;
   GL_LINE_LOOP = $0002;
   GL_LINE_LOOP = $0002;
@@ -10313,18 +10298,6 @@ begin
   // determine OpenGL versions supported
   // determine OpenGL versions supported
   Buffer := string(glGetString(GL_VERSION));
   Buffer := string(glGetString(GL_VERSION));
   TrimAndSplitVersionString(Buffer, MajorVersion, MinorVersion);
   TrimAndSplitVersionString(Buffer, MajorVersion, MinorVersion);
-  GL_VERSION_1_0 := True;
-  GL_VERSION_1_1 := IsVersionMet(1, 1, MajorVersion, MinorVersion);
-  GL_VERSION_1_2 := IsVersionMet(1, 2, MajorVersion, MinorVersion);
-  GL_VERSION_1_3 := IsVersionMet(1, 3, MajorVersion, MinorVersion);
-  GL_VERSION_1_4 := IsVersionMet(1, 4, MajorVersion, MinorVersion);
-  GL_VERSION_1_5 := IsVersionMet(1, 5, MajorVersion, MinorVersion);
-  GL_VERSION_2_0 := IsVersionMet(2, 0, MajorVersion, MinorVersion);
-  GL_VERSION_2_1 := IsVersionMet(2, 1, MajorVersion, MinorVersion);
-  GL_VERSION_3_0 := IsVersionMet(3, 0, MajorVersion, MinorVersion);
-  GL_VERSION_3_1 := IsVersionMet(3, 1, MajorVersion, MinorVersion);
-  GL_VERSION_3_2 := IsVersionMet(3, 2, MajorVersion, MinorVersion);
-  GL_VERSION_3_3 := IsVersionMet(3, 3, MajorVersion, MinorVersion);
   GL_VERSION_4_0 := IsVersionMet(4, 0, MajorVersion, MinorVersion);
   GL_VERSION_4_0 := IsVersionMet(4, 0, MajorVersion, MinorVersion);
   GL_VERSION_4_1 := IsVersionMet(4, 1, MajorVersion, MinorVersion);
   GL_VERSION_4_1 := IsVersionMet(4, 1, MajorVersion, MinorVersion);
   GL_VERSION_4_2 := IsVersionMet(4, 2, MajorVersion, MinorVersion);
   GL_VERSION_4_2 := IsVersionMet(4, 2, MajorVersion, MinorVersion);
@@ -10335,8 +10308,6 @@ begin
    // determine GLU versions met
    // determine GLU versions met
    buffer:=String(gluGetString(GLU_VERSION));
    buffer:=String(gluGetString(GLU_VERSION));
    TrimAndSplitVersionString(buffer, majorversion, minorVersion);
    TrimAndSplitVersionString(buffer, majorversion, minorVersion);
-   GLU_VERSION_1_1:=True; // won't load without at least GLU 1.1
-   GLU_VERSION_1_2:=IsVersionMet(1,2,majorVersion,minorVersion);
    GLU_VERSION_1_3:=IsVersionMet(1,3,majorVersion,minorVersion);
    GLU_VERSION_1_3:=IsVersionMet(1,3,majorVersion,minorVersion);
    // check supported OpenGL extensions
    // check supported OpenGL extensions
    Buffer := String(glGetString(GL_EXTENSIONS));
    Buffer := String(glGetString(GL_EXTENSIONS));
@@ -10755,15 +10726,11 @@ begin
   Result:=IsVersionMet(MajorVersion,MinorVersion,GLMajorVersion,GLMinorVersion);
   Result:=IsVersionMet(MajorVersion,MinorVersion,GLMajorVersion,GLMinorVersion);
 end;
 end;
 
 
-//----------------------------------------------------
-initialization
-//----------------------------------------------------
+initialization //-------------------------------------------------------------
 
 
   Set8087CW($133F);
   Set8087CW($133F);
 
 
-//----------------------------------------------------
-finalization
-//----------------------------------------------------
+finalization //---------------------------------------------------------------
 
 
   CloseOpenGL;
   CloseOpenGL;
 
 

+ 48 - 48
Source/GLScene.PersistentClasses.pas

@@ -5,7 +5,7 @@ unit GLScene.PersistentClasses;
 (*
 (*
    Base persistence classes.
    Base persistence classes.
    The registered class is:
    The registered class is:
-     [TGPersistentObjectList]
+     [TgPersistentObjectList]
 
 
    These classes are used in GLScene but are designed for generic purpose.
    These classes are used in GLScene but are designed for generic purpose.
    They implement a slightly different persistence mechanism then that of the VCL,
    They implement a slightly different persistence mechanism then that of the VCL,
@@ -123,7 +123,7 @@ type
     The list can be used in a stack-like fashion with Push & Pop, and can
     The list can be used in a stack-like fashion with Push & Pop, and can
     perform basic boolean set operations.
     perform basic boolean set operations.
     Note: the IndexOf implementation is up to 3 times faster than that of TList *)
     Note: the IndexOf implementation is up to 3 times faster than that of TList *)
-  TGPersistentObjectList = class(TGPersistentObject)
+  TgPersistentObjectList = class(TGPersistentObject)
   private
   private
     FList: PGPointerObjectList;
     FList: PGPointerObjectList;
     FCount: Integer;
     FCount: Integer;
@@ -162,7 +162,7 @@ type
     procedure DeleteAndFreeItems(index: Integer; nbVals: Cardinal);
     procedure DeleteAndFreeItems(index: Integer; nbVals: Cardinal);
     function RemoveAndFree(item: TObject): Integer;
     function RemoveAndFree(item: TObject): Integer;
     property GrowthDelta: integer read FGrowthDelta write FGrowthDelta;
     property GrowthDelta: integer read FGrowthDelta write FGrowthDelta;
-    function Expand: TGPersistentObjectList;
+    function Expand: TgPersistentObjectList;
     property Items[Index: Integer]: TObject read Get write Put; default;
     property Items[Index: Integer]: TObject read Get write Put; default;
     property Count: Integer read FCount write SetCount;
     property Count: Integer read FCount write SetCount;
     property List: PGPointerObjectList read FList;
     property List: PGPointerObjectList read FList;
@@ -186,8 +186,8 @@ type
     procedure Push(item: TObject);
     procedure Push(item: TObject);
     function Pop: TObject;
     function Pop: TObject;
     procedure PopAndFree;
     procedure PopAndFree;
-    function AddObjects(const objectList: TGPersistentObjectList): Integer;
-    procedure RemoveObjects(const objectList: TGPersistentObjectList);
+    function AddObjects(const objectList: TgPersistentObjectList): Integer;
+    procedure RemoveObjects(const objectList: TgPersistentObjectList);
     procedure Sort(compareFunc: TGObjectListSortCompare);
     procedure Sort(compareFunc: TGObjectListSortCompare);
   end;
   end;
 
 
@@ -654,22 +654,22 @@ begin
 end;
 end;
 
 
 // ------------------
 // ------------------
-// ------------------ TGPersistentObjectList ------------------
+// ------------------ TgPersistentObjectList ------------------
 // ------------------
 // ------------------
 
 
-constructor TGPersistentObjectList.Create;
+constructor TgPersistentObjectList.Create;
 begin
 begin
   inherited Create;
   inherited Create;
   FGrowthDelta := cDefaultListGrowthDelta;
   FGrowthDelta := cDefaultListGrowthDelta;
 end;
 end;
 
 
-destructor TGPersistentObjectList.Destroy;
+destructor TgPersistentObjectList.Destroy;
 begin
 begin
   Clear;
   Clear;
   inherited Destroy;
   inherited Destroy;
 end;
 end;
 
 
-function TGPersistentObjectList.Add(const item: TObject): Integer;
+function TgPersistentObjectList.Add(const item: TObject): Integer;
 begin
 begin
   Result := FCount;
   Result := FCount;
   if Result = FCapacity then
   if Result = FCapacity then
@@ -678,7 +678,7 @@ begin
   Inc(FCount);
   Inc(FCount);
 end;
 end;
 
 
-procedure TGPersistentObjectList.AddNils(nbVals: Cardinal);
+procedure TgPersistentObjectList.AddNils(nbVals: Cardinal);
 begin
 begin
   if Integer(nbVals) + Count > Capacity then
   if Integer(nbVals) + Count > Capacity then
     SetCapacity(Integer(nbVals) + Count);
     SetCapacity(Integer(nbVals) + Count);
@@ -686,7 +686,7 @@ begin
   FCount := FCount + Integer(nbVals);
   FCount := FCount + Integer(nbVals);
 end;
 end;
 
 
-function TGPersistentObjectList.AddObjects(const objectList: TGPersistentObjectList): Integer;
+function TgPersistentObjectList.AddObjects(const objectList: TgPersistentObjectList): Integer;
 begin
 begin
   if Assigned(objectList) then
   if Assigned(objectList) then
   begin
   begin
@@ -699,7 +699,7 @@ begin
     Result := 0;
     Result := 0;
 end;
 end;
 
 
-procedure TGPersistentObjectList.RemoveObjects(const objectList: TGPersistentObjectList);
+procedure TgPersistentObjectList.RemoveObjects(const objectList: TgPersistentObjectList);
 var
 var
   i: Integer;
   i: Integer;
 begin
 begin
@@ -707,7 +707,7 @@ begin
     Remove(objectList[i]);
     Remove(objectList[i]);
 end;
 end;
 
 
-procedure TGPersistentObjectList.Clear;
+procedure TgPersistentObjectList.Clear;
 begin
 begin
   if Assigned(Self) and Assigned(FList) then
   if Assigned(Self) and Assigned(FList) then
   begin
   begin
@@ -716,7 +716,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGPersistentObjectList.Delete(index: Integer);
+procedure TgPersistentObjectList.Delete(index: Integer);
 begin
 begin
 {$IFOPT R+}
 {$IFOPT R+}
   if Cardinal(Index) >= Cardinal(FCount) then
   if Cardinal(Index) >= Cardinal(FCount) then
@@ -727,7 +727,7 @@ begin
     System.Move(FList[index + 1], FList[index], (FCount - index) * SizeOf(TObject));
     System.Move(FList[index + 1], FList[index], (FCount - index) * SizeOf(TObject));
 end;
 end;
 
 
-procedure TGPersistentObjectList.DeleteItems(index: Integer; nbVals: Cardinal);
+procedure TgPersistentObjectList.DeleteItems(index: Integer; nbVals: Cardinal);
 begin
 begin
 {$IFOPT R+}
 {$IFOPT R+}
   Assert(Cardinal(index) < Cardinal(FCount));
   Assert(Cardinal(index) < Cardinal(FCount));
@@ -744,7 +744,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGPersistentObjectList.Exchange(index1, index2: Integer);
+procedure TgPersistentObjectList.Exchange(index1, index2: Integer);
 var
 var
   item: TObject;
   item: TObject;
   locList: PGPointerObjectList;
   locList: PGPointerObjectList;
@@ -760,14 +760,14 @@ begin
   locList^[index2] := item;
   locList^[index2] := item;
 end;
 end;
 
 
-function TGPersistentObjectList.Expand: TGPersistentObjectList;
+function TgPersistentObjectList.Expand: TgPersistentObjectList;
 begin
 begin
   if FCount = FCapacity then
   if FCount = FCapacity then
     SetCapacity(FCapacity + FGrowthDelta);
     SetCapacity(FCapacity + FGrowthDelta);
   Result := Self;
   Result := Self;
 end;
 end;
 
 
-function TGPersistentObjectList.GetFirst: TObject;
+function TgPersistentObjectList.GetFirst: TObject;
 begin
 begin
 {$IFOPT R+}
 {$IFOPT R+}
   if Cardinal(FCount) = 0 then
   if Cardinal(FCount) = 0 then
@@ -776,7 +776,7 @@ begin
   Result := FList^[0];
   Result := FList^[0];
 end;
 end;
 
 
-procedure TGPersistentObjectList.SetFirst(item: TObject);
+procedure TgPersistentObjectList.SetFirst(item: TObject);
 begin
 begin
 {$IFOPT R+}
 {$IFOPT R+}
   if Cardinal(FCount) = 0 then
   if Cardinal(FCount) = 0 then
@@ -785,12 +785,12 @@ begin
   FList^[0] := item;
   FList^[0] := item;
 end;
 end;
 
 
-procedure TGPersistentObjectList.Error;
+procedure TgPersistentObjectList.Error;
 begin
 begin
   raise EListError.Create(strListIndexError);
   raise EListError.Create(strListIndexError);
 end;
 end;
 
 
-function TGPersistentObjectList.Get(Index: Integer): TObject;
+function TgPersistentObjectList.Get(Index: Integer): TObject;
 begin
 begin
 {$IFOPT R+}
 {$IFOPT R+}
   if Cardinal(Index) >= Cardinal(FCount) then
   if Cardinal(Index) >= Cardinal(FCount) then
@@ -801,7 +801,7 @@ end;
 
 
 // IndexOf
 // IndexOf
 //
 //
-function TGPersistentObjectList.IndexOf(Item: TObject): Integer;
+function TgPersistentObjectList.IndexOf(Item: TObject): Integer;
 var
 var
   I: Integer;
   I: Integer;
 begin
 begin
@@ -819,7 +819,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGPersistentObjectList.Insert(index: Integer; item: TObject);
+procedure TgPersistentObjectList.Insert(index: Integer; item: TObject);
 begin
 begin
 {$IFOPT R+}
 {$IFOPT R+}
   if Cardinal(index) > Cardinal(FCount) then
   if Cardinal(index) > Cardinal(FCount) then
@@ -834,7 +834,7 @@ begin
   Inc(FCount);
   Inc(FCount);
 end;
 end;
 
 
-procedure TGPersistentObjectList.InsertNils(index: Integer; nbVals: Cardinal);
+procedure TgPersistentObjectList.InsertNils(index: Integer; nbVals: Cardinal);
 var
 var
   nc: Integer;
   nc: Integer;
 begin
 begin
@@ -854,7 +854,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-function TGPersistentObjectList.GetLast: TObject;
+function TgPersistentObjectList.GetLast: TObject;
 begin
 begin
 {$IFOPT R+}
 {$IFOPT R+}
   if Cardinal(FCount) = 0 then
   if Cardinal(FCount) = 0 then
@@ -863,7 +863,7 @@ begin
   Result := FList^[FCount - 1];
   Result := FList^[FCount - 1];
 end;
 end;
 
 
-procedure TGPersistentObjectList.SetLast(item: TObject);
+procedure TgPersistentObjectList.SetLast(item: TObject);
 begin
 begin
 {$IFOPT R+}
 {$IFOPT R+}
   if Cardinal(FCount) = 0 then
   if Cardinal(FCount) = 0 then
@@ -872,7 +872,7 @@ begin
   FList^[FCount - 1] := item;
   FList^[FCount - 1] := item;
 end;
 end;
 
 
-procedure TGPersistentObjectList.Move(CurIndex, NewIndex: Integer);
+procedure TgPersistentObjectList.Move(CurIndex, NewIndex: Integer);
 var
 var
   item: Pointer;
   item: Pointer;
 begin
 begin
@@ -899,7 +899,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGPersistentObjectList.Put(Index: Integer; Item: TObject);
+procedure TgPersistentObjectList.Put(Index: Integer; Item: TObject);
 begin
 begin
 {$IFOPT R+}
 {$IFOPT R+}
   if Cardinal(Index) >= Cardinal(FCount) then
   if Cardinal(Index) >= Cardinal(FCount) then
@@ -908,14 +908,14 @@ begin
   FList^[Index] := Item;
   FList^[Index] := Item;
 end;
 end;
 
 
-function TGPersistentObjectList.Remove(item: TObject): Integer;
+function TgPersistentObjectList.Remove(item: TObject): Integer;
 begin
 begin
   Result := IndexOf(item);
   Result := IndexOf(item);
   if Result >= 0 then
   if Result >= 0 then
     Delete(Result);
     Delete(Result);
 end;
 end;
 
 
-procedure TGPersistentObjectList.Pack;
+procedure TgPersistentObjectList.Pack;
 var
 var
   i, j, n: Integer;
   i, j, n: Integer;
   p: PGPointerObjectList;
   p: PGPointerObjectList;
@@ -945,7 +945,7 @@ begin
   SetCount(n + 1);
   SetCount(n + 1);
 end;
 end;
 
 
-procedure TGPersistentObjectList.SetCapacity(newCapacity: Integer);
+procedure TgPersistentObjectList.SetCapacity(newCapacity: Integer);
 begin
 begin
   if newCapacity <> FCapacity then
   if newCapacity <> FCapacity then
   begin
   begin
@@ -956,13 +956,13 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGPersistentObjectList.RequiredCapacity(aCapacity: Integer);
+procedure TgPersistentObjectList.RequiredCapacity(aCapacity: Integer);
 begin
 begin
   if FCapacity < aCapacity then
   if FCapacity < aCapacity then
     SetCapacity(aCapacity);
     SetCapacity(aCapacity);
 end;
 end;
 
 
-procedure TGPersistentObjectList.SetCount(newCount: Integer);
+procedure TgPersistentObjectList.SetCount(newCount: Integer);
 begin
 begin
   if newCount > FCapacity then
   if newCount > FCapacity then
     SetCapacity(newCount);
     SetCapacity(newCount);
@@ -971,7 +971,7 @@ begin
   FCount := NewCount;
   FCount := NewCount;
 end;
 end;
 
 
-procedure TGPersistentObjectList.DeleteAndFree(index: Integer);
+procedure TgPersistentObjectList.DeleteAndFree(index: Integer);
 var
 var
   obj: TObject;
   obj: TObject;
 begin
 begin
@@ -980,7 +980,7 @@ begin
   obj.Free;
   obj.Free;
 end;
 end;
 
 
-procedure TGPersistentObjectList.DeleteAndFreeItems(index: Integer; nbVals: Cardinal);
+procedure TgPersistentObjectList.DeleteAndFreeItems(index: Integer; nbVals: Cardinal);
 var
 var
   i, n: Integer;
   i, n: Integer;
 begin
 begin
@@ -995,7 +995,7 @@ begin
   DeleteItems(index, nbVals);
   DeleteItems(index, nbVals);
 end;
 end;
 
 
-function TGPersistentObjectList.RemoveAndFree(item: TObject): Integer;
+function TgPersistentObjectList.RemoveAndFree(item: TObject): Integer;
 begin
 begin
   Result := IndexOf(item);
   Result := IndexOf(item);
   if Result >= 0 then
   if Result >= 0 then
@@ -1005,7 +1005,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGPersistentObjectList.DoClean;
+procedure TgPersistentObjectList.DoClean;
 var
 var
   i: Integer;
   i: Integer;
 begin
 begin
@@ -1019,13 +1019,13 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGPersistentObjectList.Clean;
+procedure TgPersistentObjectList.Clean;
 begin
 begin
   DoClean;
   DoClean;
   Clear;
   Clear;
 end;
 end;
 
 
-procedure TGPersistentObjectList.CleanFree;
+procedure TgPersistentObjectList.CleanFree;
 begin
 begin
   if Self <> nil then
   if Self <> nil then
   begin
   begin
@@ -1034,7 +1034,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGPersistentObjectList.WriteToFiler(writer: TGVirtualWriter);
+procedure TgPersistentObjectList.WriteToFiler(writer: TGVirtualWriter);
 (*
 (*
    Object List Filer Format :
    Object List Filer Format :
       Integer (Version)
       Integer (Version)
@@ -1096,7 +1096,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGPersistentObjectList.ReadFromFilerWithEvent(reader: TGVirtualReader; afterSenderObjectCreated: TNotifyEvent);
+procedure TgPersistentObjectList.ReadFromFilerWithEvent(reader: TGVirtualReader; afterSenderObjectCreated: TNotifyEvent);
 var
 var
   obj: TGPersistentObject;
   obj: TGPersistentObject;
   m: TGPersistentObjectClass;
   m: TGPersistentObjectClass;
@@ -1155,22 +1155,22 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGPersistentObjectList.ReadFromFiler(reader: TGVirtualReader);
+procedure TgPersistentObjectList.ReadFromFiler(reader: TGVirtualReader);
 begin
 begin
   ReadFromFilerWithEvent(reader, AfterObjectCreatedByReader);
   ReadFromFilerWithEvent(reader, AfterObjectCreatedByReader);
 end;
 end;
 
 
-procedure TGPersistentObjectList.AfterObjectCreatedByReader(Sender: TObject);
+procedure TgPersistentObjectList.AfterObjectCreatedByReader(Sender: TObject);
 begin
 begin
   // nothing
   // nothing
 end;
 end;
 
 
-procedure TGPersistentObjectList.Push(item: TObject);
+procedure TgPersistentObjectList.Push(item: TObject);
 begin
 begin
   Add(item);
   Add(item);
 end;
 end;
 
 
-function TGPersistentObjectList.Pop: TObject;
+function TgPersistentObjectList.Pop: TObject;
 begin
 begin
   if FCount > 0 then
   if FCount > 0 then
   begin
   begin
@@ -1181,7 +1181,7 @@ begin
     Result := nil;
     Result := nil;
 end;
 end;
 
 
-procedure TGPersistentObjectList.PopAndFree;
+procedure TgPersistentObjectList.PopAndFree;
 begin
 begin
   Pop.Free;
   Pop.Free;
 end;
 end;
@@ -1216,7 +1216,7 @@ begin
   until I >= R;
   until I >= R;
 end;
 end;
 
 
-procedure TGPersistentObjectList.Sort(compareFunc: TGObjectListSortCompare);
+procedure TgPersistentObjectList.Sort(compareFunc: TGObjectListSortCompare);
 begin
 begin
   if Count > 1 then
   if Count > 1 then
     POListQuickSort(FList, 0, Count - 1, compareFunc);
     POListQuickSort(FList, 0, Count - 1, compareFunc);
@@ -1805,6 +1805,6 @@ end;
 initialization // -------------------------------------------------------------
 initialization // -------------------------------------------------------------
 
 
 	// class registrations
 	// class registrations
-  RegisterClass(TGPersistentObjectList);
+  RegisterClass(TgPersistentObjectList);
 
 
 end.
 end.

+ 35 - 35
Source/GLS.PipelineTransformation.pas → Source/GLScene.PipelineTransform.pas

@@ -1,7 +1,7 @@
 //
 //
 // The graphics engine GLScene https://github.com/glscene
 // The graphics engine GLScene https://github.com/glscene
 //
 //
-unit GLS.PipelineTransformation;
+unit GLScene.PipelineTransform;
 
 
 (* Pipeline transformations *)
 (* Pipeline transformations *)
 
 
@@ -20,7 +20,7 @@ const
   MAX_MATRIX_STACK_DEPTH = 128;
   MAX_MATRIX_STACK_DEPTH = 128;
 
 
 type
 type
-  TGLPipelineTransformationState =
+  TgPipelineTransformationState =
   (
   (
     trsModelViewChanged,
     trsModelViewChanged,
     trsInvModelViewChanged,
     trsInvModelViewChanged,
@@ -29,15 +29,15 @@ type
     trsViewProjChanged,
     trsViewProjChanged,
     trsFrustum
     trsFrustum
   );
   );
-  TGLPipelineTransformationStates = set of TGLPipelineTransformationState;
+  TgPipelineTransformationStates = set of TgPipelineTransformationState;
 
 
 const
 const
   cAllStatesChanged = [trsModelViewChanged, trsInvModelViewChanged, trsInvModelChanged, trsViewProjChanged, trsNormalModelChanged, trsFrustum];
   cAllStatesChanged = [trsModelViewChanged, trsInvModelViewChanged, trsInvModelChanged, trsViewProjChanged, trsNormalModelChanged, trsFrustum];
 
 
 type
 type
-  PTransformationRec = ^TTransformationRec;
-  TTransformationRec = record
-    FStates: TGLPipelineTransformationStates;
+  PgTransformationRec = ^TgTransformationRec;
+  TgTransformationRec = record
+    FStates: TgPipelineTransformationStates;
     FModelMatrix: TGLMatrix;
     FModelMatrix: TGLMatrix;
     FViewMatrix: TGLMatrix;
     FViewMatrix: TGLMatrix;
     FProjectionMatrix: TGLMatrix;
     FProjectionMatrix: TGLMatrix;
@@ -50,14 +50,14 @@ type
   end;
   end;
 
 
 type
 type
-  TOnMatricesPush = procedure() of object;
+  TgOnMatricesPush = procedure() of object;
 
 
-  TGLTransformation = class(TObject)
+  TgTransformation = class(TObject)
   private
   private
     FStackPos: Integer;
     FStackPos: Integer;
-    FStack: array of TTransformationRec;
+    FStack: array of TgTransformationRec;
     FLoadMatricesEnabled: Boolean;
     FLoadMatricesEnabled: Boolean;
-    FOnPush: TOnMatricesPush;
+    FOnPush: TGOnMatricesPush;
     function GetModelMatrix: PGLMatrix; inline;
     function GetModelMatrix: PGLMatrix; inline;
     function GetViewMatrix: PGLMatrix; inline;
     function GetViewMatrix: PGLMatrix; inline;
     function GetProjectionMatrix: PGLMatrix; inline;
     function GetProjectionMatrix: PGLMatrix; inline;
@@ -71,18 +71,18 @@ type
     procedure LoadModelViewMatrix; inline;
     procedure LoadModelViewMatrix; inline;
     procedure LoadProjectionMatrix; inline;
     procedure LoadProjectionMatrix; inline;
     procedure DoMatricesLoaded; inline;
     procedure DoMatricesLoaded; inline;
-    property OnPush: TOnMatricesPush read FOnPush write FOnPush;
+    property OnPush: TgOnMatricesPush read FOnPush write FOnPush;
   public
   public
     constructor Create;
     constructor Create;
     procedure SetModelMatrix(const AMatrix: TGLMatrix); inline;
     procedure SetModelMatrix(const AMatrix: TGLMatrix); inline;
     procedure SetViewMatrix(const AMatrix: TGLMatrix); inline;
     procedure SetViewMatrix(const AMatrix: TGLMatrix); inline;
     procedure SetProjectionMatrix(const AMatrix: TGLMatrix); inline;
     procedure SetProjectionMatrix(const AMatrix: TGLMatrix); inline;
     procedure IdentityAll; inline;
     procedure IdentityAll; inline;
-    procedure Push(AValue: PTransformationRec); overload;
+    procedure Push(AValue: PGTransformationRec); overload;
     procedure Push(); overload; inline;
     procedure Push(); overload; inline;
     procedure Pop;
     procedure Pop;
     procedure ReplaceFromStack;
     procedure ReplaceFromStack;
-    function StackTop: TTransformationRec; inline;
+    function StackTop: TGTransformationRec; inline;
     property ModelMatrix: PGLMatrix read GetModelMatrix;
     property ModelMatrix: PGLMatrix read GetModelMatrix;
     property ViewMatrix: PGLMatrix read GetViewMatrix;
     property ViewMatrix: PGLMatrix read GetViewMatrix;
     property ProjectionMatrix: PGLMatrix read GetProjectionMatrix;
     property ProjectionMatrix: PGLMatrix read GetProjectionMatrix;
@@ -97,21 +97,21 @@ type
 
 
 implementation //------------------------------------------------------------
 implementation //------------------------------------------------------------
 
 
-constructor TGLTransformation.Create;
+constructor TGTransformation.Create;
 begin
 begin
   FStackPos := 0;
   FStackPos := 0;
   SetLength(FStack, MAX_MATRIX_STACK_DEPTH);
   SetLength(FStack, MAX_MATRIX_STACK_DEPTH);
   IdentityAll;
   IdentityAll;
 end;
 end;
 
 
-procedure TGLTransformation.LoadProjectionMatrix;
+procedure TGTransformation.LoadProjectionMatrix;
 begin
 begin
   glMatrixMode(GL_PROJECTION);
   glMatrixMode(GL_PROJECTION);
   glLoadMatrixf(@FStack[FStackPos].FProjectionMatrix);
   glLoadMatrixf(@FStack[FStackPos].FProjectionMatrix);
   glMatrixMode(GL_MODELVIEW);
   glMatrixMode(GL_MODELVIEW);
 end;
 end;
 
 
-function TGLTransformation.GetModelViewMatrix: PGLMatrix;
+function TGTransformation.GetModelViewMatrix: PGLMatrix;
 begin
 begin
   if trsModelViewChanged in FStack[FStackPos].FStates then
   if trsModelViewChanged in FStack[FStackPos].FStates then
   begin
   begin
@@ -122,12 +122,12 @@ begin
   Result := @FStack[FStackPos].FModelViewMatrix;
   Result := @FStack[FStackPos].FModelViewMatrix;
 end;
 end;
 
 
-procedure TGLTransformation.LoadModelViewMatrix;
+procedure TGTransformation.LoadModelViewMatrix;
 begin
 begin
   glLoadMatrixf(PGLFloat(GetModelViewMatrix));
   glLoadMatrixf(PGLFloat(GetModelViewMatrix));
 end;
 end;
 
 
-procedure TGLTransformation.IdentityAll;
+procedure TGTransformation.IdentityAll;
 begin
 begin
   with FStack[FStackPos] do
   with FStack[FStackPos] do
   begin
   begin
@@ -143,13 +143,13 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGLTransformation.DoMatricesLoaded;
+procedure TGTransformation.DoMatricesLoaded;
 begin
 begin
   if Assigned(FOnPush) then
   if Assigned(FOnPush) then
     FOnPush();
     FOnPush();
 end;
 end;
 
 
-procedure TGLTransformation.Push;
+procedure TGTransformation.Push;
 var
 var
   prevPos: Integer;
   prevPos: Integer;
 begin
 begin
@@ -158,7 +158,7 @@ begin
   FStack[FStackPos] := FStack[prevPos];
   FStack[FStackPos] := FStack[prevPos];
 end;
 end;
 
 
-procedure TGLTransformation.Push(AValue: PTransformationRec);
+procedure TGTransformation.Push(AValue: PGTransformationRec);
 var
 var
   prevPos: Integer;
   prevPos: Integer;
 begin
 begin
@@ -186,7 +186,7 @@ begin
     FStack[FStackPos] := FStack[prevPos];
     FStack[FStackPos] := FStack[prevPos];
 end;
 end;
 
 
-procedure TGLTransformation.Pop;
+procedure TGTransformation.Pop;
 begin
 begin
   {$IFDEF USE_LOGGING}
   {$IFDEF USE_LOGGING}
   if FStackPos = 0 then
   if FStackPos = 0 then
@@ -204,7 +204,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGLTransformation.ReplaceFromStack;
+procedure TGTransformation.ReplaceFromStack;
 var
 var
   prevPos: Integer;
   prevPos: Integer;
 begin
 begin
@@ -227,22 +227,22 @@ begin
   end;
   end;
 end;
 end;
 
 
-function TGLTransformation.GetModelMatrix: PGLMatrix;
+function TGTransformation.GetModelMatrix: PGLMatrix;
 begin
 begin
   Result := @FStack[FStackPos].FModelMatrix;
   Result := @FStack[FStackPos].FModelMatrix;
 end;
 end;
 
 
-function TGLTransformation.GetViewMatrix: PGLMatrix;
+function TGTransformation.GetViewMatrix: PGLMatrix;
 begin
 begin
   Result := @FStack[FStackPos].FViewMatrix;
   Result := @FStack[FStackPos].FViewMatrix;
 end;
 end;
 
 
-function TGLTransformation.GetProjectionMatrix: PGLMatrix;
+function TGTransformation.GetProjectionMatrix: PGLMatrix;
 begin
 begin
   Result := @FStack[FStackPos].FProjectionMatrix;
   Result := @FStack[FStackPos].FProjectionMatrix;
 end;
 end;
 
 
-procedure TGLTransformation.SetModelMatrix(const AMatrix: TGLMatrix);
+procedure TGTransformation.SetModelMatrix(const AMatrix: TGLMatrix);
 begin
 begin
   FStack[FStackPos].FModelMatrix := AMatrix;
   FStack[FStackPos].FModelMatrix := AMatrix;
   FStack[FStackPos].FStates := FStack[FStackPos].FStates +
   FStack[FStackPos].FStates := FStack[FStackPos].FStates +
@@ -251,7 +251,7 @@ begin
     LoadModelViewMatrix;
     LoadModelViewMatrix;
 end;
 end;
 
 
-procedure TGLTransformation.SetViewMatrix(const AMatrix: TGLMatrix);
+procedure TGTransformation.SetViewMatrix(const AMatrix: TGLMatrix);
 begin
 begin
   FStack[FStackPos].FViewMatrix:= AMatrix;
   FStack[FStackPos].FViewMatrix:= AMatrix;
   FStack[FStackPos].FStates := FStack[FStackPos].FStates +
   FStack[FStackPos].FStates := FStack[FStackPos].FStates +
@@ -260,12 +260,12 @@ begin
     LoadModelViewMatrix;
     LoadModelViewMatrix;
 end;
 end;
 
 
-function TGLTransformation.StackTop: TTransformationRec;
+function TGTransformation.StackTop: TGTransformationRec;
 begin
 begin
   Result := FStack[FStackPos];
   Result := FStack[FStackPos];
 end;
 end;
 
 
-procedure TGLTransformation.SetProjectionMatrix(const AMatrix: TGLMatrix);
+procedure TGTransformation.SetProjectionMatrix(const AMatrix: TGLMatrix);
 begin
 begin
   FStack[FStackPos].FProjectionMatrix := AMatrix;
   FStack[FStackPos].FProjectionMatrix := AMatrix;
   FStack[FStackPos].FStates := FStack[FStackPos].FStates +
   FStack[FStackPos].FStates := FStack[FStackPos].FStates +
@@ -275,7 +275,7 @@ begin
 end;
 end;
 
 
 
 
-function TGLTransformation.GetInvModelViewMatrix: PGLMatrix;
+function TGTransformation.GetInvModelViewMatrix: PGLMatrix;
 begin
 begin
   if trsInvModelViewChanged in FStack[FStackPos].FStates then
   if trsInvModelViewChanged in FStack[FStackPos].FStates then
   begin
   begin
@@ -286,7 +286,7 @@ begin
   Result := @FStack[FStackPos].FInvModelViewMatrix;
   Result := @FStack[FStackPos].FInvModelViewMatrix;
 end;
 end;
 
 
-function TGLTransformation.GetInvModelMatrix: PGLMatrix;
+function TGTransformation.GetInvModelMatrix: PGLMatrix;
 begin
 begin
   if trsInvModelChanged in FStack[FStackPos].FStates then
   if trsInvModelChanged in FStack[FStackPos].FStates then
   begin
   begin
@@ -296,7 +296,7 @@ begin
   Result := @FStack[FStackPos].FInvModelMatrix;
   Result := @FStack[FStackPos].FInvModelMatrix;
 end;
 end;
 
 
-function TGLTransformation.GetNormalModelMatrix: PAffineMatrix;
+function TGTransformation.GetNormalModelMatrix: PAffineMatrix;
 var
 var
   M: TGLMatrix;
   M: TGLMatrix;
 begin
 begin
@@ -310,7 +310,7 @@ begin
   Result := @FStack[FStackPos].FNormalModelMatrix;
   Result := @FStack[FStackPos].FNormalModelMatrix;
 end;
 end;
 
 
-function TGLTransformation.GetViewProjectionMatrix: PGLMatrix;
+function TGTransformation.GetViewProjectionMatrix: PGLMatrix;
 begin
 begin
   if trsViewProjChanged in FStack[FStackPos].FStates then
   if trsViewProjChanged in FStack[FStackPos].FStates then
   begin
   begin
@@ -321,7 +321,7 @@ begin
   Result := @FStack[FStackPos].FViewProjectionMatrix;
   Result := @FStack[FStackPos].FViewProjectionMatrix;
 end;
 end;
 
 
-function TGLTransformation.GetFrustum: TFrustum;
+function TGTransformation.GetFrustum: TFrustum;
 begin
 begin
   if trsFrustum in FStack[FStackPos].FStates then
   if trsFrustum in FStack[FStackPos].FStates then
   begin
   begin

+ 37 - 37
Source/GLScene.VectorLists.pas

@@ -239,7 +239,7 @@ type
 
 
   (*  A list of Integers. Similar to TList, but using TTexPoint as items.
   (*  A list of Integers. Similar to TList, but using TTexPoint as items.
      The list has stack-like push/pop methods. *)
      The list has stack-like push/pop methods. *)
-  TGIntegerList = class(TGBaseList)
+  TgIntegerList = class(TGBaseList)
   private
   private
     FList: PIntegerArray;
     FList: PIntegerArray;
   protected
   protected
@@ -253,7 +253,7 @@ type
     function AddNC(const item: Integer): Integer; overload; inline;
     function AddNC(const item: Integer): Integer; overload; inline;
     procedure Add(const i1, i2: Integer); overload; inline;
     procedure Add(const i1, i2: Integer); overload; inline;
     procedure Add(const i1, i2, i3: Integer); overload; inline;
     procedure Add(const i1, i2, i3: Integer); overload; inline;
-    procedure Add(const AList: TGIntegerList); overload; inline;
+    procedure Add(const AList: TgIntegerList); overload; inline;
     procedure Push(const Val: Integer); inline;
     procedure Push(const Val: Integer); inline;
     function Pop: Integer; inline;
     function Pop: Integer; inline;
     procedure Insert(Index: Integer; const item: Integer); inline;
     procedure Insert(Index: Integer; const item: Integer); inline;
@@ -266,7 +266,7 @@ type
     // Add n integers at the address starting at (and including) first
     // Add n integers at the address starting at (and including) first
     procedure AddIntegers(const First: PInteger; n: Integer); overload;
     procedure AddIntegers(const First: PInteger; n: Integer); overload;
     // Add all integers from aList into the list
     // Add all integers from aList into the list
-    procedure AddIntegers(const aList: TGIntegerList); overload;
+    procedure AddIntegers(const aList: TgIntegerList); overload;
     // Add all integers from anArray into the list
     // Add all integers from anArray into the list
     procedure AddIntegers(const anArray: array of Integer); overload;
     procedure AddIntegers(const anArray: array of Integer); overload;
     // Returns the minimum integer item, zero if list is empty
     // Returns the minimum integer item, zero if list is empty
@@ -506,7 +506,7 @@ procedure QuickSortLists(startIndex, endIndex: Integer; refList: TGSingleList; o
 procedure QuickSortLists(startIndex, endIndex: Integer; refList: TGSingleList; objList: TGBaseList); overload;
 procedure QuickSortLists(startIndex, endIndex: Integer; refList: TGSingleList; objList: TGBaseList); overload;
 (* Sort the refList in ascending order, ordering objList on the way.
 (* Sort the refList in ascending order, ordering objList on the way.
    Use if, and *ONLY* if refList contains only values superior or equal to 1 *)
    Use if, and *ONLY* if refList contains only values superior or equal to 1 *)
-procedure FastQuickSortLists(startIndex, endIndex: Integer; const refList: TGSingleList; const objList: TGPersistentObjectList);
+procedure FastQuickSortLists(startIndex, endIndex: Integer; const refList: TGSingleList; const objList: TgPersistentObjectList);
 
 
 
 
 implementation // ------------------------------------------------------------
 implementation // ------------------------------------------------------------
@@ -619,7 +619,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure FastQuickSortLists(startIndex, endIndex: Integer; const refList: TGSingleList; const objList: TGPersistentObjectList);
+procedure FastQuickSortLists(startIndex, endIndex: Integer; const refList: TGSingleList; const objList: TgPersistentObjectList);
 var
 var
   ppl:      PIntegerArray;
   ppl:      PIntegerArray;
   oTemp:    Pointer;
   oTemp:    Pointer;
@@ -1906,29 +1906,29 @@ begin
 end;
 end;
 
 
 // ------------------
 // ------------------
-// ------------------ TGIntegerList ------------------
+// ------------------ TgIntegerList ------------------
 // ------------------
 // ------------------
 
 
-constructor TGIntegerList.Create;
+constructor TgIntegerList.Create;
 begin
 begin
   FItemSize := SizeOf(Integer);
   FItemSize := SizeOf(Integer);
   inherited Create;
   inherited Create;
   FGrowthDelta := cDefaultListGrowthDelta;
   FGrowthDelta := cDefaultListGrowthDelta;
 end;
 end;
 
 
-procedure TGIntegerList.Assign(Src: TPersistent);
+procedure TgIntegerList.Assign(Src: TPersistent);
 begin
 begin
   if Assigned(Src) then
   if Assigned(Src) then
   begin
   begin
     inherited;
     inherited;
-    if (Src is TGIntegerList) then
-      System.Move(TGIntegerList(Src).FList^, FList^, FCount * SizeOf(Integer));
+    if (Src is TgIntegerList) then
+      System.Move(TgIntegerList(Src).FList^, FList^, FCount * SizeOf(Integer));
   end
   end
   else
   else
     Clear;
     Clear;
 end;
 end;
 
 
-function TGIntegerList.Add(const item: Integer): Integer;
+function TgIntegerList.Add(const item: Integer): Integer;
 begin
 begin
   Result := FCount;
   Result := FCount;
   if Result = FCapacity then
   if Result = FCapacity then
@@ -1937,14 +1937,14 @@ begin
   Inc(FCount);
   Inc(FCount);
 end;
 end;
 
 
-function TGIntegerList.AddNC(const item: Integer): Integer;
+function TgIntegerList.AddNC(const item: Integer): Integer;
 begin
 begin
   Result := FCount;
   Result := FCount;
   FList^[Result] := Item;
   FList^[Result] := Item;
   Inc(FCount);
   Inc(FCount);
 end;
 end;
 
 
-procedure TGIntegerList.Add(const i1, i2: Integer);
+procedure TgIntegerList.Add(const i1, i2: Integer);
 var
 var
   tmpList : PIntegerArray;
   tmpList : PIntegerArray;
 begin
 begin
@@ -1956,7 +1956,7 @@ begin
   tmpList^[1] := i2;
   tmpList^[1] := i2;
 end;
 end;
 
 
-procedure TGIntegerList.Add(const i1, i2, i3: Integer);
+procedure TgIntegerList.Add(const i1, i2, i3: Integer);
 var
 var
   tmpList : PIntegerArray;
   tmpList : PIntegerArray;
 begin
 begin
@@ -1969,7 +1969,7 @@ begin
   tmpList^[2] := i3;
   tmpList^[2] := i3;
 end;
 end;
 
 
-procedure TGIntegerList.Add(const AList: TGIntegerList);
+procedure TgIntegerList.Add(const AList: TgIntegerList);
 begin
 begin
   if Assigned(AList) and (AList.Count > 0) then
   if Assigned(AList) and (AList.Count > 0) then
   begin
   begin
@@ -1980,7 +1980,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-function TGIntegerList.Get(Index: Integer): Integer;
+function TgIntegerList.Get(Index: Integer): Integer;
 begin
 begin
 {$IFOPT R+}
 {$IFOPT R+}
     Assert(Cardinal(Index) < Cardinal(FCount));
     Assert(Cardinal(Index) < Cardinal(FCount));
@@ -1988,7 +1988,7 @@ begin
   Result := FList^[Index];
   Result := FList^[Index];
 end;
 end;
 
 
-procedure TGIntegerList.Insert(Index: Integer; const Item: Integer);
+procedure TgIntegerList.Insert(Index: Integer; const Item: Integer);
 begin
 begin
 {$IFOPT R+}
 {$IFOPT R+}
     Assert(Cardinal(Index) < Cardinal(FCount));
     Assert(Cardinal(Index) < Cardinal(FCount));
@@ -2001,7 +2001,7 @@ begin
   Inc(FCount);
   Inc(FCount);
 end;
 end;
 
 
-procedure TGIntegerList.Remove(const item: Integer);
+procedure TgIntegerList.Remove(const item: Integer);
 var
 var
   I: Integer;
   I: Integer;
 begin
 begin
@@ -2016,7 +2016,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGIntegerList.Put(Index: Integer; const Item: Integer);
+procedure TgIntegerList.Put(Index: Integer; const Item: Integer);
 begin
 begin
 {$IFOPT R+}
 {$IFOPT R+}
     Assert(Cardinal(Index) < Cardinal(FCount));
     Assert(Cardinal(Index) < Cardinal(FCount));
@@ -2024,18 +2024,18 @@ begin
   FList^[Index] := Item;
   FList^[Index] := Item;
 end;
 end;
 
 
-procedure TGIntegerList.SetCapacity(NewCapacity: Integer);
+procedure TgIntegerList.SetCapacity(NewCapacity: Integer);
 begin
 begin
   inherited;
   inherited;
   FList := PIntegerArray(FBaseList);
   FList := PIntegerArray(FBaseList);
 end;
 end;
 
 
-procedure TGIntegerList.Push(const Val: Integer);
+procedure TgIntegerList.Push(const Val: Integer);
 begin
 begin
   Add(Val);
   Add(Val);
 end;
 end;
 
 
-function TGIntegerList.Pop: Integer;
+function TgIntegerList.Pop: Integer;
 begin
 begin
   if FCount > 0 then
   if FCount > 0 then
   begin
   begin
@@ -2046,7 +2046,7 @@ begin
     Result := 0;
     Result := 0;
 end;
 end;
 
 
-procedure TGIntegerList.AddSerie(aBase, aDelta, aCount: Integer);
+procedure TgIntegerList.AddSerie(aBase, aDelta, aCount: Integer);
 var
 var
   tmpList : PInteger;
   tmpList : PInteger;
   I:    Integer;
   I:    Integer;
@@ -2064,7 +2064,7 @@ begin
   FCount := Count + aCount;
   FCount := Count + aCount;
 end;
 end;
 
 
-procedure TGIntegerList.AddIntegers(const First: PInteger; n: Integer);
+procedure TgIntegerList.AddIntegers(const First: PInteger; n: Integer);
 begin
 begin
   if n < 1 then
   if n < 1 then
     Exit;
     Exit;
@@ -2073,14 +2073,14 @@ begin
   FCount := FCount + n;
   FCount := FCount + n;
 end;
 end;
 
 
-procedure TGIntegerList.AddIntegers(const aList: TGIntegerList);
+procedure TgIntegerList.AddIntegers(const aList: TgIntegerList);
 begin
 begin
   if not Assigned(aList) then
   if not Assigned(aList) then
     Exit;
     Exit;
   AddIntegers(@aList.List[0], aList.Count);
   AddIntegers(@aList.List[0], aList.Count);
 end;
 end;
 
 
-procedure TGIntegerList.AddIntegers(const anArray: array of Integer);
+procedure TgIntegerList.AddIntegers(const anArray: array of Integer);
 var
 var
   n: Integer;
   n: Integer;
 begin
 begin
@@ -2101,12 +2101,12 @@ begin
   end;
   end;
 end;
 end;
 
 
-function TGIntegerList.IndexOf(item: Integer): Integer; register;
+function TgIntegerList.IndexOf(item: Integer): Integer; register;
 begin
 begin
   Result := IntegerSearch(item, FList, FCount);
   Result := IntegerSearch(item, FList, FCount);
 end;
 end;
 
 
-function TGIntegerList.MinInteger: Integer;
+function TgIntegerList.MinInteger: Integer;
 var
 var
   I: Integer;
   I: Integer;
   locList: PIntegerVector;
   locList: PIntegerVector;
@@ -2123,7 +2123,7 @@ begin
     Result := 0;
     Result := 0;
 end;
 end;
 
 
-function TGIntegerList.MaxInteger: Integer;
+function TgIntegerList.MaxInteger: Integer;
 var
 var
   I: Integer;
   I: Integer;
   locList: PIntegerVector;
   locList: PIntegerVector;
@@ -2169,13 +2169,13 @@ begin
   until I >= right;
   until I >= right;
 end;
 end;
 
 
-procedure TGIntegerList.Sort;
+procedure TgIntegerList.Sort;
 begin
 begin
   if (FList <> nil) and (Count > 1) then
   if (FList <> nil) and (Count > 1) then
     IntegerQuickSort(FList, 0, Count - 1);
     IntegerQuickSort(FList, 0, Count - 1);
 end;
 end;
 
 
-procedure TGIntegerList.SortAndRemoveDuplicates;
+procedure TgIntegerList.SortAndRemoveDuplicates;
 var
 var
   I, J, lastVal: Integer;
   I, J, lastVal: Integer;
   localList:     PIntegerArray;
   localList:     PIntegerArray;
@@ -2199,14 +2199,14 @@ begin
   end;
   end;
 end;
 end;
 
 
-function TGIntegerList.BinarySearch(const Value: Integer): Integer;
+function TgIntegerList.BinarySearch(const Value: Integer): Integer;
 var
 var
   found: Boolean;
   found: Boolean;
 begin
 begin
   Result := BinarySearch(Value, False, found);
   Result := BinarySearch(Value, False, found);
 end;
 end;
 
 
-function TGIntegerList.BinarySearch(const Value: Integer; returnBestFit: Boolean; var found: Boolean): Integer;
+function TgIntegerList.BinarySearch(const Value: Integer; returnBestFit: Boolean; var found: Boolean): Integer;
 var
 var
   Index:   Integer;
   Index:   Integer;
   min, max, mid: Integer;
   min, max, mid: Integer;
@@ -2258,7 +2258,7 @@ begin
     Result := Index;
     Result := Index;
 end;
 end;
 
 
-function TGIntegerList.AddSorted(const Value: Integer; const ignoreDuplicates: Boolean = False): Integer;
+function TgIntegerList.AddSorted(const Value: Integer; const ignoreDuplicates: Boolean = False): Integer;
 var
 var
   Index: Integer;
   Index: Integer;
   found: Boolean;
   found: Boolean;
@@ -2273,7 +2273,7 @@ begin
   end;
   end;
 end;
 end;
 
 
-procedure TGIntegerList.RemoveSorted(const Value: Integer);
+procedure TgIntegerList.RemoveSorted(const Value: Integer);
 var
 var
   Index: Integer;
   Index: Integer;
 begin
 begin
@@ -2282,7 +2282,7 @@ begin
     Delete(Index);
     Delete(Index);
 end;
 end;
 
 
-procedure TGIntegerList.Offset(delta: Integer);
+procedure TgIntegerList.Offset(delta: Integer);
 var
 var
   I: Integer;
   I: Integer;
   locList: PIntegerArray;
   locList: PIntegerArray;
@@ -2292,7 +2292,7 @@ begin
     locList^[I] := locList^[I] + delta;
     locList^[I] := locList^[I] + delta;
 end;
 end;
 
 
-procedure TGIntegerList.Offset(delta: Integer; const base, nb: Integer);
+procedure TgIntegerList.Offset(delta: Integer; const base, nb: Integer);
 var
 var
   I: Integer;
   I: Integer;
   locList: PIntegerArray;
   locList: PIntegerArray;

+ 2 - 2
Sourcex/FMxInfo.pas

@@ -26,7 +26,7 @@ uses
   FMX.Objects,
   FMX.Objects,
   FMX.Memo.Types,
   FMX.Memo.Types,
 
 
-  GXS.OpenGL,
+  GLScene.OpenGL4,
   GXS.Scene,
   GXS.Scene,
   GXS.Context,
   GXS.Context,
   GLScene.Strings;
   GLScene.Strings;
@@ -177,7 +177,7 @@ var
   i: Integer;
   i: Integer;
   ExtStr: String;
   ExtStr: String;
 
 
-  procedure IntLimitToLabel(const aLabel: TLabel; const aLimit: TLimitType);
+  procedure IntLimitToLabel(const aLabel: TLabel; const aLimit: TgxLimitType);
   begin
   begin
     aLabel.Text := IntToStr(aSceneBuffer.LimitOf[aLimit]);
     aLabel.Text := IntToStr(aSceneBuffer.LimitOf[aLimit]);
   end;
   end;

+ 10 - 10
Sourcex/Formatx.Q3MD3.pas

@@ -44,20 +44,20 @@ type
     into an animation list. The NamePrefix parameter is used to determine
     into an animation list. The NamePrefix parameter is used to determine
     which class of animation is extracted. eg NamePrefix='TORSO' will load
     which class of animation is extracted. eg NamePrefix='TORSO' will load
     all animations starting with 'TORSO_' like 'TORSO_STAND' *)
     all animations starting with 'TORSO_' like 'TORSO_STAND' *)
-procedure LoadQ3Anims(Animations: TGXActorAnimations; FileName: string;
+procedure LoadQ3Anims(Animations: TgxActorAnimations; FileName: string;
   NamePrefix: string); overload;
   NamePrefix: string); overload;
-procedure LoadQ3Anims(Animations: TGXActorAnimations; Strings: TStrings;
+procedure LoadQ3Anims(Animations: TgxActorAnimations; Strings: TStrings;
   NamePrefix: string); overload;
   NamePrefix: string); overload;
 
 
 (* Quake3 Skin loading procedure. Use this procedure to apply textures
 (* Quake3 Skin loading procedure. Use this procedure to apply textures
   to a GLActor. This doens't use the actors original preloaded materials so
   to a GLActor. This doens't use the actors original preloaded materials so
   it may be a good idea to clear the actors material library before
   it may be a good idea to clear the actors material library before
   running this to keep everything nice and clean. *)
   running this to keep everything nice and clean. *)
-procedure LoadQ3Skin(FileName: string; Actor: TGXActor);
+procedure LoadQ3Skin(FileName: string; Actor: TgxActor);
 
 
 implementation // -------------------------------------------------------------
 implementation // -------------------------------------------------------------
 
 
-procedure LoadQ3Anims(Animations: TGXActorAnimations; FileName: string;
+procedure LoadQ3Anims(Animations: TgxActorAnimations; FileName: string;
   NamePrefix: string);
   NamePrefix: string);
 var
 var
   AnimStrings: TStrings;
   AnimStrings: TStrings;
@@ -68,7 +68,7 @@ begin
   AnimStrings.Free;
   AnimStrings.Free;
 end;
 end;
 
 
-procedure LoadQ3Anims(Animations: TGXActorAnimations; Strings: TStrings;
+procedure LoadQ3Anims(Animations: TgxActorAnimations; Strings: TStrings;
   NamePrefix: string);
   NamePrefix: string);
 var
 var
   anim: TStringList;
   anim: TStringList;
@@ -158,7 +158,7 @@ begin
         StartFrame := val[0];
         StartFrame := val[0];
         EndFrame := val[0] + val[1] - 1;
         EndFrame := val[0] + val[1] - 1;
         Reference := aarMorph;
         Reference := aarMorph;
-        // Need a way in TGXActorAnimation to tell whether it is
+        // Need a way in TgxActorAnimation to tell whether it is
         // a looping type animation or a play once type and
         // a looping type animation or a play once type and
         // the framerate (interval) it uses. Both of these can
         // the framerate (interval) it uses. Both of these can
         // be determined here and loaded.
         // be determined here and loaded.
@@ -168,7 +168,7 @@ begin
   anim.Free;
   anim.Free;
 end;
 end;
 
 
-procedure LoadQ3Skin(FileName: string; Actor: TGXActor);
+procedure LoadQ3Skin(FileName: string; Actor: TgxActor);
 const
 const
   // This list can be expanded if necessary
   // This list can be expanded if necessary
   ExtList: array [0 .. 3] of string = ('.jpg', '.jpeg', '.tga', '.bmp');
   ExtList: array [0 .. 3] of string = ('.jpg', '.jpeg', '.tga', '.bmp');
@@ -176,12 +176,12 @@ var
   SkinStrings, temp: TStrings;
   SkinStrings, temp: TStrings;
   i, j: Integer;
   i, j: Integer;
   libmat: TgxLibMaterial;
   libmat: TgxLibMaterial;
-  mesh: TGXMeshObject;
+  mesh: TgxMeshObject;
   texture, textureNoDir: string;
   texture, textureNoDir: string;
   textureFound, meshFound: Boolean;
   textureFound, meshFound: Boolean;
 
 
-  function GetMeshObjectByName(MeshObjects: TGXMeshObjectList; Name: string;
-    var mesh: TGXMeshObject): Boolean;
+  function GetMeshObjectByName(MeshObjects: TgxMeshObjectList; Name: string;
+    var mesh: TgxMeshObject): Boolean;
   var
   var
     i: Integer;
     i: Integer;
   begin
   begin

Some files were not shown because too many files changed in this diff