| Summary: | Add Windows-like composite layered windows to ShapedWindow API | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Albert Huang <alberth.dev> |
| Component: | video | Assignee: | Albert Huang <alberth.dev> |
| Status: | RESOLVED ABANDONED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | enhancement | ||
| Priority: | P2 | CC: | alberth.dev |
| Version: | HG 2.1 | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Albert Huang
2013-10-01 22:48:46 UTC
Actually I would much prefer an alpha-channel based API over the existing one, if it could be supported on all major platforms. If you provide a new implementation I'll be glad to accept it and add it to the API. Cheers! (In reply to Sam Lantinga from comment #1) > Actually I would much prefer an alpha-channel based API over the existing > one, if it could be supported on all major platforms. By new API do you mean an entirely new API, or what I mentioned before (adding a new WindowShapeMode)? (Just a bit confused with your wording!) > If you provide a new implementation I'll be glad to accept it and add it to > the API. As for the implementation, I've been looking at some platform documentation (Windows, Mac, X11), and then noticed that Qt implements this feature. I did a quick test implementation in PyQt and found their implementation works perfectly. Their code is also easy to find and look at. However... Qt uses the LGPL license, while SDL uses the zlib license. While Qt has been more "free" in recent years, the LGPL license is much more restrictive than the zlib license. (LGPL requires attribution and source code, whereas zlib does not... the latter license is more flexible for game developers, which may be why the license was changed.) That said, from a sort of legal perspective, am I allowed to "look" at the code and use it as a reference to write the API, or must I write it from scratch? Either a new API or a new mode would be fine. Once you add one, migrating it to the other if we want would be trivial. Looking at LGPL code to know what API calls to make is fine. You obviously can't copy the code, but learning from it is okay. Hello, and sorry if you're getting dozens of copies of this message by email. We are closing out bugs that appear to be abandoned in some form. This can happen for lots of reasons: we couldn't reproduce it, conversation faded out, the bug was noted as fixed in a comment but we forgot to mark it resolved, the report is good but the fix is impractical, we fixed it a long time ago without realizing there was an associated report, etc. Individually, any of these bugs might have a better resolution (such as WONTFIX or WORKSFORME or INVALID) but we've added a new resolution of ABANDONED to make this easily searchable and make it clear that it's not necessarily unreasonable to revive a given bug report. So if this bug is still a going concern and you feel it should still be open: please feel free to reopen it! But unless you respond, we'd like to consider these bugs closed, as many of them are several years old and overwhelming our ability to prioritize recent issues. (please note that hundred of bug reports were sorted through here, so we apologize for any human error. Just reopen the bug in that case!) Thanks, --ryan. |