-
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.
added easable class to seperate it from drawable
fade out selection box :). implemented pausing videos. video synched to audio.
- Loading branch information
Showing
13 changed files
with
251 additions
and
120 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#include "easable.h" | ||
#include "easer.h" | ||
|
||
Easable::Easable() | ||
{ | ||
|
||
} | ||
|
||
void Easable::update_easers() { | ||
std::vector<Easer *> to_finalize; | ||
for (std::vector<Easer *>::iterator it = this->easers.begin(); it != this->easers.end(); ++it) { | ||
Easer *easer = *it; | ||
if (easer->active) { | ||
easer->update_value(); | ||
if (easer->done()) { | ||
to_finalize.push_back(easer); | ||
} | ||
} | ||
} | ||
while(to_finalize.size()) { | ||
Easer *e = to_finalize.back(); | ||
e->finalize(); | ||
to_finalize.pop_back(); | ||
} | ||
} | ||
|
||
void Easable::add_easer(Easer *value) | ||
{ | ||
this->easers.push_back(value); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#ifndef EASABLE_H | ||
#define EASABLE_H | ||
#include "easer.h" | ||
|
||
class Easable | ||
{ | ||
public: | ||
Easable(); | ||
void update_easers(); | ||
void add_easer(Easer *value); | ||
protected: | ||
std::vector<Easer *> easers; | ||
}; | ||
|
||
#endif // EASABLE_H |
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.