Luanti 5.19.0-dev
Loading...
Searching...
No Matches
TileAnimationParams Struct Reference

#include <tileanimation.h>

Classes

union  [union].__unnamed0__

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
void extractFirstFrame (std::string &name) const

Public Attributes

enum TileAnimationType type = TileAnimationType::TAT_NONE
union  

Member Function Documentation

◆ deSerialize()

void TileAnimationParams::deSerialize ( std::istream & is,
u16 protocol_ver )

References readF32(), readU16(), readU8(), TAT_NONE, TAT_SHEET_2D, TAT_VERTICAL_FRAMES, and type.

Referenced by ItemImageDef::deSerialize(), ParticleParameters::deSerialize(), ServerParticleTexture::deSerialize(), TileDef::deSerialize(), and Client::handleCommand_AddParticleSpawner().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ determineParams()

void TileAnimationParams::determineParams ( v2u32 texture_size,
int * frame_count,
int * frame_length_ms,
v2u32 * frame_size ) const

References TAT_NONE, TAT_SHEET_2D, TAT_VERTICAL_FRAMES, and type.

Referenced by createAnimationFrames(), getTextureCoords(), getTextureModifer(), Particle::step(), and Particle::updateVertices().

Here is the caller graph for this function:

◆ extractFirstFrame()

void TileAnimationParams::extractFirstFrame ( std::string & name) const

References str_texture_modifiers_escape(), TAT_NONE, TAT_SHEET_2D, TAT_VERTICAL_FRAMES, and type.

Referenced by ItemImageDef::serialize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTextureCoords()

v2f TileAnimationParams::getTextureCoords ( v2u32 texture_size,
int frame ) const

References determineParams(), TAT_NONE, TAT_SHEET_2D, TAT_VERTICAL_FRAMES, and type.

Referenced by Particle::updateVertices().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTextureModifer()

void TileAnimationParams::getTextureModifer ( std::ostream & os,
v2u32 texture_size,
int frame ) const

References determineParams(), TAT_NONE, TAT_SHEET_2D, TAT_VERTICAL_FRAMES, and type.

Referenced by createAnimationFrames().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ serialize()

void TileAnimationParams::serialize ( std::ostream & os,
u16 protocol_ver ) const

References TAT_SHEET_2D, TAT_VERTICAL_FRAMES, type, writeF32(), writeU16(), and writeU8().

Referenced by Server::SendAddParticleSpawner(), ItemImageDef::serialize(), ParticleParameters::serialize(), ServerParticleTexture::serialize(), and TileDef::serialize().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ @307244250267162011320256356314141124313341102174

◆ type


The documentation for this struct was generated from the following files: