DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
CTexAnimeData Class Reference

#include <textureanime.hpp>

Public Member Functions

void Initialize ()
 
 CTexAnimeData ()
 

Public Attributes

s16 kind
 
s16 group
 
s16 duration
 
s16 linked_group
 
CTextureTexAnime first_texture
 
CTextureTexAnime second_texture
 
s16 source_x
 
s16 source_y
 
s16 source_width
 
s16 source_height
 
s16 dest_x
 
s16 dest_y
 
float scroll_x_step
 
float scroll_y_step
 
float scroll_x
 
float scroll_y
 
CTexAnimeData * next
 

Detailed Description

Animates the texture of one part of a model.

Definition at line 33 of file textureanime.hpp.

Constructor & Destructor Documentation

◆ CTexAnimeData()

CTexAnimeData::CTexAnimeData ( )

Constructs an inactive texture-animation record.

Mangled name:
__ct__13CTexAnimeDataFv
Address:
0x1670A0
Size:
0x30

Definition at line 33 of file textureanime.cpp.

Member Function Documentation

◆ Initialize()

void CTexAnimeData::Initialize ( )

Sets the animation to play no frame.

Mangled name:
Initialize__13CTexAnimeDataFv
Address:
0x1670D0
Size:
0x9C

Definition at line 37 of file textureanime.cpp.

Member Data Documentation

◆ kind

s16 CTexAnimeData::kind

Record kind: -1 free, 0 rectangle copy, 1 scrolling copy.

Definition at line 35 of file textureanime.hpp.

◆ group

s16 CTexAnimeData::group

Animation group the record belongs to.

Definition at line 36 of file textureanime.hpp.

◆ duration

s16 CTexAnimeData::duration

Frames the record plays for; zero also plays the next record, -1 holds forever.

Definition at line 37 of file textureanime.hpp.

◆ linked_group

s16 CTexAnimeData::linked_group

Group enabled while the record plays, or -1 for none.

Definition at line 38 of file textureanime.hpp.

◆ first_texture

CTextureTexAnime CTexAnimeData::first_texture

First texture endpoint used by the animation.

Definition at line 39 of file textureanime.hpp.

◆ second_texture

CTextureTexAnime CTexAnimeData::second_texture

Second texture endpoint used by the animation.

Definition at line 40 of file textureanime.hpp.

◆ source_x

s16 CTexAnimeData::source_x

Left edge of the rectangle copied from the first texture.

Definition at line 41 of file textureanime.hpp.

◆ source_y

s16 CTexAnimeData::source_y

Top edge of the rectangle copied from the first texture.

Definition at line 42 of file textureanime.hpp.

◆ source_width

s16 CTexAnimeData::source_width

Width of the rectangle copied from the first texture.

Definition at line 43 of file textureanime.hpp.

◆ source_height

s16 CTexAnimeData::source_height

Height of the rectangle copied from the first texture.

Definition at line 44 of file textureanime.hpp.

◆ dest_x

s16 CTexAnimeData::dest_x

Left edge the rectangle is copied to in the second texture.

Definition at line 45 of file textureanime.hpp.

◆ dest_y

s16 CTexAnimeData::dest_y

Top edge the rectangle is copied to in the second texture.

Definition at line 46 of file textureanime.hpp.

◆ scroll_x_step

float CTexAnimeData::scroll_x_step

Horizontal texture-scroll increment per frame.

Definition at line 47 of file textureanime.hpp.

◆ scroll_y_step

float CTexAnimeData::scroll_y_step

Vertical texture-scroll increment per frame.

Definition at line 48 of file textureanime.hpp.

◆ scroll_x

float CTexAnimeData::scroll_x

Current horizontal texture-scroll offset.

Definition at line 49 of file textureanime.hpp.

◆ scroll_y

float CTexAnimeData::scroll_y

Current vertical texture-scroll offset.

Definition at line 50 of file textureanime.hpp.

◆ next

CTexAnimeData* CTexAnimeData::next

Links the record to the next animation in its group.

Definition at line 51 of file textureanime.hpp.