Announcement

Collapse
No announcement yet.

Binding Dll framework on Delphi

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Binding Dll framework on Delphi

    Hi

    Is it possible to import / binding the Afterwarp framework dll in Delphi?

    Have an example of how to display an image/Sprite in Delphi?

    Thanks

  • #2
    In Downloads section, please make sure to download Delphi and FreePascal/Lazarus bindings, which contains headers and source code. Delphi examples are in "\examples\delphi\modern" sub-folder.

    Furthermore, I have attached ImageBasics example ported to both Delphi and FreePascal/Lazarus from C++, which shows how to draw an image and render it with different effects and filtering:
    [ATTACH]n56[/ATTACH]
    [ATTACH]n55[/ATTACH]
    Click image for larger version

Name:	ImageBasics.png
Views:	421
Size:	1.06 MB
ID:	54
    Later on, this example will be included into official distribution.

    Comment


    • #3
      Thank you for the sample!

      Comment


      • #4
        Hey..

        Using Delphi Rio 10.3.1, you know here I can put the library path for (Afterwarp Framework v1.0.5 "pascal bindings")?

        Thanks

        Comment


        • #5
          You don't have to - just open one of examples from "examples\delphi\modern" sub-folder and it should have library path pre-configured in the project, so you should compile everything "out of the box".

          However, for convenience, you can add path to framework binaries, e.g. "c:\afterwarp\bin\windows\x64" to PATH variable in Environment Options, so that you don't have to copy framework DLL to each example's folder.

          Comment


          • #6
            Originally posted by lifepower View Post
            You don't have to - just open one of examples from "examples\delphi\modern" sub-folder and it should have library path pre-configured in the project, so you should compile everything "out of the box".

            However, for convenience, you can add path to framework binaries, e.g. "c:\afterwarp\bin\windows\x64" to PATH variable in Environment Options, so that you don't have to copy framework DLL to each example's folder.
            Ok thank you!

            I will try!

            Comment


            • #7
              Just a clarification, by "Environment Variables", I mean those that you edit in Windows, not Delphi. I have attached a screenshot of environment variables that I have configured locally, in my case, I have unpacked Afterwarp distribution to "d:\Dev\Afterwarp-v1".
              Attached Files

              Comment

              Working...
              X