Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 115) sorted by relevance

12345

/NW4C-1.3.3/sources/libraries/anim/res/
Danim_ResAnimGroup.cpp38 ResAnimGroupMember::SetValueForType(void* object, const void* value) const in SetValueForType()
41 NW_NULL_ASSERT(value); in SetValueForType()
47 ResStaticCast<ResBoneMember>(*this).SetValue(object, value); in SetValueForType()
51 ResStaticCast<ResMaterialColorMember>(*this).SetValue(object, value); in SetValueForType()
55 ResStaticCast<ResTextureSamplerMember>(*this).SetValue(object, value); in SetValueForType()
59 ResStaticCast<ResTextureMapperMember>(*this).SetValue(object, value); in SetValueForType()
63 ResStaticCast<ResBlendOperationMember>(*this).SetValue(object, value); in SetValueForType()
67 ResStaticCast<ResTextureCoordinatorMember>(*this).SetValue(object, value); in SetValueForType()
71 ResStaticCast<ResModelMember>(*this).SetValue(object, value); in SetValueForType()
75 ResStaticCast<ResMeshMember>(*this).SetValue(object, value); in SetValueForType()
[all …]
/NW4C-1.3.3/include/nw/gfx/
Dgfx_ParticleTime.h52 ParticleTime(const ParticleTime& value)
54 m_ParticleTime = value.m_ParticleTime;
60 ParticleTime(s32 value)
62 m_ParticleTime = S32ToParticleTime(value);
68 ParticleTime(f32 value)
70 m_ParticleTime = Float32ToParticleTime(value);
145 ParticleTime& FMod(s32 value)
147 this->m_ParticleTime %= S32ToParticleTime(value);
151 …ParticleTime& operator =(f32 value) { this->m_ParticleTime = Float32ToParticleTime(value); return …
152 …ParticleTime& operator =(s32 value) { this->m_ParticleTime = S32ToParticleTime(value); return *thi…
[all …]
/NW4C-1.3.3/sources/libraries/snd/
Dsnd_MidiSequencePlayer.cpp189 void MidiSequencePlayer::HandleControlChangeMessage( u8 channelIndex, u8 control, u8 value ) in HandleControlChangeMessage() argument
202 param.bankIndex = value; in HandleControlChangeMessage()
205 param.lfoParam.depth = value / 128.0f; in HandleControlChangeMessage()
208 param.initPan = static_cast<s8>(value - 64); in HandleControlChangeMessage()
211 param.portaTime = value; in HandleControlChangeMessage()
217 HandleRpnMessage( channelIndex, value ); in HandleControlChangeMessage()
220 HandleNrpnMessage( channelIndex, value ); in HandleControlChangeMessage()
225 param.volume.SetTarget( value, 0 ); in HandleControlChangeMessage()
229 param.surroundPan.SetTarget( static_cast<s8>(value), 0 ); in HandleControlChangeMessage()
233 param.pan.SetTarget( static_cast<s8>(value - 64), 0 ); in HandleControlChangeMessage()
[all …]
Dsnd_BiquadFilterPresets.cpp606 f32 value, in GetCoefficients() argument
612 int coefIndex = static_cast<int>( static_cast<f32>( coefSize - 1 ) * value ); in GetCoefficients()
631 f32 value, in GetCoefficients() argument
637 int coefIndex = static_cast<int>( static_cast<f32>( coefSize - 1 ) * value ); in GetCoefficients()
656 f32 value, in GetCoefficients() argument
662 value *= ( 2.0f - value ); // 係数の取り方に重み付け in GetCoefficients()
665 int coefIndex = static_cast<int>( static_cast<f32>( coefSize - 1 ) * value ); in GetCoefficients()
684 f32 value, in GetCoefficients() argument
690 value *= ( 2.0f - value ); // 係数の取り方に重み付け in GetCoefficients()
693 int coefIndex = static_cast<int>( static_cast<f32>( coefSize - 1 ) * value ); in GetCoefficients()
[all …]
Dsnd_WaveSoundFile.cpp172 u32 value; in GetPan() local
173 bool result = optionParameter.GetValue( &value, WAVE_SOUND_INFO_PAN ); in GetPan()
175 return Util::DevideBy8bit( value, 0 ); in GetPan()
179 u32 value; in GetSurroundPan() local
180 bool result = optionParameter.GetValue( &value, WAVE_SOUND_INFO_PAN ); in GetSurroundPan()
182 return static_cast<s8>( Util::DevideBy8bit( value, 1 ) ); in GetSurroundPan()
186 f32 value; in GetPitch() local
187 bool result = optionParameter.GetValueF32( &value, WAVE_SOUND_INFO_PITCH ); in GetPitch()
189 return value; in GetPitch()
195 u32 value; in GetSendValue() local
[all …]
Dsnd_SoundArchiveFile.cpp626 u32 value; in GetStringId() local
627 bool result = optionParameter.GetValue( &value, SOUND_INFO_STRING_ID ); in GetStringId()
632 return value; in GetStringId()
637 u32 value; in GetPanMode() local
638 bool result = optionParameter.GetValue( &value, SOUND_INFO_PAN_PARAM ); in GetPanMode()
643 return static_cast<PanMode>( Util::DevideBy8bit( value, 0 ) ); in GetPanMode()
648 u32 value; in GetPanCurve() local
649 bool result = optionParameter.GetValue( &value, SOUND_INFO_PAN_PARAM ); in GetPanCurve()
654 return static_cast<PanCurve>( Util::DevideBy8bit( value, 1 ) ); in GetPanCurve()
659 u32 value; in GetPlayerPriority() local
[all …]
Dsnd_BankFile.cpp298 u32 value; in GetOriginalKey() local
299 bool result = optionParameter.GetValue( &value, VELOCITY_REGION_KEY ); in GetOriginalKey()
301 return Util::DevideBy8bit( value, 0 ); in GetOriginalKey()
306 u32 value; in GetVolume() local
307 bool result = optionParameter.GetValue( &value, VELOCITY_REGION_VOLUME ); in GetVolume()
309 return Util::DevideBy8bit( value, 0 ); in GetVolume()
314 u32 value; in GetPan() local
315 bool result = optionParameter.GetValue( &value, VELOCITY_REGION_PAN ); in GetPan()
317 return Util::DevideBy8bit( value, 0 ); in GetPan()
323 u32 value; in GetSurroundPan() local
[all …]
Dsnd_Sound3DListener.cpp98 void Sound3DListener::SetUnitBiquadFilterValue( f32 value ) in SetUnitBiquadFilterValue() argument
100 NW_MINMAX_ASSERT( value, 0.0f, 1.0f ); in SetUnitBiquadFilterValue()
101 m_UnitBiquadFilterValue = value; in SetUnitBiquadFilterValue()
104 void Sound3DListener::SetMaxBiquadFilterValue( f32 value ) in SetMaxBiquadFilterValue() argument
106 NW_MINMAX_ASSERT( value, 0.0f, 1.0f ); in SetMaxBiquadFilterValue()
107 m_MaxBiquadFilterValue = value; in SetMaxBiquadFilterValue()
/NW4C-1.3.3/include/nw/lyt/
Dlyt_Resources.h453 void SetWarpModeS(u8 value) in SetWarpModeS()
455 NW_ASSERT(value < TEXWRAP_MAX); in SetWarpModeS()
456 internal::SetBits(&wrapSflt, 0, 2, value); in SetWarpModeS()
465 void SetWarpModeT(u8 value) in SetWarpModeT()
467 NW_ASSERT(value < TEXWRAP_MAX); in SetWarpModeT()
468 internal::SetBits(&wrapTflt, 0, 2, value); in SetWarpModeT()
477 void SetMinFilter(u8 value) in SetMinFilter()
479 NW_ASSERT(value < TEXFILTER_MAX); in SetMinFilter()
480 internal::SetBits(&wrapSflt, 2, 2, value); in SetMinFilter()
489 void SetMagFilter(u8 value) in SetMagFilter()
[all …]
Dlyt_Types.h228 } value;
229 value.f32 = val;
230 m_Bits = internal::SwapInt(value.u32);
240 } value;
241 value.u32 = internal::SwapInt(m_Bits);
242 return value.f32;
250 } value;
251 value.f32 = val;
252 m_Bits = internal::SwapInt(value.u32);
1783 void SetCombineRgb(TevMode value) in SetCombineRgb()
[all …]
Dlyt_Material.h359 void SetTexMap(u32 idx, const TexMap& value) in SetTexMap() argument
362 GetTexMapAry()[idx] = value; in SetTexMap()
381 void SetTexMap(u32 idx, const TextureInfo& value) in SetTexMap() argument
384 GetTexMapAry()[idx].Set(value); in SetTexMap()
425 void SetTexSRT(u32 idx, const TexSRT& value) in SetTexSRT() argument
428 GetTexSRTAry()[idx] = value; in SetTexSRT()
470 void SetTexCoordGen(u32 idx, const TexCoordGen& value) in SetTexCoordGen() argument
473 GetTexCoordGenAry()[idx] = value; in SetTexCoordGen()
523 void SetTexSRTElement(u32 idx, u32 eleIdx, f32 value) in SetTexSRTElement() argument
528 srtAry[eleIdx] = value; in SetTexSRTElement()
[all …]
Dlyt_Common.h203 u8 value in SetVtxColorElement() argument
208 reinterpret_cast<u8*>(&cols[idx / sizeof(ut::Color8)])[idx % sizeof(ut::Color8)] = value; in SetVtxColorElement()
246 static void SetTextureSamplerType(GraphicsResource& graphicsResource, int index, int value);
247 static void SetTevCombineRgb(GraphicsResource& graphicsResource, int index, TevMode value);
248 static void SetTevCombineAlpha(GraphicsResource& graphicsResource, int index, TevMode value);
253 static void SetTevScaleRgb(GraphicsResource& graphicsResource, int index, TevScale value);
254 static void SetTevScaleAlpha(GraphicsResource& graphicsResource, int index, TevScale value);
255 static void SetTevConstRgba(GraphicsResource& graphicsResource, int index, ut::Color8 value);
257 static void SetTevBufferColor(GraphicsResource &graphicsResource, ut::Color8 value);
259 static void SetEnableAlphaTest(GraphicsResource& graphicsResource, bool value);
[all …]
Dlyt_Pane.h242 void SetTranslate(const math::VEC3& value) in SetTranslate() argument
244 m_Translate = value; in SetTranslate()
259 void SetTranslate(const math::VEC2& value) in SetTranslate() argument
261 SetTranslate(math::VEC3(value.x, value.y, 0.f)); in SetTranslate()
285 void SetRotate(const math::VEC3& value) in SetRotate() argument
287 m_Rotate = value; in SetRotate()
312 void SetScale(const math::VEC2& value) in SetScale() argument
314 m_Scale = value; in SetScale()
339 void SetSize(const Size& value) in SetSize() argument
341 m_Size = value; in SetSize()
[all …]
/NW4C-1.3.3/include/nw/ut/
Dut_Float24.h44 static u32 Float32ToBits32(f32 value) in Float32ToBits32() argument
46 return *reinterpret_cast<u32*>(&value); in Float32ToBits32()
56 static f32 Bits32ToFloat32(u32 value) in Bits32ToFloat32() argument
58 return *reinterpret_cast<f32*>(&value); in Bits32ToFloat32()
94 /* implicit */ Float24( f32 value ) : m_Float32( value ) {} in Float24() argument
99 Float24& operator =(f32 value) { this->m_Float32 = value; return *this; }
158 static u32 Float32ToBits24(f32 value) in Float32ToBits24() argument
160 u32 bits32 = *reinterpret_cast<u32*>(&value); in Float32ToBits24()
251 /* implicit */ Float31( f32 value ) : m_Float32( value ) {} in Float31() argument
256 Float31& operator =(f32 value) { this->m_Float32 = value; return *this; }
[all …]
Dut_Flag.h75 EnableFlag(const TFlags& flags, const TValue& value) in EnableFlag() argument
77 return flags | static_cast<TFlags>(value); in EnableFlag()
88 DisableFlag(const TFlags& flags, const TValue& value) in DisableFlag() argument
90 return flags & ~(static_cast<TFlags>(value)); in DisableFlag()
121 SetFlagValue(const TFlags& flags, int shift, const TMask& mask, const TValue& value) in SetFlagValue() argument
123 return (flags & ~(static_cast<TFlags>(mask))) | ((value << shift) & static_cast<TFlags>(mask)); in SetFlagValue()
Dut_ResDeclMacros.h29 void Set##name(type value) { ref().m_##name = value; } \
33 void Set##name(type value) { ref().m_##name = value; } \
34 …void Enable##name(type value) { ref().m_##name = ut::EnableFlag(ref().m_##name, value); } …
35 …void Disable##name(type value) { ref().m_##name = ut::DisableFlag(ref().m_##name, value); }…
39 void Set##name(bool value) { ref().m_Is##name = value; } \
53 void Set##name(const type& value) { ref().m_##name = value; } \
58 void Set##name(const type& value) { ref().m_##name = value; } \
63 void Set##name(const type& value) { ref().m_##name = value; } \
70 void Set##name(const type& value) { ref().m_##name = value; } \
76 void Set##name(const type& value) { ref().m_##name = value; } \
[all …]
/NW4C-1.3.3/include/nw/gfx/res/
Dgfx_ResMaterial.h272 void SetAmbient( const nw::ut::FloatColor& value ) in SetAmbient() argument
274 this->SetAmbient(value.r, value.g, value.b); in SetAmbient()
480 void SetCullingMode(CullingMode value) in SetCullingMode() argument
484 this->ref().m_CullingMode = static_cast<u32>(value); in SetCullingMode()
494 internal::SetCmdValue( &ref().m_CommandBuffer[0], table[value], CMD_MASK, CMD_SHIFT ); in SetCullingMode()
584 void SetMode(Mode value) in SetMode() argument
588 ref().m_Mode = value; in SetMode()
598 internal::SetCmdValue( &ref().m_CommandBuffer[0], table[value], CMD_MASK, CMD_SHIFT ); in SetMode()
649 void SetBlendColor(const nw::ut::FloatColor& value) in SetBlendColor() argument
653 ref().m_BlendColor = value; in SetBlendColor()
[all …]
Dgfx_ResFragmentShader.h648 void SetTestEnabled(bool value) in SetTestEnabled() argument
652 internal::SetCmdValue( &ref().m_CommandBuffer[0], value, CMD_MASK, CMD_SHIFT ); in SetTestEnabled()
672 void SetTestFunc(TestFunc value) in SetTestFunc() argument
676 internal::SetCmdValue( &ref().m_CommandBuffer[0], value, CMD_MASK, CMD_SHIFT ); in SetTestFunc()
696 void SetTestReference(f32 value) in SetTestReference() argument
700 …internal::SetCmdValue( &ref().m_CommandBuffer[0], (0.5f + (value * 255.0f)), CMD_MASK, CMD_SHIFT ); in SetTestReference()
867 void SetSourceRgb(s32 index, Source value) in SetSourceRgb() argument
873 internal::SetCmdValue( &ref().m_CmdSource, value, CMD_MASK, CMD_WIDTH * index ); in SetSourceRgb()
898 void SetSourceAlpha(s32 index, Source value) in SetSourceAlpha() argument
904 internal::SetCmdValue( &ref().m_CmdSource, value, CMD_MASK, CMD_WIDTH * index + CMD_SHIFT ); in SetSourceAlpha()
[all …]
Dgfx_ResTextureMapper.h125 void SetMinFilter(MinFilter value) in SetMinFilter() argument
127 this->ref().m_MinFilter = static_cast<MinFilter>(value); in SetMinFilter()
155 u32 value2 = table2[value]; in SetMinFilter()
167 u32 value24 = table24[value]; in SetMinFilter()
195 void SetMagFilter(MagFilter value) in SetMagFilter() argument
204 internal::SetCmdValue( &command.second[CMD_INDEX], value, CMD_MASK, CMD_SHIFT ); in SetMagFilter()
214 void SetSamplerType(SamplerType value) in SetSamplerType() argument
223 internal::SetCmdValue( &command.second[CMD_INDEX], value, CMD_MASK, CMD_SHIFT ); in SetSamplerType()
299 void SetBorderColor(const ut::FloatColor& value) { in SetBorderColor() argument
300 ref().m_BorderColor = value; in SetBorderColor()
[all …]
/NW4C-1.3.3/sources/libraries/lyt/
Dlyt_Common.cpp241 ColorU8ToFloat(u8 value) in ColorU8ToFloat() argument
243 return 1.0F / 255 * value; in ColorU8ToFloat()
450 GL::SetTextureSamplerType(GraphicsResource& graphicsResource, int index, int value) in SetTextureSamplerType() argument
455 glUniform1i(loc, value); in SetTextureSamplerType()
472 GL::SetTevCombineRgb(GraphicsResource& graphicsResource, int index, TevMode value) in SetTevCombineRgb() argument
477 glUniform1i(loc, tevMode[value]); in SetTevCombineRgb()
481 GL::SetTevCombineAlpha(GraphicsResource& graphicsResource, int index, TevMode value) in SetTevCombineAlpha() argument
486 glUniform1i(loc, tevMode[value]); in SetTevCombineAlpha()
599 GL::SetTevScaleRgb(GraphicsResource& graphicsResource, int index, TevScale value) in SetTevScaleRgb() argument
604 glUniform1f(loc, scale[value]); in SetTevScaleRgb()
[all …]
Dlyt_TextBox.cpp56 f32 value, in AdjustCenterValue() argument
60 f32 ret = value / 2; in AdjustCenterValue()
233 ut::Color8 value in SetVtxColor() argument
238 SetTextColor(idx / 2, value); in SetVtxColor()
250 TextBox::SetVtxColorElement(u32 idx, u8 value) in SetVtxColorElement() argument
257 elm = value; in SetVtxColorElement()
543 u32 value = 0; in SetTextPos() local
552 … default: value = font::WideTextWriter::HORIZONTAL_ALIGN_LEFT; break; in SetTextPos()
553 … case HORIZONTALPOSITION_CENTER: value = font::WideTextWriter::HORIZONTAL_ALIGN_CENTER; break; in SetTextPos()
554 … case HORIZONTALPOSITION_RIGHT: value = font::WideTextWriter::HORIZONTAL_ALIGN_RIGHT; break; in SetTextPos()
[all …]
/NW4C-1.3.3/include/nw/anim/res/
Danim_ResAnimGroup.h309 void SetValueForType(void* object, const void* value) const;
339 void SetValue(void* object, const void* value) const;
370 void SetValue(void* object, const void* value) const;
392 void SetValue(void* object, const void* value) const;
414 void SetValue(void* object, const void* value) const;
435 void SetValue(void* object, const void* value) const;
461 void SetValue(void* object, const void* value) const;
481 void SetValue(void* object, const void* value) const;
502 void SetValue(void* object, const void* value) const;
523 void SetValue(void* object, const void* value) const;
[all …]
Danim_ResAnimCurve.h27 Round( f32 value ) in Round() argument
29 return nn::math::FFloor(value + 0.5f); in Round()
33 CastS9_10ToF32( s32 value ) in CastS9_10ToF32() argument
35 return f32(value) * (1.f / 1024.f); in CastS9_10ToF32()
39 CastF32ToS9_10( f32 value ) in CastF32ToS9_10() argument
41 return s32(Round(value * 1024.f)); in CastF32ToS9_10()
45 CastS7_8ToF32( s32 value ) in CastS7_8ToF32() argument
47 return f32(value) * (1.f / 256.f); in CastS7_8ToF32()
51 CastF32ToS7_8( f32 value ) in CastF32ToS7_8() argument
53 return s32(Round(value * 256.f)); in CastF32ToS7_8()
[all …]
/NW4C-1.3.3/sources/libraries/gfx/
Dgfx_ParticleSet.cpp1012 const f32 value = floatInitializer.GetImmediateValue(); in InitializeParticles() local
1020 storagePtr[index] = value; in InitializeParticles()
1035 const nw::math::VEC2 value = vec2Initializer.GetImmediateValue(); in InitializeParticles() local
1043 storagePtr[index] = value; in InitializeParticles()
1060 const nw::math::VEC3 value = vec3Initializer.GetImmediateValue(); in InitializeParticles() local
1068 storagePtr[index] = value; in InitializeParticles()
1093 f32 value = baseValue; in InitializeParticles() local
1097 value += value * this->m_ParticleRandom.NextFloatSignedOne() * random; in InitializeParticles()
1100 storagePtr[index] = value; in InitializeParticles()
1364 nw::math::VEC3 value(baseValue); in InitializeParticles() local
[all …]
/NW4C-1.3.3/include/nw/snd/
Dsnd_BiquadFilterPresets.h33 virtual void GetCoefficients( int type, f32 value, Coefficients* coef ) const;
48 virtual void GetCoefficients( int type, f32 value, Coefficients* coef ) const;
63 virtual void GetCoefficients( int type, f32 value, Coefficients* coef ) const;
78 virtual void GetCoefficients( int type, f32 value, Coefficients* coef ) const;
93 virtual void GetCoefficients( int type, f32 value, Coefficients* coef ) const;

12345