| /NW4C-2.0.3/sources/libraries/anim/res/ |
| D | anim_ResAnimGroup.cpp | 40 ResAnimGroupMember::SetValueForType(void* object, const void* value) const in SetValueForType() 43 NW_NULL_ASSERT(value); in SetValueForType() 49 ResStaticCast<ResBoneMember>(*this).SetValue(object, value); in SetValueForType() 53 ResStaticCast<ResMaterialColorMember>(*this).SetValue(object, value); in SetValueForType() 57 ResStaticCast<ResTextureSamplerMember>(*this).SetValue(object, value); in SetValueForType() 61 ResStaticCast<ResTextureMapperMember>(*this).SetValue(object, value); in SetValueForType() 65 ResStaticCast<ResBlendOperationMember>(*this).SetValue(object, value); in SetValueForType() 69 ResStaticCast<ResTextureCoordinatorMember>(*this).SetValue(object, value); in SetValueForType() 73 ResStaticCast<ResModelMember>(*this).SetValue(object, value); in SetValueForType() 77 ResStaticCast<ResMeshMember>(*this).SetValue(object, value); in SetValueForType() [all …]
|
| /NW4C-2.0.3/include/nw/gfx/ |
| D | gfx_ParticleTime.h | 54 ParticleTime(const ParticleTime& value) 56 m_ParticleTime = value.m_ParticleTime; 62 ParticleTime(s32 value) 64 m_ParticleTime = S32ToParticleTime(value); 70 ParticleTime(f32 value) 72 m_ParticleTime = Float32ToParticleTime(value); 147 ParticleTime& FMod(s32 value) 149 this->m_ParticleTime %= S32ToParticleTime(value); 153 …ParticleTime& operator =(f32 value) { this->m_ParticleTime = Float32ToParticleTime(value); return … 154 …ParticleTime& operator =(s32 value) { this->m_ParticleTime = S32ToParticleTime(value); return *thi… [all …]
|
| /NW4C-2.0.3/sources/libraries/snd/ |
| D | snd_MidiSequencePlayer.cpp | 191 void MidiSequencePlayer::HandleControlChangeMessage( u8 channelIndex, u8 control, u8 value ) in HandleControlChangeMessage() argument 204 param.bankIndex = value; in HandleControlChangeMessage() 207 param.lfoParam.depth = value / 128.0f; in HandleControlChangeMessage() 210 param.initPan = static_cast<s8>(value - 64); in HandleControlChangeMessage() 213 param.portaTime = value; in HandleControlChangeMessage() 219 HandleRpnMessage( channelIndex, value ); in HandleControlChangeMessage() 222 HandleNrpnMessage( channelIndex, value ); in HandleControlChangeMessage() 227 param.volume.SetTarget( value, 0 ); in HandleControlChangeMessage() 231 param.surroundPan.SetTarget( static_cast<s8>(value), 0 ); in HandleControlChangeMessage() 235 param.pan.SetTarget( static_cast<s8>(value - 64), 0 ); in HandleControlChangeMessage() [all …]
|
| D | snd_BiquadFilterPresets.cpp | 608 f32 value, in GetCoefficients() argument 614 int coefIndex = static_cast<int>( static_cast<f32>( coefSize - 1 ) * value ); in GetCoefficients() 633 f32 value, in GetCoefficients() argument 639 int coefIndex = static_cast<int>( static_cast<f32>( coefSize - 1 ) * value ); in GetCoefficients() 658 f32 value, in GetCoefficients() argument 664 value *= ( 2.0f - value ); // 係数の取り方に重み付け in GetCoefficients() 667 int coefIndex = static_cast<int>( static_cast<f32>( coefSize - 1 ) * value ); in GetCoefficients() 686 f32 value, in GetCoefficients() argument 692 value *= ( 2.0f - value ); // 係数の取り方に重み付け in GetCoefficients() 695 int coefIndex = static_cast<int>( static_cast<f32>( coefSize - 1 ) * value ); in GetCoefficients() [all …]
|
| D | snd_WaveSoundFile.cpp | 174 u32 value; in GetPan() local 175 bool result = optionParameter.GetValue( &value, WAVE_SOUND_INFO_PAN ); in GetPan() 177 return Util::DevideBy8bit( value, 0 ); in GetPan() 181 u32 value; in GetSurroundPan() local 182 bool result = optionParameter.GetValue( &value, WAVE_SOUND_INFO_PAN ); in GetSurroundPan() 184 return static_cast<s8>( Util::DevideBy8bit( value, 1 ) ); in GetSurroundPan() 188 f32 value; in GetPitch() local 189 bool result = optionParameter.GetValueF32( &value, WAVE_SOUND_INFO_PITCH ); in GetPitch() 191 return value; in GetPitch() 197 u32 value; in GetSendValue() local [all …]
|
| D | snd_SoundArchiveFile.cpp | 640 u32 value; in GetStringId() local 641 bool result = optionParameter.GetValue( &value, SOUND_INFO_STRING_ID ); in GetStringId() 646 return value; in GetStringId() 651 u32 value; in GetPanMode() local 652 bool result = optionParameter.GetValue( &value, SOUND_INFO_PAN_PARAM ); in GetPanMode() 657 return static_cast<PanMode>( Util::DevideBy8bit( value, 0 ) ); in GetPanMode() 662 u32 value; in GetPanCurve() local 663 bool result = optionParameter.GetValue( &value, SOUND_INFO_PAN_PARAM ); in GetPanCurve() 668 return static_cast<PanCurve>( Util::DevideBy8bit( value, 1 ) ); in GetPanCurve() 673 u32 value; in GetPlayerPriority() local [all …]
|
| D | snd_BankFile.cpp | 300 u32 value; in GetOriginalKey() local 301 bool result = optionParameter.GetValue( &value, VELOCITY_REGION_KEY ); in GetOriginalKey() 303 return Util::DevideBy8bit( value, 0 ); in GetOriginalKey() 308 u32 value; in GetVolume() local 309 bool result = optionParameter.GetValue( &value, VELOCITY_REGION_VOLUME ); in GetVolume() 311 return Util::DevideBy8bit( value, 0 ); in GetVolume() 316 u32 value; in GetPan() local 317 bool result = optionParameter.GetValue( &value, VELOCITY_REGION_PAN ); in GetPan() 319 return Util::DevideBy8bit( value, 0 ); in GetPan() 325 u32 value; in GetSurroundPan() local [all …]
|
| D | snd_Sound3DListener.cpp | 100 void Sound3DListener::SetUnitBiquadFilterValue( f32 value ) in SetUnitBiquadFilterValue() argument 102 NW_MINMAX_ASSERT( value, 0.0f, 1.0f ); in SetUnitBiquadFilterValue() 103 m_UnitBiquadFilterValue = value; in SetUnitBiquadFilterValue() 106 void Sound3DListener::SetMaxBiquadFilterValue( f32 value ) in SetMaxBiquadFilterValue() argument 108 NW_MINMAX_ASSERT( value, 0.0f, 1.0f ); in SetMaxBiquadFilterValue() 109 m_MaxBiquadFilterValue = value; in SetMaxBiquadFilterValue()
|
| /NW4C-2.0.3/include/nw/lyt/ |
| D | lyt_Resources.h | 455 void SetWarpModeS(u8 value) in SetWarpModeS() 457 NW_ASSERT(value < TEXWRAP_MAX); in SetWarpModeS() 458 internal::SetBits(&wrapSflt, 0, 2, value); in SetWarpModeS() 467 void SetWarpModeT(u8 value) in SetWarpModeT() 469 NW_ASSERT(value < TEXWRAP_MAX); in SetWarpModeT() 470 internal::SetBits(&wrapTflt, 0, 2, value); in SetWarpModeT() 479 void SetMinFilter(u8 value) in SetMinFilter() 481 NW_ASSERT(value < TEXFILTER_MAX); in SetMinFilter() 482 internal::SetBits(&wrapSflt, 2, 2, value); in SetMinFilter() 491 void SetMagFilter(u8 value) in SetMagFilter() [all …]
|
| D | lyt_Types.h | 230 } value; 231 value.f32 = val; 232 m_Bits = internal::SwapInt(value.u32); 242 } value; 243 value.u32 = internal::SwapInt(m_Bits); 244 return value.f32; 252 } value; 253 value.f32 = val; 254 m_Bits = internal::SwapInt(value.u32); 1818 void SetCombineRgb(TevMode value) in SetCombineRgb() [all …]
|
| D | lyt_Material.h | 361 void SetTexMap(u32 idx, const TexMap& value) in SetTexMap() argument 364 GetTexMapAry()[idx] = value; in SetTexMap() 383 void SetTexMap(u32 idx, const TextureInfo& value) in SetTexMap() argument 386 GetTexMapAry()[idx].Set(value); in SetTexMap() 427 void SetTexSRT(u32 idx, const TexSRT& value) in SetTexSRT() argument 430 GetTexSRTAry()[idx] = value; in SetTexSRT() 472 void SetTexCoordGen(u32 idx, const TexCoordGen& value) in SetTexCoordGen() argument 475 GetTexCoordGenAry()[idx] = value; in SetTexCoordGen() 525 void SetTexSRTElement(u32 idx, u32 eleIdx, f32 value) in SetTexSRTElement() argument 530 srtAry[eleIdx] = value; in SetTexSRTElement() [all …]
|
| D | lyt_Common.h | 205 u8 value in SetVtxColorElement() argument 210 reinterpret_cast<u8*>(&cols[idx / sizeof(ut::Color8)])[idx % sizeof(ut::Color8)] = value; in SetVtxColorElement() 248 static void SetTextureSamplerType(GraphicsResource& graphicsResource, int index, int value); 249 static void SetTevCombineRgb(GraphicsResource& graphicsResource, int index, TevMode value); 250 static void SetTevCombineAlpha(GraphicsResource& graphicsResource, int index, TevMode value); 255 static void SetTevScaleRgb(GraphicsResource& graphicsResource, int index, TevScale value); 256 static void SetTevScaleAlpha(GraphicsResource& graphicsResource, int index, TevScale value); 257 static void SetTevConstRgba(GraphicsResource& graphicsResource, int index, ut::Color8 value); 259 static void SetTevBufferColor(GraphicsResource &graphicsResource, ut::Color8 value); 261 static void SetEnableAlphaTest(GraphicsResource& graphicsResource, bool value); [all …]
|
| D | lyt_Pane.h | 244 void SetTranslate(const math::VEC3& value) in SetTranslate() argument 246 m_Translate = value; in SetTranslate() 261 void SetTranslate(const math::VEC2& value) in SetTranslate() argument 263 SetTranslate(math::VEC3(value.x, value.y, 0.f)); in SetTranslate() 287 void SetRotate(const math::VEC3& value) in SetRotate() argument 289 m_Rotate = value; in SetRotate() 314 void SetScale(const math::VEC2& value) in SetScale() argument 316 m_Scale = value; in SetScale() 341 void SetSize(const Size& value) in SetSize() argument 343 m_Size = value; in SetSize() [all …]
|
| /NW4C-2.0.3/include/nw/ut/ |
| D | ut_Float24.h | 46 static u32 Float32ToBits32(f32 value) in Float32ToBits32() argument 48 return *reinterpret_cast<u32*>(&value); in Float32ToBits32() 58 static f32 Bits32ToFloat32(u32 value) in Bits32ToFloat32() argument 60 return *reinterpret_cast<f32*>(&value); in Bits32ToFloat32() 96 /* implicit */ Float24( f32 value ) : m_Float32( value ) {} in Float24() argument 101 Float24& operator =(f32 value) { this->m_Float32 = value; return *this; } 160 static u32 Float32ToBits24(f32 value) in Float32ToBits24() argument 162 u32 bits32 = *reinterpret_cast<u32*>(&value); in Float32ToBits24() 253 /* implicit */ Float31( f32 value ) : m_Float32( value ) {} in Float31() argument 258 Float31& operator =(f32 value) { this->m_Float32 = value; return *this; } [all …]
|
| D | ut_Flag.h | 77 EnableFlag(const TFlags& flags, const TValue& value) in EnableFlag() argument 79 return flags | static_cast<TFlags>(value); in EnableFlag() 90 DisableFlag(const TFlags& flags, const TValue& value) in DisableFlag() argument 92 return flags & ~(static_cast<TFlags>(value)); in DisableFlag() 123 SetFlagValue(const TFlags& flags, int shift, const TMask& mask, const TValue& value) in SetFlagValue() argument 125 return (flags & ~(static_cast<TFlags>(mask))) | ((value << shift) & static_cast<TFlags>(mask)); in SetFlagValue()
|
| D | ut_ResDeclMacros.h | 31 void Set##name(type value) { ref().m_##name = value; } \ 35 void Set##name(type value) { ref().m_##name = value; } \ 36 …void Enable##name(type value) { ref().m_##name = ut::EnableFlag(ref().m_##name, value); } … 37 …void Disable##name(type value) { ref().m_##name = ut::DisableFlag(ref().m_##name, value); }… 41 void Set##name(bool value) { ref().m_Is##name = value; } \ 55 void Set##name(const type& value) { ref().m_##name = value; } \ 60 void Set##name(const type& value) { ref().m_##name = value; } \ 65 void Set##name(const type& value) { ref().m_##name = value; } \ 72 void Set##name(const type& value) { ref().m_##name = value; } \ 78 void Set##name(const type& value) { ref().m_##name = value; } \ [all …]
|
| /NW4C-2.0.3/include/nw/gfx/res/ |
| D | gfx_ResMaterial.h | 274 void SetAmbient( const nw::ut::FloatColor& value ) in SetAmbient() argument 276 this->SetAmbient(value.r, value.g, value.b); in SetAmbient() 491 void SetCullingMode(CullingMode value) in SetCullingMode() argument 495 this->ref().m_CullingMode = static_cast<u32>(value); in SetCullingMode() 505 internal::SetCmdValue( &ref().m_CommandBuffer[0], table[value], CMD_MASK, CMD_SHIFT ); in SetCullingMode() 595 void SetMode(Mode value) in SetMode() argument 599 ref().m_Mode = value; in SetMode() 609 internal::SetCmdValue( &ref().m_CommandBuffer[0], table[value], CMD_MASK, CMD_SHIFT ); in SetMode() 660 void SetBlendColor(const nw::ut::FloatColor& value) in SetBlendColor() argument 664 ref().m_BlendColor = value; in SetBlendColor() [all …]
|
| D | gfx_ResTextureMapper.h | 127 void SetMinFilter(MinFilter value) in SetMinFilter() argument 129 this->ref().m_MinFilter = static_cast<MinFilter>(value); in SetMinFilter() 157 u32 value2 = table2[value]; in SetMinFilter() 169 u32 value24 = table24[value]; in SetMinFilter() 197 void SetMagFilter(MagFilter value) in SetMagFilter() argument 206 internal::SetCmdValue( &command.second[CMD_INDEX], value, CMD_MASK, CMD_SHIFT ); in SetMagFilter() 216 void SetSamplerType(SamplerType value) in SetSamplerType() argument 225 internal::SetCmdValue( &command.second[CMD_INDEX], value, CMD_MASK, CMD_SHIFT ); in SetSamplerType() 301 void SetBorderColor(const ut::FloatColor& value) { in SetBorderColor() argument 302 ref().m_BorderColor = value; in SetBorderColor() [all …]
|
| D | gfx_ResFragmentShader.h | 707 void SetTestEnabled(bool value) in SetTestEnabled() argument 711 internal::SetCmdValue( &ref().m_CommandBuffer[0], value, CMD_MASK, CMD_SHIFT ); in SetTestEnabled() 731 void SetTestFunc(TestFunc value) in SetTestFunc() argument 735 internal::SetCmdValue( &ref().m_CommandBuffer[0], value, CMD_MASK, CMD_SHIFT ); in SetTestFunc() 755 void SetTestReference(f32 value) in SetTestReference() argument 759 …internal::SetCmdValue( &ref().m_CommandBuffer[0], (0.5f + (value * 255.0f)), CMD_MASK, CMD_SHIFT ); in SetTestReference() 926 void SetSourceRgb(s32 index, Source value) in SetSourceRgb() argument 932 internal::SetCmdValue( &ref().m_CmdSource, value, CMD_MASK, CMD_WIDTH * index ); in SetSourceRgb() 957 void SetSourceAlpha(s32 index, Source value) in SetSourceAlpha() argument 963 internal::SetCmdValue( &ref().m_CmdSource, value, CMD_MASK, CMD_WIDTH * index + CMD_SHIFT ); in SetSourceAlpha() [all …]
|
| /NW4C-2.0.3/sources/libraries/lyt/ |
| D | lyt_Common.cpp | 243 ColorU8ToFloat(u8 value) in ColorU8ToFloat() argument 245 return 1.0F / 255 * value; in ColorU8ToFloat() 452 GL::SetTextureSamplerType(GraphicsResource& graphicsResource, int index, int value) in SetTextureSamplerType() argument 457 glUniform1i(loc, value); in SetTextureSamplerType() 474 GL::SetTevCombineRgb(GraphicsResource& graphicsResource, int index, TevMode value) in SetTevCombineRgb() argument 479 glUniform1i(loc, tevMode[value]); in SetTevCombineRgb() 483 GL::SetTevCombineAlpha(GraphicsResource& graphicsResource, int index, TevMode value) in SetTevCombineAlpha() argument 488 glUniform1i(loc, tevMode[value]); in SetTevCombineAlpha() 601 GL::SetTevScaleRgb(GraphicsResource& graphicsResource, int index, TevScale value) in SetTevScaleRgb() argument 606 glUniform1f(loc, scale[value]); in SetTevScaleRgb() [all …]
|
| D | lyt_TextBox.cpp | 58 f32 value, in AdjustCenterValue() argument 62 f32 ret = value / 2; in AdjustCenterValue() 235 ut::Color8 value in SetVtxColor() argument 240 SetTextColor(idx / 2, value); in SetVtxColor() 252 TextBox::SetVtxColorElement(u32 idx, u8 value) in SetVtxColorElement() argument 259 elm = value; in SetVtxColorElement() 545 u32 value = 0; in SetTextPos() local 554 … default: value = font::WideTextWriter::HORIZONTAL_ALIGN_LEFT; break; in SetTextPos() 555 … case HORIZONTALPOSITION_CENTER: value = font::WideTextWriter::HORIZONTAL_ALIGN_CENTER; break; in SetTextPos() 556 … case HORIZONTALPOSITION_RIGHT: value = font::WideTextWriter::HORIZONTAL_ALIGN_RIGHT; break; in SetTextPos() [all …]
|
| /NW4C-2.0.3/include/nw/anim/res/ |
| D | anim_ResAnimGroup.h | 311 void SetValueForType(void* object, const void* value) const; 341 void SetValue(void* object, const void* value) const; 372 void SetValue(void* object, const void* value) const; 394 void SetValue(void* object, const void* value) const; 416 void SetValue(void* object, const void* value) const; 437 void SetValue(void* object, const void* value) const; 463 void SetValue(void* object, const void* value) const; 483 void SetValue(void* object, const void* value) const; 504 void SetValue(void* object, const void* value) const; 525 void SetValue(void* object, const void* value) const; [all …]
|
| D | anim_ResAnimCurve.h | 29 Round( f32 value ) in Round() argument 31 return nn::math::FFloor(value + 0.5f); in Round() 35 CastS9_10ToF32( s32 value ) in CastS9_10ToF32() argument 37 return f32(value) * (1.f / 1024.f); in CastS9_10ToF32() 41 CastF32ToS9_10( f32 value ) in CastF32ToS9_10() argument 43 return s32(Round(value * 1024.f)); in CastF32ToS9_10() 47 CastS7_8ToF32( s32 value ) in CastS7_8ToF32() argument 49 return f32(value) * (1.f / 256.f); in CastS7_8ToF32() 53 CastF32ToS7_8( f32 value ) in CastF32ToS7_8() argument 55 return s32(Round(value * 256.f)); in CastF32ToS7_8() [all …]
|
| /NW4C-2.0.3/sources/libraries/gfx/ |
| D | gfx_ParticleSet.cpp | 1026 const f32 value = floatInitializer.GetImmediateValue(); in InitializeParticles() local 1034 storagePtr[index] = value; in InitializeParticles() 1049 const nw::math::VEC2 value = vec2Initializer.GetImmediateValue(); in InitializeParticles() local 1057 storagePtr[index] = value; in InitializeParticles() 1074 const nw::math::VEC3 value = vec3Initializer.GetImmediateValue(); in InitializeParticles() local 1082 storagePtr[index] = value; in InitializeParticles() 1107 f32 value = baseValue; in InitializeParticles() local 1111 value += value * this->m_ParticleRandom.NextFloatSignedOne() * random; in InitializeParticles() 1114 storagePtr[index] = value; in InitializeParticles() 1378 nw::math::VEC3 value(baseValue); in InitializeParticles() local [all …]
|
| /NW4C-2.0.3/include/nw/snd/ |
| D | snd_BiquadFilterPresets.h | 35 virtual void GetCoefficients( int type, f32 value, Coefficients* coef ) const; 50 virtual void GetCoefficients( int type, f32 value, Coefficients* coef ) const; 65 virtual void GetCoefficients( int type, f32 value, Coefficients* coef ) const; 80 virtual void GetCoefficients( int type, f32 value, Coefficients* coef ) const; 95 virtual void GetCoefficients( int type, f32 value, Coefficients* coef ) const;
|