#include <aglLightMap.h>
Inherits agl::env::EnvObjSet.
Classes | |
| struct | ArrayNode |
| struct | Context |
| struct | DrawArg |
| struct | EnvObjEx |
| class | LightObj |
| struct | ViewInfo |
Public Types | |
| enum | MappingType { cMappingType_Sphere = 0 , cMappingType_SphereBackside , cMappingType_Cube , cMappingType_Num } |
| enum | SliceNum { cSliceNum_Sphere = 1 , cSliceNum_SphereBackside = 2 , cSliceNum_Cube = 6 , cSliceNum_Max = 6 } |
| enum | UniformBlockID { cUniformBlockID_Light = 0 , cUniformBlockID_LightView , cUniformBlockID_LightMip , cUniformBlockID_Num } |
| enum | Sampler { cSampler_LUT = 0 , cSampler_Normal , cSampler_Num } |
| enum | LightMemberIndex { cLightMemberIndex_RimPow = 0 , cLightMemberIndex_RimWidth , cLightMemberIndex_ParamLight , cLightMemberNum } |
| enum | LightViewMemberIndex { cLightViewMemberIndex_RimColor = 0 , cLightViewMemberIndex_LightDir , cLightViewMemberNum } |
| enum | LightMipMemberIndex { cLightMipMemberIndex_SpecPow = 0 , cLightMipMemberIndex_ParamLightMip , cLightMipMemberNum } |
Public Member Functions | |
| LightMap () | |
| virtual | ~LightMap () |
| virtual void | genMessageEachObj (sead::hostio::Context *, s32, const env::EnvObj *) |
| s32 | applyEnvObjData (const env::EnvObj *p_obj, const EnvObjEx *p_ex, s32 light_index) |
| TextureSampler & | getTextureSampler () |
| const TextureSampler & | getTextureSampler () const |
| void | setCalcType (s32 light_index, s32 calc_type) |
| void | setPow (s32 light_index, f32 pow) |
| void | setPowMipMax (s32 light_index, f32 pow_mip_max) |
| void | setColorMinMax (s32 light_index, const sead::Color4f &min, const sead::Color4f &max) |
| void | setDirection (s32 light_index, const sead::Vector3f &direction) |
| void | setLUTType (s32 light_index, s32 lut_type) |
| MappingType | getMappingType () const |
| s32 | getLightingHint () const |
| void | setLightingHint (s32 value) |
| s32 | getChildNum () const |
| LightMap * | get (s32 array_index) |
| const LightMap * | get (s32 array_index) const |
| Public Member Functions inherited from agl::env::EnvObjSet | |
| EnvObjSet () | |
| virtual | ~EnvObjSet () |
| void | bind (EnvObjMgr *p_env_mgr) |
| virtual void | allocBuffer (const AllocateArg &arg, sead::Heap *heap) |
| virtual void | callbackSyncNameToIndex (utl::INamedObjIndex *p_index) |
| virtual void | callbackSyncIndexToName (utl::INamedObjIndex *p_index) |
| void | setName (const sead::SafeString &name) |
| const sead::SafeString & | getName () const |
| bool | pushBack (EnvObj *p_obj) |
| Public Member Functions inherited from agl::env::EnvObjBuffer | |
| EnvObjBuffer () | |
| virtual | ~EnvObjBuffer () |
| virtual void | freeBuffer () |
| s32 | getContainTotal () const |
| void | sort (s32 type) |
| s32 | searchBufferIndex (s32 type, const sead::SafeString &name) const |
| template<typename T> | |
| s32 | searchBufferIndex (const sead::SafeString &name) const |
| s32 | searchTypeIndex (s32 type, const sead::SafeString &name) const |
| template<typename T> | |
| s32 | searchTypeIndex (const sead::SafeString &name) const |
| s32 | searchType (s32 buffer_index) const |
| EnvObj * | getEnvObj (s32 type, s32 index) |
| const EnvObj * | getEnvObj (s32 type, s32 index) const |
| template<typename T> | |
| T * | getEnvObj (s32 index) |
| template<typename T> | |
| const T * | getEnvObj (s32 index) const |
| s32 | getEnvObjStartIndex (s32 type) const |
| template<typename T> | |
| s32 | getEnvObjStartIndex (s32 type) const |
| s32 | getEnvObjMaxNum (s32 type) const |
| template<typename T> | |
| s32 | getEnvObjMaxNum (s32 type) const |
| Public Member Functions inherited from agl::utl::IParameterList | |
| IParameterList () | |
| void | addList (IParameterList *child, const sead::SafeString &name) |
| void | addObj (IParameterObj *child, const sead::SafeString &name) |
| void | applyResParameterList (ResParameterList list) |
| bool | isApply (ResParameterList list) const |
Static Public Attributes | |
| static const s32 | cLightMapMax = 256 |
| static const s32 | cLightObjMax = 8 |
| static const s32 | cMipMax = 3 |
| static const s32 | cBoolMax = 2 |
| static const s32 | cLightingHintMax = 3 |
Protected Member Functions | |
| virtual bool | preRead_ () |
| virtual void | postRead_ () |
| virtual bool | preWrite_ () const |
| virtual void | callbackNotAppliable_ (utl::IParameterObj *p_param_obj, utl::ResParameter res_param) |
| Protected Member Functions inherited from agl::utl::IParameterList | |
| virtual void | postWrite_ () const |
| virtual bool | isApply_ (ResParameterList list) const |
| void | setParameterListName_ (const sead::SafeString &name) |
| void | applyResParameterList_ (ResParameterList list, bool lerp=false, f32 t=1.0f) |
| void | applyResParameterListB_ (ResParameterList list, f32 t) |
Private Types | |
| typedef sead::UnsafeArray< sead::UnsafeArray< sead::GraphicsContextMRT, cBoolMax >, cMappingType_Num > | GraphicsContext |
Private Member Functions | |
| void | initialize_ (const LightMapMgr *p_mgr, const env::EnvObjBuffer::AllocateArg &alloc_arg, s32 view_max, sead::Heap *heap) |
| void | update_ () |
| void | updateGPU_ (bool invalidate_gpu) const |
| void | updateViewGPU_ (s32 view_index, const sead::Matrix34f &view_mtx, bool invalidate_gpu) const |
| ShaderMode | draw_ (s32 view_index, const DrawArg &arg, ShaderMode mode) const |
| void | bindLUT_ (s32 obj_index) |
| void | bindLUT_ () |
| void | initializeRenderBuffer_ (s32 view_index, u32 mip_level) |
| void | initializeTexture_ (u32 size_sphere, u32 size_cube) |
| void | constructMemory_ (sead::Heap *heap) |
Private Attributes | |
| const LightMapMgr * | mpLightMapMgr |
| LightMap * | mpParent |
| sead::Buffer< ViewInfo > | mViewInfo |
| TextureSampler | mTextureSampler |
| TextureData | mTextureData |
| sead::BitFlag8 | mFlag |
| s8 | mChildIndex |
| u8 | mLightObjNum |
| s8 | mParentIndex |
| s8 | mCopyIndex |
| sead::UnsafeArray< LightObj, cLightObjMax > | mLightObj |
| sead::Vector3f | mDirection |
| sead::Color4f | mLightColor |
| sead::Buffer< EnvObjEx > | mEnvObjEx |
| UniformBlock | mUniformBlock |
| sead::Buffer< UniformBlock > | mMipUniformBlock |
| sead::PtrArray< LightMap > | mChild |
| ArrayNode | mArrayNode |
| utl::Parameter< s32 > | mLightingHint |
| utl::Parameter< bool > | mHdrEnable |
| utl::Parameter< bool > | mRimEnable |
| utl::Parameter< f32 > | mRimEffect |
| utl::Parameter< f32 > | mRimWidth |
| utl::Parameter< f32 > | mRimPow |
| utl::Parameter< f32 > | mRimAngle |
| env::EnvObj::Index | mRimLightRef |
| utl::Parameter< s32 > | mMappingType |
| utl::Parameter< sead::FixedSafeString< 32 > > | mParentMap |
| utl::Parameter< sead::FixedSafeString< 32 > > | mCopyMap |
Friends | |
| class | LightMapMgr |
Additional Inherited Members | |
| Protected Attributes inherited from agl::env::EnvObjSet | |
| utl::Parameter< sead::FixedSafeString< 32 > > | mName |
| utl::IParameterList | mObjRefArrayParameterList |
| EnvObjMgr * | mpEnvObjMgr |
| utl::IParameterObj | mSetting |
| sead::Buffer< Ref > | mObjRefArrayBuffer |
| Protected Attributes inherited from agl::env::EnvObjBuffer | |
| u32 | _0 |
| u32 | _4 |
| sead::Buffer< TypeInfo > | mTypeInfo |
| sead::Buffer< EnvObj * > | mEnvObjPtrBuffer |
| u32 | _18 [4/sizeof(u32)] |
| Protected Attributes inherited from agl::utl::IParameterList | |
| sead::OffsetList< IParameterList > | mChildList |
| sead::OffsetList< IParameterObj > | mChildObj |
| sead::FixedSafeString< 64 > | mName |
| u32 | mNameHash |
| sead::ListNode | mListNode |
| IParameterList * | mpParent |
|
private |
| agl::lght::LightMap::LightMap | ( | ) |
|
virtual |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protectedvirtual |
Reimplemented from agl::env::EnvObjSet.
|
protectedvirtual |
Reimplemented from agl::env::EnvObjSet.
|
virtual |
Reimplemented from agl::env::EnvObjSet.
|
protectedvirtual |
Reimplemented from agl::utl::IParameterList.
|
protectedvirtual |
Reimplemented from agl::utl::IParameterList.
| s32 agl::lght::LightMap::applyEnvObjData | ( | const env::EnvObj * | p_obj, |
| const EnvObjEx * | p_ex, | ||
| s32 | light_index ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
static |
|
static |
|
static |
|
static |
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |