我写这段代码来动态创建led
var
fLed: Tglhudsprite;
i,fImgSnapNum: integer;
............
for i := 0 to fImgSnapNum - 1 do
begin
fLed := TGLHUDSprite.CreateAsChild(MainForm.Dummy_Sound);
fLed.Name := 'fLed' + IntToStr(i);
fled.Material.MaterialLibrary := MatLib;
fLed.Material.LibMaterialName := 'led';
fLed.Width := fLed.Material.GetActualPrimaryTexture.Image.Width;
fLed.Height := fLed.Material.GetActualPrimaryTexture.Image.Height;
fled.SetSize(18,18);
fled.Position.X := 530 + (i * 30);
fled.Position.Y := 600;
fled.Visible := true;
end;
我怎样才能找到并释放 fLed glscene 对象...?
谢谢...我使用delphi7和GLScene组件...