NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
nw4r::g3d::LightObj Class Reference

Description

Definition at line 18 of file g3d_light.h.

Public Member Functions

LightObjoperator= (const LightObj &rOther)
 
 operator GXLightObj * ()
 
 operator const GXLightObj * () const
 
void Clear ()
 
void InitLightColor (GXColor color)
 
void InitLightPos (f32 x, f32 y, f32 z)
 
void InitLightDir (f32 nx, f32 ny, f32 nz)
 
void InitSpecularDir (f32 nx, f32 ny, f32 nz)
 
void InitLightSpot (f32 cutoff, GXSpotFn spotFn)
 
void InitLightAttnA (f32 aa, f32 ab, f32 ac)
 
void InitLightDistAttn (f32 distance, f32 brightness, GXDistAttnFn distAttnFn)
 
void InitLightAttnK (f32 ka, f32 kb, f32 kc)
 
void InitLightShininess (f32 shininess)
 
void GetLightPos (math::VEC3 *pPos) const
 
void GetLightDir (math::VEC3 *pDir) const
 
void ApplyViewMtx (const math::MTX34 &rCamera)
 
void Enable ()
 
void Disable ()
 
bool IsEnable () const
 
bool IsSpotLight () const
 
bool IsSpecularLight () const
 
bool IsSpecularDir () const
 
bool IsColorEnable () const
 
void DisableColor ()
 
bool IsAlphaEnable () const
 
void DisableAlpha ()
 
bool IsDiffuseLight () const
 

Private Types

enum  LightObjFlag {
  FLAG_SPOT = (1 << 0) ,
  FLAG_SPECULAR = (1 << 1) ,
  FLAG_ENABLE_LIGHT = (1 << 2) ,
  FLAG_SPECULAR_DIR = (1 << 3) ,
  FLAG_DISABLE_COLOR = (1 << 4) ,
  FLAG_DISABLE_ALPHA = (1 << 5)
}
 

Private Attributes

ulong mFlag
 
GXLightObj mObj
 

Member Enumeration Documentation

◆ LightObjFlag

enum nw4r::g3d::LightObj::LightObjFlag
private

Definition at line 90 of file g3d_light.h.

Constructor & Destructor Documentation

◆ LightObj()

nw4r::g3d::LightObj::LightObj ( )
inline

Definition at line 20 of file g3d_light.h.

◆ ~LightObj()

nw4r::g3d::LightObj::~LightObj ( )
inline

Definition at line 21 of file g3d_light.h.

Member Function Documentation

◆ operator GXLightObj *()

nw4r::g3d::LightObj::operator GXLightObj * ( )
inline

Definition at line 25 of file g3d_light.h.

◆ operator const GXLightObj *()

nw4r::g3d::LightObj::operator const GXLightObj * ( ) const
inline

Definition at line 28 of file g3d_light.h.

◆ Enable()

void nw4r::g3d::LightObj::Enable ( )
inline

Definition at line 50 of file g3d_light.h.

◆ Disable()

void nw4r::g3d::LightObj::Disable ( )
inline

Definition at line 53 of file g3d_light.h.

◆ IsEnable()

bool nw4r::g3d::LightObj::IsEnable ( ) const
inline

Definition at line 57 of file g3d_light.h.

◆ IsSpotLight()

bool nw4r::g3d::LightObj::IsSpotLight ( ) const
inline

Definition at line 61 of file g3d_light.h.

◆ IsSpecularLight()

bool nw4r::g3d::LightObj::IsSpecularLight ( ) const
inline

Definition at line 64 of file g3d_light.h.

◆ IsSpecularDir()

bool nw4r::g3d::LightObj::IsSpecularDir ( ) const
inline

Definition at line 67 of file g3d_light.h.

◆ IsColorEnable()

bool nw4r::g3d::LightObj::IsColorEnable ( ) const
inline

Definition at line 71 of file g3d_light.h.

◆ DisableColor()

void nw4r::g3d::LightObj::DisableColor ( )
inline

Definition at line 74 of file g3d_light.h.

◆ IsAlphaEnable()

bool nw4r::g3d::LightObj::IsAlphaEnable ( ) const
inline

Definition at line 78 of file g3d_light.h.

◆ DisableAlpha()

void nw4r::g3d::LightObj::DisableAlpha ( )
inline

Definition at line 81 of file g3d_light.h.

◆ IsDiffuseLight()

bool nw4r::g3d::LightObj::IsDiffuseLight ( ) const
inline

Definition at line 85 of file g3d_light.h.

Member Data Documentation

◆ mFlag

ulong nw4r::g3d::LightObj::mFlag
private

Definition at line 100 of file g3d_light.h.

◆ mObj

GXLightObj nw4r::g3d::LightObj::mObj
private

Definition at line 101 of file g3d_light.h.