Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
dDemo_light_c Class Reference

#include <d_demo.h>

+ Inheritance diagram for dDemo_light_c:
+ Collaboration diagram for dDemo_light_c:

Public Types

enum  Enable_e {
  ENABLE_LIGHT_TYPE_e = (1 << 0) , ENABLE_POSITION_e = (1 << 1) , ENABLE_COLOR_e = (1 << 2) , ENABLE_DIST_ATTEN_e = (1 << 3) ,
  ENABLE_ANGLE_ATTEN_e = (1 << 4) , ENABLE_DIRECTION_e = (1 << 5)
}
 

Public Member Functions

 dDemo_light_c ()
 
virtual ~dDemo_light_c ()
 
virtual void JSGSetLightType (JStage::TELight)
 
virtual void JSGSetPosition (Vec const &)
 
virtual void JSGSetColor (GXColor)
 
virtual void JSGSetDistanceAttenuation (f32, f32, GXDistAttnFn)
 
virtual void JSGSetAngleAttenuation (f32, GXSpotFn)
 
virtual void JSGSetDirection (Vec const &)
 
void onEnable (u8 flag)
 
- Public Member Functions inherited from JStage::TLight
virtual ~TLight ()=0
 
virtual s32 JSGFGetType () const
 
virtual bool JSGGetLightType () const
 
virtual void JSGGetPosition (Vec *) const
 
virtual GXColor JSGGetColor () const
 
virtual void JSGGetDistanceAttenuation (f32 *, f32 *, GXDistAttnFn *) const
 
virtual void JSGGetAngleAttenuation (f32 *, GXSpotFn *) const
 
virtual void JSGGetDirection (Vec *) const
 
- Public Member Functions inherited from JStage::TObject
virtual ~TObject ()=0
 
virtual bool JSGGetName () const
 
virtual void JSGUpdate ()
 
virtual u32 JSGGetFlag () const
 
virtual void JSGSetFlag (u32)
 
virtual bool JSGGetData (u32, void *, u32) const
 
virtual void JSGSetData (u32, void const *, u32)
 
virtual void JSGGetParent (JStage::TObject **, u32 *) const
 
virtual void JSGSetParent (JStage::TObject *, u32)
 
virtual void JSGSetRelation (bool, JStage::TObject *, u32)
 
virtual s32 JSGFindNodeID (char const *) const
 
virtual bool JSGGetNodeTransformation (u32, f32(*)[4]) const
 
void JSGFEnableFlag (u32 flag)
 
void JSGFDisableFlag (u32 flag)
 

Private Attributes

u8 mFlags
 
JStage::TELight mLightType
 
GXDistAttnFn mDistAttenFn
 
GXSpotFn mSpotFn
 
cXyz mPosition
 
GXColor mColor
 
f32 field_0x24
 
f32 field_0x28
 
f32 field_0x2c
 
cXyz mDirection
 

Member Enumeration Documentation

◆ Enable_e

Enumerator
ENABLE_LIGHT_TYPE_e 
ENABLE_POSITION_e 
ENABLE_COLOR_e 
ENABLE_DIST_ATTEN_e 
ENABLE_ANGLE_ATTEN_e 
ENABLE_DIRECTION_e 

Constructor & Destructor Documentation

◆ dDemo_light_c()

dDemo_light_c::dDemo_light_c ( )
inline

◆ ~dDemo_light_c()

dDemo_light_c::~dDemo_light_c ( )
virtual

Member Function Documentation

◆ JSGSetAngleAttenuation()

void dDemo_light_c::JSGSetAngleAttenuation ( f32  param_0,
GXSpotFn  i_spotFn 
)
virtual

Reimplemented from JStage::TLight.

◆ JSGSetColor()

void dDemo_light_c::JSGSetColor ( GXColor  i_color)
virtual

Reimplemented from JStage::TLight.

◆ JSGSetDirection()

void dDemo_light_c::JSGSetDirection ( Vec const i_direction)
virtual

Reimplemented from JStage::TLight.

◆ JSGSetDistanceAttenuation()

void dDemo_light_c::JSGSetDistanceAttenuation ( f32  param_0,
f32  param_1,
GXDistAttnFn  i_distAttenFn 
)
virtual

Reimplemented from JStage::TLight.

◆ JSGSetLightType()

void dDemo_light_c::JSGSetLightType ( JStage::TELight  i_lightType)
virtual

Reimplemented from JStage::TLight.

◆ JSGSetPosition()

void dDemo_light_c::JSGSetPosition ( Vec const i_pos)
virtual

Reimplemented from JStage::TLight.

◆ onEnable()

void dDemo_light_c::onEnable ( u8  flag)
inline

Member Data Documentation

◆ field_0x24

f32 dDemo_light_c::field_0x24
private

◆ field_0x28

f32 dDemo_light_c::field_0x28
private

◆ field_0x2c

f32 dDemo_light_c::field_0x2c
private

◆ mColor

GXColor dDemo_light_c::mColor
private

◆ mDirection

cXyz dDemo_light_c::mDirection
private

◆ mDistAttenFn

GXDistAttnFn dDemo_light_c::mDistAttenFn
private

◆ mFlags

u8 dDemo_light_c::mFlags
private

◆ mLightType

JStage::TELight dDemo_light_c::mLightType
private

◆ mPosition

cXyz dDemo_light_c::mPosition
private

◆ mSpotFn

GXSpotFn dDemo_light_c::mSpotFn
private

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