Giter Site home page Giter Site logo

C API Help about blend2d HOT 9 CLOSED

blend2d avatar blend2d commented on May 25, 2024
C API Help

from blend2d.

Comments (9)

kobalicek avatar kobalicek commented on May 25, 2024 2

Thank you for your feedback. I think both issues are valid and I will fix them.

from blend2d.

speps avatar speps commented on May 25, 2024

A few things I've found while doing some bindings (still WIP):

  • blImageCodecBuiltInCodecs: should either return const or actually do a weak assign onto an existing instance, in my binding that method looks like it'll have to be a special case when it really shouldn't be.
  • blFontLoaderDataByFaceIndex: returns BLFontDataImpl*, seems like a big problem to me, leaking implementation details.

from blend2d.

kobalicek avatar kobalicek commented on May 25, 2024

blFontLoaderDataByFaceIndex has been addressed - I think it makes more sense now.

from blend2d.

kobalicek avatar kobalicek commented on May 25, 2024

blImageCodecBuiltInCodecs is gone as well. There are 2 new functions that can be used as a replacement:

  • blImageCodecArrayInitBuiltInCodecs (initializer)
  • blImageCodecArrayAssignBuiltInCodecs (use on existing valid instance)

Thank you again for the feedback, I hope these changes make sense and I would welcome more suggestions if you find anything!

from blend2d.

speps avatar speps commented on May 25, 2024

Awesome thanks a lot for this, great changes! I'll post my bindings somewhere once I'm done.

Side question: I'm currently using the blend2d-beta.zip link to download the source automatically when building my bindings, is it synced with the master branch?

from blend2d.

kobalicek avatar kobalicek commented on May 25, 2024

The beta links are only snapshots that do not reflect the current git version. The idea is to make a new beta release when something changes and it's tested. For example today I will create a new snapshot as the API changed and I would like to propagate the change to users. I always bump the betaN number when releasing the new snapshot to make it more transparent when the snapshot is updated.

from blend2d.

martin31821 avatar martin31821 commented on May 25, 2024

@kobalicek Would you mind uploading your beta releases to github releases as well? This way users who are only watching releases will get notified whenever an API change was introduced.

from blend2d.

kobalicek avatar kobalicek commented on May 25, 2024

Well I don't plan to add beta releases to github releases. I think it's too early to do this and I added beta source releases mostly for users that would like to evaluate Blend2D. I would recommend just using master branch for beta users that actually use the library.

from blend2d.

kobalicek avatar kobalicek commented on May 25, 2024

I think it's plan to close this issue, open a new one for anything new.

from blend2d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.