sead
Loading...
Searching...
No Matches
agl::env::HemisphereLight Class Reference

#include <aglLight.h>

Inherits agl::env::EnvObj.

Public Member Functions

 HemisphereLight ()
virtual ~HemisphereLight ()
virtual void initialize (s32 view_max, sead::Heap *heap)
virtual void updateView (const sead::Matrix34f &view_mtx, const sead::Matrix44f &proj_mtx, s32 view_index)
virtual ShaderMode drawDebug (const sead::Matrix34f &view_mtx, const sead::Matrix44f &proj_mtx, s32 view_index, ShaderMode mode) const
const sead::Color4fgetSkyColor () const
const sead::Color4fgetGroundColor () const
f32 getIntensity () const
const sead::Vector3fgetDirection () const
const sead::Vector3fgetDiffuseDir (s32 view_index) const
Public Member Functions inherited from agl::env::EnvObj
 EnvObj ()
virtual void postRead_ ()
virtual ~EnvObj ()
virtual void update ()
virtual void callbackLoadData ()
virtual const sead::SafeStringgetEnvObjName () const
virtual const sead::SafeStringgetGroupName () const
virtual const sead::SafeStringgetObjName () const
virtual bool isHostIOEnabled () const
virtual s32 getObjType () const
virtual s32 getTypeID () const =0
s32 getIndex () const
bool isEnableHostIO () const
void setName (const sead::SafeString &name)
bool isEnable () const
void setEnable (bool enable)
ShaderMode drawFog (s32 view_index, f32 start, f32 end, const sead::Vector3f &direction, const sead::Color4f &color, ShaderMode mode) const
Public Member Functions inherited from agl::utl::IParameterObj
 IParameterObj ()
void pushBackListNode (ParameterBase *p_node)
void applyResParameterObj (ResParameterObj obj, IParameterList *p_list=nullptr)
void applyResParameterObjLerp (ResParameterObj obj, f32 t, IParameterList *p_list=nullptr)
void applyResParameterObj (ResParameterObj obj_a, ResParameterObj obj_b, f32 t, IParameterList *p_list=nullptr)
Public Member Functions inherited from agl::utl::INamedObj
 INamedObj ()
virtual ~INamedObj ()

Private Attributes

utl::Parameter< sead::Color4fmSkyColor
utl::Parameter< sead::Color4fmGroundColor
utl::Parameter< f32 > mIntensity
utl::ParameterDirection3f mDirection
sead::Buffer< sead::Vector3fmDiffuseDir

Additional Inherited Members

Public Types inherited from agl::env::EnvObj
enum  MetaInfo {
  cMetaInfo_0 = 0 , cMetaInfo_1 , cMetaInfo_2 , cMetaInfo_3 ,
  cMetaInfo_Num
}
typedef EnvObj *(* TypeCreateFuncPtr) (sead::Heap *)
Static Public Member Functions inherited from agl::env::EnvObj
static s32 getTypeNum ()
static sead::SafeString getTypeName (s32 type)
static TypeCreateFuncPtr getTypeCreateFunc (s32 type)
static s32 * registClass (const sead::SafeString &name, const sead::SafeString &label, TypeCreateFuncPtr p_create_func, MetaInfo meta_info)
Static Public Member Functions inherited from agl::utl::INamedObj
static const sead::SafeStringgetDefaultGroupName ()
Static Public Attributes inherited from agl::env::EnvObj
static const s32 cTypeMax = 64
Protected Member Functions inherited from agl::utl::IParameterObj
s32 makeZero_ ()
void applyResParameterObj_ (ResParameterObj obj, bool lerp, f32 t, IParameterList *p_list)
virtual bool preWrite_ () const
virtual void postWrite_ () const
virtual bool preRead_ ()
virtual bool isApply_ (ResParameterObj obj) const
Protected Attributes inherited from agl::env::EnvObj
EnvObjMgrmpMgr
u16 mIndex
sead::BitFlag16 mFlag
utl::Parameter< sead::FixedSafeString< 32 > > mName
utl::Parameter< sead::FixedSafeString< 32 > > mGroup
utl::Parameter< bool > mEnable
Protected Attributes inherited from agl::utl::IParameterObj
sead::OffsetList< ParameterBasemChildParameter
sead::FixedSafeString< 64 > mName
u32 mNameHash
u32 mChildHash
sead::ListNode mListNode
Static Protected Attributes inherited from agl::env::EnvObj
static s32 sTypeNum = 0
static TypeInfo sTypeInfoTable [cTypeMax]

Constructor & Destructor Documentation

◆ HemisphereLight()

agl::env::HemisphereLight::HemisphereLight ( )

◆ ~HemisphereLight()

agl::env::HemisphereLight::~HemisphereLight ( )
virtual

Member Function Documentation

◆ initialize()

void agl::env::HemisphereLight::initialize ( s32 view_max,
sead::Heap * heap )
virtual

Reimplemented from agl::env::EnvObj.

◆ updateView()

void agl::env::HemisphereLight::updateView ( const sead::Matrix34f & view_mtx,
const sead::Matrix44f & proj_mtx,
s32 view_index )
virtual

Reimplemented from agl::env::EnvObj.

◆ drawDebug()

ShaderMode agl::env::HemisphereLight::drawDebug ( const sead::Matrix34f & view_mtx,
const sead::Matrix44f & proj_mtx,
s32 view_index,
ShaderMode mode ) const
virtual

Reimplemented from agl::env::EnvObj.

◆ getSkyColor()

const sead::Color4f & agl::env::HemisphereLight::getSkyColor ( ) const
inline

◆ getGroundColor()

const sead::Color4f & agl::env::HemisphereLight::getGroundColor ( ) const
inline

◆ getIntensity()

f32 agl::env::HemisphereLight::getIntensity ( ) const
inline

◆ getDirection()

const sead::Vector3f & agl::env::HemisphereLight::getDirection ( ) const
inline

◆ getDiffuseDir()

const sead::Vector3f & agl::env::HemisphereLight::getDiffuseDir ( s32 view_index) const
inline

Member Data Documentation

◆ mSkyColor

utl::Parameter<sead::Color4f> agl::env::HemisphereLight::mSkyColor
private

◆ mGroundColor

utl::Parameter<sead::Color4f> agl::env::HemisphereLight::mGroundColor
private

◆ mIntensity

utl::Parameter<f32> agl::env::HemisphereLight::mIntensity
private

◆ mDirection

utl::ParameterDirection3f agl::env::HemisphereLight::mDirection
private

◆ mDiffuseDir

sead::Buffer<sead::Vector3f> agl::env::HemisphereLight::mDiffuseDir
private