BasisImporter - #62
Conversation
0a5d43f to
1f76e6b
Compare
Codecov Report
@@ Coverage Diff @@
## master #62 +/- ##
==========================================
- Coverage 90.94% 90.79% -0.16%
==========================================
Files 49 51 +2
Lines 4240 3898 -342
==========================================
- Hits 3856 3539 -317
+ Misses 384 359 -25
Continue to review full report at Codecov.
|
|
@mosra So, there has been zero visible progress on build system / library support in basis_universal since June. With this PR, I just copied the files of my forked repository with the debug iterator level fix into external, but that was just a temporary solution. How are we going to include basis? I currently don't see a way that doesn't involve our own patched version, but maybe a submodule is a better idea than just copying the files? |
|
Oh well. I would say we do it similarly as we did with ImGui (finding sources and building through and external CMake script), plus relying on your fork for Windows builds until BinomialLLC/basis_universal#46 gets finally merged. Or is there anything else needed beyond that? Submodules are problematic since |
|
That submodule concern makes a lot of sense, yes. Finding the sources via CMake is a good idea, I remember you suggested that before 👍 But good to have it documented here on GitHub now.
For windows support, no further code changes. But to build as a library, we will have to add some cmake project. (Theirs just builds the basisu tool.) |
1f76e6b to
08138f9
Compare
5d5f0a0 to
6cbe2cc
Compare
f6bbf13 to
9a637c3
Compare
032b19b to
2cd6e42
Compare
2cd6e42 to
13cfcb9
Compare
mosra
left a comment
There was a problem hiding this comment.
This looks quite finished already! 🎉
aab0800 to
0c9df86
Compare
|
@mosra How should I handle the basis dependency on debian/arch/etc packages? Clone the repo or download from specific revision like on travis and appveyor? |
|
For the no-default thing I mentioned in mosra/magnum#370, I think it would be enough to have just an empty format line in the config, like: [configuration]
# No format is specified by default and you have to choose one either
# by changing this value or by loading the plugin under an alias. See
# class documentation for more information.
format=And then this should have an explicit test so we are sure this fails gracefully with a good UX :) |
5b22504 to
57b645b
Compare
|
Alright, done! 🎉 |
c4adfb6 to
bd6791e
Compare
mosra
left a comment
There was a problem hiding this comment.
I'm a bit sad that codecov is broken and doesn't show the actual covered lines. Would need to check the coverage locally, then.
6d7b29e to
23cead4
Compare
|
@mosra Ready! 👍 |
mosra
left a comment
There was a problem hiding this comment.
Last few bits and then I'll leave you in peace :)
For the real-world test before I merge to master (and a nice & useful feature as a side-effect) I'll add compressed image support to magnum-player and try to open a few Basis images with it.
d50b492 to
124d4c8
Compare
|
Done once more :) |
124d4c8 to
ac6fece
Compare
Signed-off-by: Squareys <squareys@googlemail.com>
ac6fece to
d4bb29a
Compare
Signed-off-by: Squareys <squareys@googlemail.com>
Signed-off-by: Squareys <squareys@googlemail.com>
Signed-off-by: Squareys <squareys@googlemail.com>
d4bb29a to
b3341af
Compare
Hi @mosra !
This is the pullrequest for the BasisImporter plugin. The BasisConverter will be in a separate pullrequest.
I will ping you once you can take the first look at it. Big warning: I currently added all of the https://github.com/binomialLLC/basis_universal code with my patch. I am still hoping BinomialLLC/basis_universal#46 or BinomialLLC/basis_universal#11 or maybe BinomialLLC/basis_universal#13 will be fixed/merged/dealt with by the time this pullrequest is ready or the next release that Rich is working on solves linking to it as a library.
If not, we can rediscuss options for how to integrate it best.
Sincerely,
Jonathan
TODOs
[ ] AnyImageImporter delegation=> AnyImageImporter: Delegate .basis files magnum#370