NSUNI/NSLAR Library a250670
Loading...
Searching...
No Matches
visanimation.hpp File Reference

Contains functions and structures for working with "sub" animations that control the visibility of mesh groups during the playback of main SRT animations. More...

#include <map>
#include <vector>
#include "NNL/common/fixed_type.hpp"
#include "NNL/common/io.hpp"
#include "NNL/simple_asset/sanimation.hpp"

Go to the source code of this file.

Classes

struct  nnl::visanimation::KeyFrame
 Represents a keyframe in a visibility animation. More...
struct  nnl::visanimation::Animation
 Represents a single visibility animation. More...
struct  nnl::visanimation::AnimationContainer
 Holds a collection of visibility animations. More...

Namespaces

namespace  nnl
namespace  nnl::visanimation
 Contains functions and structures for working with "sub" animations that control the visibility of mesh groups during the playback of main SRT animations.

Functions

AnimationContainer nnl::visanimation::Convert (std::vector< SVisibilityAnimation > &&sanimations)
 Converts multiple simple visibility animations to the in-game format.
std::vector< SVisibilityAnimationnnl::visanimation::Convert (const AnimationContainer &animation_container)
 Converts multiple in-game visibility animations to a simpler format.
bool nnl::visanimation::IsOfType (BufferView buffer)
 Tests if the provided file is a visibility animation.
AnimationContainer nnl::visanimation::Import (BufferView buffer)
 Imports animations from a binary file.
Buffer nnl::visanimation::Export (const AnimationContainer &animation_container)
 Exports animations to a binary file format.
Animation nnl::visanimation::Convert (SVisibilityAnimation &&sanimation)
 Converts a simple animation format to an in-game visibility animation.
SVisibilityAnimation nnl::visanimation::Convert (const Animation &animation, u16 flags_disable_left, u16 flags_disable_right)
 Converts an in-game animation to a simpler representation.

Variables

constexpr u16 nnl::visanimation::raw::kMagicBytes = 0
 Magic bytes (?)

Detailed Description

Contains functions and structures for working with "sub" animations that control the visibility of mesh groups during the playback of main SRT animations.

See also
nnl::visanimation::AnimationContainer
nnl::visanimation::IsOfType
nnl::visanimation::Import
nnl::visanimation::Export
nnl::visanimation::Convert
nnl::model::Model::mesh_groups
nnl::animation::AnimationContainer