Skip to content

Commit

Permalink
Documentation|MaterialAnimator|Resources|Client: Explained use of Mat…
Browse files Browse the repository at this point in the history
…erialVariantSpec
  • Loading branch information
danij-deng committed Dec 15, 2014
1 parent aefa188 commit 29faaf6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions doomsday/client/include/resource/materialanimator.h
Expand Up @@ -38,8 +38,11 @@
* Animator for a Material within a given client side usage context.
*
* Each usage context has it's own Material animator for an independent animation
* timelines. Additionally, contexts define a @ref MaterialVariantSpec which dictates
* how the various dependent resources are interpreted within that context.
* timeline. Additionally, contexts define a @ref MaterialVariantSpec which dictates
* how the various dependent resources are interpreted within that context. (This is
* necessary because of the quirky behavior of the id Tech 1 map renderer, where the
* texture dimensions are interpreted differently according to whether it is used on
* a "floor" or "wall" map surface).
*/
class MaterialAnimator
{
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/src/resource/materialanimator.cpp
Expand Up @@ -239,7 +239,7 @@ DENG2_PIMPL(MaterialAnimator)
short tics; ///< Remaining (sharp) tics in the current stage.
float inter; ///< Intermark from the current stage to the next [0..1].

String description() const {
String synopsis() const {
return String("stage: %1 tics: %2 inter: %3").arg(stage).arg(tics).arg(inter);
}
};
Expand Down

0 comments on commit 29faaf6

Please sign in to comment.