#include <tileanimation.h>
Public Member Functions | |
| void | serialize (std::ostream &os, u16 protocol_ver) const |
| void | deSerialize (std::istream &is, u16 protocol_ver) |
| void | determineParams (v2u32 texture_size, int *frame_count, int *frame_length_ms, v2u32 *frame_size) const |
| void | getTextureModifer (std::ostream &os, v2u32 texture_size, int frame) const |
| v2f | getTextureCoords (v2u32 texture_size, int frame) const |
Public Attributes | ||
| enum TileAnimationType | type = TileAnimationType::TAT_NONE | |
| union { | ||
| struct { | ||
| int aspect_w | ||
| int aspect_h | ||
| float length | ||
| } vertical_frames | ||
| struct { | ||
| int frames_w | ||
| int frames_h | ||
| float frame_length | ||
| } sheet_2d | ||
| }; | ||
| void TileAnimationParams::deSerialize | ( | std::istream & | is, |
| u16 | protocol_ver ) |
References readF32(), readU16(), readU8(), sheet_2d, TAT_NONE, TAT_SHEET_2D, TAT_VERTICAL_FRAMES, type, and vertical_frames.
Referenced by ParticleParameters::deSerialize(), ServerParticleTexture::deSerialize(), and TileDef::deSerialize().
Here is the call graph for this function:
Here is the caller graph for this function:| void TileAnimationParams::determineParams | ( | v2u32 | texture_size, |
| int * | frame_count, | ||
| int * | frame_length_ms, | ||
| v2u32 * | frame_size ) const |
References sheet_2d, TAT_SHEET_2D, TAT_VERTICAL_FRAMES, type, and vertical_frames.
Referenced by getTextureCoords(), getTextureModifer(), Particle::step(), and Particle::updateVertices().
Here is the caller graph for this function:References determineParams(), sheet_2d, TAT_SHEET_2D, TAT_VERTICAL_FRAMES, type, and vertical_frames.
Referenced by Particle::updateVertices().
Here is the call graph for this function:
Here is the caller graph for this function:| void TileAnimationParams::getTextureModifer | ( | std::ostream & | os, |
| v2u32 | texture_size, | ||
| int | frame ) const |
References determineParams(), sheet_2d, TAT_NONE, TAT_SHEET_2D, TAT_VERTICAL_FRAMES, and type.
Here is the call graph for this function:| void TileAnimationParams::serialize | ( | std::ostream & | os, |
| u16 | protocol_ver ) const |
References sheet_2d, TAT_SHEET_2D, TAT_VERTICAL_FRAMES, type, vertical_frames, writeF32(), writeU16(), and writeU8().
Referenced by ParticleParameters::serialize(), ServerParticleTexture::serialize(), and TileDef::serialize().
Here is the call graph for this function:
Here is the caller graph for this function:| union { ... } TileAnimationParams |
| int TileAnimationParams::aspect_h |
Referenced by read_animation_definition().
| int TileAnimationParams::aspect_w |
Referenced by read_animation_definition().
| float TileAnimationParams::frame_length |
Referenced by read_animation_definition(), and ParticleSpawner::spawnParticle().
| int TileAnimationParams::frames_h |
Referenced by read_animation_definition().
| int TileAnimationParams::frames_w |
Referenced by read_animation_definition(), and ParticleSpawner::spawnParticle().
| float TileAnimationParams::length |
Referenced by read_animation_definition(), and ParticleSpawner::spawnParticle().
| struct { ... } TileAnimationParams::sheet_2d |
| enum TileAnimationType TileAnimationParams::type = TileAnimationType::TAT_NONE |
| struct { ... } TileAnimationParams::vertical_frames |