Skip to content

Commit

Permalink
Upgrade to v.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
glscene committed Sep 27, 2024
1 parent 63eae39 commit 905cc82
Show file tree
Hide file tree
Showing 11 changed files with 47 additions and 106 deletions.
50 changes: 18 additions & 32 deletions Examples/AdvDemos/Earth/fEarthD.dfm
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
object FormEarth: TFormEarth
Left = 412
Top = 123
Margins.Left = 5
Margins.Top = 5
Margins.Right = 5
Margins.Bottom = 5
Caption = 'Earth'
ClientHeight = 994
ClientWidth = 1356
ClientHeight = 568
ClientWidth = 775
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -19
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
KeyPreview = True
Expand All @@ -20,21 +16,16 @@ object FormEarth: TFormEarth
OnCreate = FormCreate
OnKeyPress = FormKeyPress
OnMouseWheel = FormMouseWheel
PixelsPerInch = 168
TextHeight = 24
TextHeight = 13
object GLSceneViewer: TGLSceneViewer
Left = 226
Left = 129
Top = 0
Width = 1130
Height = 994
Margins.Left = 5
Margins.Top = 5
Margins.Right = 5
Margins.Bottom = 5
Width = 646
Height = 568
Camera = Camera
BeforeRender = GLSceneViewerBeforeRender
Buffer.BackgroundColor = clBlack
FieldOfView = 161.711547851562500000
FieldOfView = 148.535995483398400000
PenAsTouch = False
Align = alClient
OnDblClick = GLSceneViewerDblClick
Expand All @@ -45,26 +36,19 @@ object FormEarth: TFormEarth
object PanelLeft: TPanel
Left = 0
Top = 0
Width = 226
Height = 994
Margins.Left = 5
Margins.Top = 5
Margins.Right = 5
Margins.Bottom = 5
Width = 129
Height = 568
Align = alLeft
TabOrder = 1
ExplicitHeight = 543
object tvPlanets: TTreeView
Left = 1
Top = 1
Width = 224
Height = 992
Margins.Left = 5
Margins.Top = 5
Margins.Right = 5
Margins.Bottom = 5
Width = 127
Height = 566
Align = alClient
Images = VirtPlanetSymbols
Indent = 33
Indent = 21
TabOrder = 0
OnClick = tvPlanetsClick
Items.NodeData = {
Expand Down Expand Up @@ -99,6 +83,7 @@ object FormEarth: TFormEarth
0000090000000900000012000000FFFFFFFF0000000000000000000100000001
0550006C00750074006F0000002B0000000A0000000A00000013000000FFFFFF
FF00000000000000000000000000010621046800610072006F006E00}
ExplicitHeight = 541
end
end
object GLScene: TGLScene
Expand All @@ -107,6 +92,7 @@ object FormEarth: TFormEarth
Top = 30
object SkyDome: TGLSkyDome
Up.Coordinates = {0000803F000000000000000000000000}
OnProgress = SkyDomeProgress
Bands = <
item
StartColor.Color = {0000803F0000803F0000803F0000803F}
Expand Down Expand Up @@ -64900,8 +64886,8 @@ object FormEarth: TFormEarth
Name = 'Planetoid'
end>
ImageCollection = PlanetSymbols
Width = 32
Height = 32
Width = 18
Height = 18
Left = 510
Top = 260
end
Expand Down
2 changes: 2 additions & 0 deletions Examples/AdvDemos/Earth/fEarthD.pas
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ TFormEarth = class(TForm)
procedure miConstBoundariesClick(Sender: TObject);
procedure Hide1Click(Sender: TObject);
procedure Show1Click(Sender: TObject);
procedure SkyDomeProgress(Sender: TObject; const DeltaTime,
NewTime: Double);
public
ConstellationsAlpha: Single;
TimeMultiplier: Single;
Expand Down
10 changes: 3 additions & 7 deletions Examples/AdvDemos/GLSViewer/Source/fGLSViewer.dfm
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ object FormGLSViewer: TFormGLSViewer
Text = 'Model'
Width = 40
end>
ExplicitTop = 459
ExplicitWidth = 699
ExplicitTop = 658
ExplicitWidth = 1072
end
object snViewer: TGLSceneViewer
Left = 273
Expand Down Expand Up @@ -181,7 +181,6 @@ object FormGLSViewer: TFormGLSViewer
Height = 29
Align = alTop
TabOrder = 2
ExplicitWidth = 699
object atbTools: TActionToolBar
Left = 357
Top = 2
Expand Down Expand Up @@ -264,7 +263,6 @@ object FormGLSViewer: TFormGLSViewer
Font.Name = 'MS Sans Serif'
Font.Style = []
Spacing = 0
ExplicitWidth = 699
end
object PanelLeft: TPanel
Left = 0
Expand All @@ -273,6 +271,7 @@ object FormGLSViewer: TFormGLSViewer
Height = 627
Align = alLeft
TabOrder = 4
ExplicitHeight = 602
object tvScene: TTreeView
Left = 1
Top = 1
Expand Down Expand Up @@ -481,9 +480,6 @@ object FormGLSViewer: TFormGLSViewer
6D0070007500740069006E0067000000410000005E0000005E000000FFFFFFFF
FFFFFFFF0000000000000000000000000001114300550044004100470065006E
006500720061007400650064004D00650073006800}
ExplicitLeft = -4
ExplicitTop = 3
ExplicitWidth = 151
end
end
object Scene: TGLScene
Expand Down
33 changes: 2 additions & 31 deletions Examples/AdvDemos/GLSViewer/Source/fGLSViewer.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1088,13 +1088,12 @@ procedure TFormGLSViewer.acToolsNaviCubeExecute(Sender: TObject);
procedure TFormGLSViewer.acPointsExecute(Sender: TObject);
var
I: Integer;
Color: TVector3f;
Color: TVector4f;
NumPoints: Integer;
X, Y, Z: Single;

begin
NumPoints := 10000;
Points := TGLPoints(dcWorld.AddNewChild(TGLPoints));
Points.Size := 5.0;
Points.Style := psSmooth;
for I := 0 to NumPoints - 1 do
Expand All @@ -1108,38 +1107,10 @@ procedure TFormGLSViewer.acPointsExecute(Sender: TObject);
Color.X := Random();
Color.Y := Random();
Color.Z := Random();
Points.Colors.AddPoint(Color);
Points.Colors.AddPoint(Color.X, Color.Y, 0);
end;
// dcWorld.Remove(GLPoints, False);
end;

(*
procedure TMainForm.acDeletePoints(Sender: TObject);
var
I: Integer;
Color: TVector3f;
NumPoints: Integer;
X, Y, Z: Single;
begin
NumPoints := 10000;
Points := TGLPoints(dcWorld.AddNewChild(TGLPoints));
for I := 0 to NumPoints - 1 do
begin
Color.X := Random();
Color.Y := Random();
Color.Z := Random();
X := Random(100) - 50;
Y := Random(100) - 50;
Z := Random(100) - 50;
Points.Positions.Add(X * 0.05, Y * 0.05, Z * 0.05);
// Fill array of GLPoints
end;
end;
*)

procedure TFormGLSViewer.acFileExitExecute(Sender: TObject);
begin
Close;
Expand Down
3 changes: 2 additions & 1 deletion Examples/Demos/rendering/SkyBox/fSkyBoxC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#pragma link "GLS.Cadencer"
#pragma link "GLS.Coordinates"

#pragma link "GLScene.Utils"

#pragma link "GLS.LensFlare"
#pragma link "GLS.Material"
#pragma link "GLS.Navigator"
Expand All @@ -18,7 +20,6 @@
#pragma link "GLS.SimpleNavigation"
#pragma link "GLS.SkyDome"
#pragma link "GLS.SceneViewer"
#pragma link "GLScene.Utils"
#pragma resource "*.dfm"
TFormSkybox *FormSkybox;

Expand Down
23 changes: 7 additions & 16 deletions Examples/Demos/rendering/SkyBox/fSkyBoxC.dfm
Original file line number Diff line number Diff line change
@@ -1,36 +1,27 @@
object FormSkybox: TFormSkybox
Left = 0
Top = 0
Margins.Left = 5
Margins.Top = 5
Margins.Right = 5
Margins.Bottom = 5
Caption = 'Sky Box'
ClientHeight = 821
ClientWidth = 1208
ClientHeight = 469
ClientWidth = 690
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -19
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
Position = poScreenCenter
OnCreate = FormCreate
PixelsPerInch = 168
TextHeight = 23
TextHeight = 13
object GLSceneViewer1: TGLSceneViewer
Left = 0
Top = 0
Width = 1208
Height = 821
Margins.Left = 5
Margins.Top = 5
Margins.Right = 5
Margins.Bottom = 5
Width = 690
Height = 469
Camera = GLCamera1
Buffer.BackgroundColor = 7168
Buffer.AmbientColor.Color = {0000803F0000803F0000803F0000803F}
FieldOfView = 168.869094848632800000
FieldOfView = 160.639801025390600000
PenAsTouch = False
Align = alClient
TabOrder = 0
Expand Down
6 changes: 4 additions & 2 deletions Examples/Demos/rendering/SkyBox/fSkyBoxC.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>

#include "GLScene.Utils.hpp"
#include "GLScene.Keyboard.hpp"

#include "GLS.BaseClasses.hpp"
#include "GLS.Cadencer.hpp"
#include "GLS.Coordinates.hpp"
Expand All @@ -19,10 +23,8 @@
#include "GLS.SimpleNavigation.hpp"
#include "GLS.SkyDome.hpp"
#include "GLS.SceneViewer.hpp"
#include "GLScene.Keyboard.hpp"
#include "JPeg.hpp"
#include "GLS.FileJPEG.hpp"
#include "GLScene.Utils.hpp"

//---------------------------------------------------------------------------
class TFormSkybox : public TForm
Expand Down
23 changes: 7 additions & 16 deletions Examples/Demos/rendering/SkyBox/fSkyBoxD.dfm
Original file line number Diff line number Diff line change
@@ -1,37 +1,28 @@
object FormSkybox: TFormSkybox
Left = 176
Top = 73
Margins.Left = 5
Margins.Top = 5
Margins.Right = 5
Margins.Bottom = 5
Caption = 'Sky Box'
ClientHeight = 1010
ClientWidth = 1558
ClientHeight = 577
ClientWidth = 890
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -19
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
Position = poScreenCenter
Visible = True
OnCreate = FormCreate
PixelsPerInch = 168
TextHeight = 24
TextHeight = 13
object GLSceneViewer1: TGLSceneViewer
Left = 0
Top = 0
Width = 1558
Height = 1010
Margins.Left = 5
Margins.Top = 5
Margins.Right = 5
Margins.Bottom = 5
Width = 890
Height = 577
Camera = GLCamera1
Buffer.BackgroundColor = 7168
Buffer.AmbientColor.Color = {0000803F0000803F0000803F0000803F}
FieldOfView = 170.942352294921900000
FieldOfView = 164.212738037109400000
PenAsTouch = False
Align = alClient
TabOrder = 0
Expand Down
3 changes: 2 additions & 1 deletion Examples/Demos/rendering/SkyBox/fSkyBoxD.pas
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ interface

GLS.Scene,
GLScene.VectorTypes,
GLScene.Keyboard,
GLS.Texture,
GLS.SkyDome,

Expand Down Expand Up @@ -68,7 +69,7 @@ TFormSkybox = class(TForm)
var
FormSkybox: TFormSkybox;

implementation
implementation //-------------------------------------------------------------

{$R *.dfm}

Expand Down
Binary file modified Help/GLSysHelp/HTML/GLSysHelp.chm
Binary file not shown.
Binary file modified Help/GXSysHelp/HTML/GXSysHelp.chm
Binary file not shown.

0 comments on commit 905cc82

Please sign in to comment.