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

#include <aglFog.h>

Inherits agl::env::EnvObj.

Public Member Functions

 Fog ()
virtual ~Fog ()
virtual ShaderMode drawDebug (const sead::Matrix34f &view_mtx, const sead::Matrix44f &proj_mtx, s32 view_index, ShaderMode mode) const
f32 getStart () const
f32 getEnd () const
f32 getStartEndInv () const
const sead::Color4fgetColor () const
const sead::Vector3fgetDirection () 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 update ()
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< f32 > mStart
utl::Parameter< f32 > mEnd
utl::Parameter< sead::Color4fmColor
utl::ParameterDirection3f mDirection

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

◆ Fog()

agl::env::Fog::Fog ( )

◆ ~Fog()

virtual agl::env::Fog::~Fog ( )
inlinevirtual

Member Function Documentation

◆ drawDebug()

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

Reimplemented from agl::env::EnvObj.

◆ getStart()

f32 agl::env::Fog::getStart ( ) const
inline

◆ getEnd()

f32 agl::env::Fog::getEnd ( ) const
inline

◆ getStartEndInv()

f32 agl::env::Fog::getStartEndInv ( ) const
inline

◆ getColor()

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

◆ getDirection()

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

Member Data Documentation

◆ mStart

utl::Parameter<f32> agl::env::Fog::mStart
private

◆ mEnd

utl::Parameter<f32> agl::env::Fog::mEnd
private

◆ mColor

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

◆ mDirection

utl::ParameterDirection3f agl::env::Fog::mDirection
private