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

#include <aglLight.h>

Inherits agl::env::EnvObj.

Public Member Functions

 AmbientLight ()
virtual ~AmbientLight ()
virtual void update ()
virtual ShaderMode drawDebug (const sead::Matrix34f &view_mtx, const sead::Matrix44f &proj_mtx, s32 view_index, ShaderMode mode) const
const sead::Color4fgetColor () const
f32 getIntensity () const
Public Member Functions inherited from agl::env::EnvObj
 EnvObj ()
virtual void postRead_ ()
virtual ~EnvObj ()
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 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::Color4fmColor
utl::Parameter< f32 > mIntensity

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

◆ AmbientLight()

agl::env::AmbientLight::AmbientLight ( )

◆ ~AmbientLight()

agl::env::AmbientLight::~AmbientLight ( )
virtual

Member Function Documentation

◆ update()

void agl::env::AmbientLight::update ( )
virtual

Reimplemented from agl::env::EnvObj.

◆ drawDebug()

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

Reimplemented from agl::env::EnvObj.

◆ getColor()

const sead::Color4f & agl::env::AmbientLight::getColor ( ) const
inline

◆ getIntensity()

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

Member Data Documentation

◆ mColor

utl::Parameter<sead::Color4f> agl::env::AmbientLight::mColor
private

◆ mIntensity

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