-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87235e1
commit 6fabc6b
Showing
69 changed files
with
1,929 additions
and
1,723 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
window.MathJax = { | ||
tex: { | ||
inlineMath: [["\\(", "\\)"]], | ||
displayMath: [["\\[", "\\]"]], | ||
processEscapes: true, | ||
processEnvironments: true | ||
}, | ||
options: { | ||
ignoreHtmlClass: ".*|", | ||
processHtmlClass: "arithmatex" | ||
} | ||
}; | ||
|
||
document$.subscribe(() => { | ||
MathJax.typesetPromise() | ||
}) |
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,29 @@ | ||
|
||
|
||
Animations (also called _Model Animations_) form part of the animations system of the _ZenGin_ they contain only | ||
animation samples, i.e. the position and orientation of each bone of the skeleton they're applied to. While there is | ||
space for additional data within animation files, it is mostly empty. | ||
|
||
## Overview | ||
|
||
*phoenix'* implementation of animations lives in `include/phoenix/animation.hh` and `source/animation.cc`. The most | ||
important part of an animation are its samples. They are stored in `animation::samples` after it has been parsed. | ||
Animation files themselves don't contain information about when to run animation or any other effects which should be | ||
applied during it. Those parts of the animation system are defined in [Model Script](formats/model-script.md) files | ||
which should be loaded before animations. The `animation::events` field will always be empty for that reason. | ||
|
||
|
||
### Loading a Font | ||
|
||
Like most data structures in *phoenix*, animations can be loaded using the `#!cpp phoenix::animation::parse()` function. | ||
It takes a `phoenix::buffer` as a parameter and loads the animation from it. | ||
|
||
```cpp title="Example" | ||
#include <phoenix/animation.hh> | ||
|
||
int main(int, const char** argv) { | ||
auto anim_buffer = phoenix::buffer::mmap("A.man"); | ||
[[maybe_unused]] auto anim = phoenix::animation::parse(anim_buffer); | ||
return 0; | ||
} | ||
``` |
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.