瀏覽代碼

Updated readme.md

glscene 1 周之前
父節點
當前提交
b698f6087e
共有 4 個文件被更改,包括 20 次插入26 次删除
  1. 1 1
      README.md
  2. 6 6
      Source/GLS.Objects.pas
  3. 7 13
      Source/GLS.Scene.pas
  4. 6 6
      Sourcex/GXS.Scene.pas

+ 1 - 1
README.md

@@ -6,7 +6,7 @@ include managers for supporting physics, sounds, terrains with materials and sha
 1. Download a zip archive of the last release or clone the repository
 1. Download a zip archive of the last release or clone the repository
 2. Run _setupDLL_admin.cmd to support external DLLs
 2. Run _setupDLL_admin.cmd to support external DLLs
 3. Configure the IDE settings and paths to src, sources and sourcex, include and lib dirs  
 3. Configure the IDE settings and paths to src, sources and sourcex, include and lib dirs  
-4. Open the GLSEngine.groupproj in RAD Studio Delphi or .lpk projects for Lazarus, compile and install components
+4. Open the GLSEngine.groupproj in RAD Studio Delphi, compile and install components
 5. Run Examples for Delphi or C++Builder <br>
 5. Run Examples for Delphi or C++Builder <br>
 
 
 
 

+ 6 - 6
Source/GLS.Objects.pas

@@ -5,16 +5,16 @@ unit GLS.Objects;
 
 
 (*
 (*
   Implementation of basic scene objects plus some management routines.
   Implementation of basic scene objects plus some management routines.
-  The registered classes are:
-    [TGLSphere, TGLCube, TGLPlane, TGLSprite, TGLPoints,
-    TGLDummyCube, TGLLines, TGLSuperellipsoid]
-
-  All objects declared in this unit are part of the basic GLScene package,
-  these are only simple objects and should be kept simple and lightweight.
+  All objects declared in this unit are only simple objects
+  and should be kept simple and lightweight.
 
 
   More complex or more specialized versions should be placed in dedicated
   More complex or more specialized versions should be placed in dedicated
   units where they can grow and prosper untammed. "Generic" geometrical
   units where they can grow and prosper untammed. "Generic" geometrical
   objects can be found in GLS.GeomObjects unit.
   objects can be found in GLS.GeomObjects unit.
+
+  The registered classes are:
+    [TGLSphere, TGLCube, TGLPlane, TGLSprite, TGLPoints,
+    TGLDummyCube, TGLLines, TGLSuperellipsoid]
 *)
 *)
 
 
 interface
 interface

+ 7 - 13
Source/GLS.Scene.pas

@@ -27,13 +27,13 @@ uses
   Stage.VectorTypes,
   Stage.VectorTypes,
   Stage.VectorGeometry,
   Stage.VectorGeometry,
   Stage.OpenGLTokens,
   Stage.OpenGLTokens,
-  GLS.XCollection,
   Stage.Strings,
   Stage.Strings,
   Stage.PipelineTransform,
   Stage.PipelineTransform,
   Stage.TextureFormat,
   Stage.TextureFormat,
   Stage.Utils,
   Stage.Utils,
   Stage.Logger,
   Stage.Logger,
 
 
+  GLS.XCollection,
   GLS.Context,
   GLS.Context,
   GLS.Silhouette,
   GLS.Silhouette,
   GLS.PersistentClasses,
   GLS.PersistentClasses,
@@ -53,12 +53,6 @@ uses
   GLS.ImageUtils;
   GLS.ImageUtils;
 
 
 type
 type
-{$IF (CompilerVersion >= 36)}
-  TListSize = NativeInt;
-{$ELSE}
-  TListSize = Integer;
-{$ENDIF}
-
   // Defines which features are taken from the master object.
   // Defines which features are taken from the master object.
   TGLProxyObjectOption = (pooEffects, pooObjects, pooTransformation);
   TGLProxyObjectOption = (pooEffects, pooObjects, pooTransformation);
   TGLProxyObjectOptions = set of TGLProxyObjectOption;
   TGLProxyObjectOptions = set of TGLProxyObjectOption;
@@ -67,7 +61,7 @@ type
 
 
 const
 const
   cDefaultProxyOptions = [pooEffects, pooObjects, pooTransformation];
   cDefaultProxyOptions = [pooEffects, pooObjects, pooTransformation];
-  GLSCENE_REVISION = '$Revision: 2024$';
+  GLSCENE_REVISION = '$Revision: 2025$';
   GLSCENE_VERSION = 'v2.5 %s';
   GLSCENE_VERSION = 'v2.5 %s';
 
 
 type
 type
@@ -144,11 +138,11 @@ type
   // Just a list of objects that support IGLInitializable.
   // Just a list of objects that support IGLInitializable.
   TGLInitializableObjectList = class(TList)
   TGLInitializableObjectList = class(TList)
   private
   private
-    function GetItems(const Index: TListSize): IGLInitializable;
-    procedure PutItems(const Index: TListSize; const Value: IGLInitializable);
+    function GetItems(const Index: NativeInt): IGLInitializable;
+    procedure PutItems(const Index: NativeInt; const Value: IGLInitializable);
   public
   public
     function Add(const Item: IGLInitializable): Integer;
     function Add(const Item: IGLInitializable): Integer;
-    property Items[const Index: TListSize]: IGLInitializable read GetItems write PutItems; default;
+    property Items[const Index: NativeInt]: IGLInitializable read GetItems write PutItems; default;
   end;
   end;
 
 
   PGLAxisInfo = ^TGLAxisInfo;
   PGLAxisInfo = ^TGLAxisInfo;
@@ -8021,12 +8015,12 @@ begin
 end;
 end;
 
 
 function TGLInitializableObjectList.GetItems(
 function TGLInitializableObjectList.GetItems(
-  const Index: TListSize): IGLInitializable;
+  const Index: NativeInt): IGLInitializable;
 begin
 begin
   Result := IGLInitializable(inherited Get(Index));
   Result := IGLInitializable(inherited Get(Index));
 end;
 end;
 
 
-procedure TGLInitializableObjectList.PutItems(const Index: TListSize;
+procedure TGLInitializableObjectList.PutItems(const Index: NativeInt;
   const Value: IGLInitializable);
   const Value: IGLInitializable);
 begin
 begin
   inherited Put(Index, Pointer(Value));
   inherited Put(Index, Pointer(Value));

+ 6 - 6
Sourcex/GXS.Scene.pas

@@ -61,7 +61,7 @@ type
 
 
 const
 const
   cDefaultProxyOptions = [pooEffects, pooObjects, pooTransformation];
   cDefaultProxyOptions = [pooEffects, pooObjects, pooTransformation];
-  SCENE_REVISION = '$Revision: 2024$';
+  SCENE_REVISION = '$Revision: 2025$';
   SCENE_VERSION = 'v2.5 %s';
   SCENE_VERSION = 'v2.5 %s';
 
 
 type
 type
@@ -143,11 +143,11 @@ type
   // Just a list of objects that support IGLInitializable.
   // Just a list of objects that support IGLInitializable.
   TgxInitializableObjectList = class(TList)
   TgxInitializableObjectList = class(TList)
   private
   private
-    function GetItems(const Index: Integer): IgxInitializable;
-    procedure PutItems(const Index: Integer; const Value: IgxInitializable);
+    function GetItems(const Index: NativeInt): IgxInitializable;
+    procedure PutItems(const Index: NativeInt; const Value: IgxInitializable);
   public
   public
     function Add(const Item: IgxInitializable): Integer;
     function Add(const Item: IgxInitializable): Integer;
-    property Items[const Index: Integer]: IgxInitializable read GetItems write PutItems; default;
+    property Items[const Index: NativeInt]: IgxInitializable read GetItems write PutItems; default;
   end;
   end;
 
 
   (* Base class for all scene objects.
   (* Base class for all scene objects.
@@ -7832,12 +7832,12 @@ begin
   Result := inherited Add(Pointer(Item));
   Result := inherited Add(Pointer(Item));
 end;
 end;
 
 
-function TgxInitializableObjectList.GetItems(const Index: Integer): IgxInitializable;
+function TgxInitializableObjectList.GetItems(const Index: NativeInt): IgxInitializable;
 begin
 begin
   Result := IgxInitializable(inherited Get(Index));
   Result := IgxInitializable(inherited Get(Index));
 end;
 end;
 
 
-procedure TgxInitializableObjectList.PutItems(const Index: Integer; const Value: IgxInitializable);
+procedure TgxInitializableObjectList.PutItems(const Index: NativeInt; const Value: IgxInitializable);
 begin
 begin
   inherited Put(Index, Pointer(Value));
   inherited Put(Index, Pointer(Value));
 end;
 end;