-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug in IL_NUM_IMAGES for animations #13
Comments
See also #34. The current implementation of IL_NUM_IMAGES returns the number of images after the currently-bound image. So the result returned depends upon which frame you're currently on (eg if you're on the first frame of a 10 frame animation, IL_NUM_IMAGES will return 9. If you're on frame 2, it'll return 8. And so on.). The animation support is really fuzzy. I'm planning to do some cleanup to clarify how it all works.
The obvious loop is:
But this doesn't work with the current code. I think it should. Most of these same issues also apply to Mipmaps, Layers and Cubemap faces. |
This is an interim commit, just pushed up as a backup. Don't try and _use_ it or anything! I'm making some big changes to the internals, as part of an attempt to sort out the confusing iActive[Image|MipMap|Layer|Face]() situation. (as per bugs DentonW#13 and DentonW#34).
This is an interim commit, just pushed up as a backup. Don't try and _use_ it or anything! I'm making some big changes to the internals, as part of an attempt to sort out the confusing iActive[Image|MipMap|Layer|Face]() situation. (as per bugs DentonW#13 and DentonW#34).
There seems to be some issues with IL_NUM_IMAGES:
The text was updated successfully, but these errors were encountered: