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

#include <dispctrl.hpp>

Public Member Functions

void FadeOutStart (float fade_speed)
 
void FadeInStart (float fade_speed)
 
void FadeInit (float start_rate)
 
float GetRate ()
 
float FadeOut (sceVif1Packet *packet)
 
float FadeIn (sceVif1Packet *packet)
 

Public Attributes

float rate
 
float speed
 
s32 mode
 

Detailed Description

Controls the black screen curtain used for dungeon transitions.

Definition at line 37 of file dispctrl.hpp.

Member Function Documentation

◆ FadeOutStart()

void CDispCtrl::FadeOutStart ( float  fade_speed)

Starts increasing the curtain alpha at the requested speed.

Mangled name:
FadeOutStart__9CDispCtrlFf
Address:
0x13E610
Size:
0x18

Definition at line 239 of file dispctrl.cpp.

◆ FadeInStart()

void CDispCtrl::FadeInStart ( float  fade_speed)

Starts decreasing the curtain alpha at the requested speed.

Mangled name:
FadeInStart__9CDispCtrlFf
Address:
0x13E630
Size:
0x1C

Definition at line 245 of file dispctrl.cpp.

◆ FadeInit()

void CDispCtrl::FadeInit ( float  start_rate)

Sets a fixed curtain alpha without selecting either fade direction.

Mangled name:
FadeInit__9CDispCtrlFf
Address:
0x13E650
Size:
0x14

Definition at line 251 of file dispctrl.cpp.

◆ GetRate()

float CDispCtrl::GetRate ( )

Returns the current curtain alpha.

Mangled name:
GetRate__9CDispCtrlFv
Address:
0x13E670
Size:
0xC

Definition at line 256 of file dispctrl.cpp.

◆ FadeOut()

float CDispCtrl::FadeOut ( sceVif1Packet *  packet)

Advances and draws a curtain that is fading to black.

Mangled name:
FadeOut__9CDispCtrlFP13sceVif1Packet
Address:
0x13E680
Size:
0x168

Definition at line 260 of file dispctrl.cpp.

◆ FadeIn()

float CDispCtrl::FadeIn ( sceVif1Packet *  packet)

Advances and draws a curtain that is fading from black.

Mangled name:
FadeIn__9CDispCtrlFP13sceVif1Packet
Address:
0x13E7F0
Size:
0x160

Definition at line 294 of file dispctrl.cpp.

Member Data Documentation

◆ rate

float CDispCtrl::rate

Current curtain alpha on the GS zero-to-128 scale.

Definition at line 39 of file dispctrl.hpp.

◆ speed

float CDispCtrl::speed

Amount that the curtain alpha changes each step.

Definition at line 40 of file dispctrl.hpp.

◆ mode

s32 CDispCtrl::mode

Selects fading out, fading in, or a fixed alpha.

Definition at line 41 of file dispctrl.hpp.