create animation variant using immediate mode animation #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This animation setup is like I described in tsoding/tula#2 and I made true on my threat to make a pull request.
I made a copy of both the squares and the tm animation in the immediate mode style.
You'll see the benefit that it doesn't need to allocate anything to persist across frames other than the assets. For example the tm scene is remade every frame and then play() seeks the animation state it needs to have.
I don't think I fucked up nob.c too much to get it building on operating system for video games, and I won't mind if you revert all that.