Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor|Model Renderer|libgui: Added ModelDrawable::Appearance
Added a new object that contains parameters that affect how a model gets drawn. ModelDrawable::Appearance contains the rendering passes, mask for active passes, material to use for each pass, and callbacks for changing the program and pass. This allows StateAnimator to maintain this information internally for each animated object, rather than having to pass it to the model renderer that does the draw calls.
- Loading branch information
Showing
5 changed files
with
269 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.