-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Sprite: * Privatizing some member variables in the Sprite class. * Creating a private function Sprite::fetch_frame(). * Texture frames in Sprite now live in unique-ptrs to eliminate a lot of memory swapping overhead. * The Sprite class now has its own name. * Renaming Sprite::init_frame() to Sprite::create_frame() which is more accurate. * Added function Sprite::load_frame() that loads a texture from file. * Added function Sprite::save_frame(). * Added function Sprite::get_curr_frame_texture() which also contains a sanity check. * SpriteHandler_examples.h: * Fixing some syntax errors with begin_screen() / end_screen(). * Fixing bug in star func_frame_to_texture std::function. * Now using load_frame() for background for sprite4.
- Loading branch information
1 parent
3ec8b31
commit 5c2a346
Showing
2 changed files
with
76 additions
and
42 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