by trinovantes · 4y ago · 0 comments
For example, if I want to open an image [1], it shows what I need to build the plugin but it doesn't have any code samples on how to use it. The constructor requires an manager -- what's that? After importing, how do I get the texture buffer? I'm sure all of this info is somewhere on the docs but I shouldn't have to search for something that should all be on the same page.
[1] https://doc.magnum.graphics/magnum/classMagnum_1_1Trade_1_1A...
...OTOH, digging through Python source code is more pleasant than C++. So it balances out I guess.
(Sure, it still means the library has to make those annotations in the first place, and have them correct, but the newer and more complex libraries fortunately do, if even just to make IDE autocompletion work.)
It's not this bad everywhere tho, docs of fresher APIs didn't have a chance to erode yet: https://doc.magnum.graphics/magnum/classMagnum_1_1Trade_1_1S...
[1] https://doc.magnum.graphics/magnum/classMagnum_1_1Trade_1_1A...
(which arguably should be the main page)