Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: PNG/TGA Transparency in GLScene + Lazarus

  1. #11

    Re: PNG/TGA Transparency in GLScene + Lazarus

    It has. It replaces the LoadFromStream functions, I think.

    There is at GLTexture.pas in procedure TGLPersistentImage.LoadFromFile(const fileName: string);

    following code:

    Code:
     
    if ApplicationFileIODefined then
     begin
      gr := CreateGraphicFromFile(buf);
      if Assigned(gr) then
      begin
       Picture.Graphic := gr;
       gr.Free;
       Exit;
      end;
     end
     else if FileExists(buf) then
     begin
      Picture.LoadFromFile(buf);
      Exit;
     end;
    And if you create TGLVfsPAk, it creates the ApplicationIO
    Current projects with Delphi & Lazarus: Dage - Dog Adventure Game Engine.

  2. #12

    Re: PNG/TGA Transparency in GLScene + Lazarus

    I managed to got it working somehow

    Here is a bug tracker ticket

    It works now with TGLVfsPak also. Thanks for help.
    Current projects with Delphi & Lazarus: Dage - Dog Adventure Game Engine.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •