Home
last modified time | relevance | path

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

12345

/NW4C-1.2.23/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);
131 ParticleTime& FMod(s32 value)
133 this->m_ParticleTime %= S32ToParticleTime(value);
137 …ParticleTime& operator =(f32 value) { this->m_ParticleTime = Float32ToParticleTime(value); return …
138 …ParticleTime& operator =(s32 value) { this->m_ParticleTime = S32ToParticleTime(value); return *thi…
[all …]
Dgfx_ShaderProgram.h228 …rmBool(ShaderUniform location, bool value) const { glUniform1i(m_UniformLocation->GetUniformLocati… in SetUniformBool() argument
235 …rmFloat(ShaderUniform location, f32 value) const { glUniform1f(m_UniformLocation->GetUniformLocati… in SetUniformFloat() argument
242 …formInt(ShaderUniform location, s32 value) const { glUniform1i(m_UniformLocation->GetUniformLocati… in SetUniformInt() argument
489 void SetVertexUniformBool(int index, bool value) const in SetVertexUniformBool() argument
492 if (value) in SetVertexUniformBool()
507 void SetGeometryUniformBool(int index, bool value) const in SetGeometryUniformBool() argument
510 if (value) in SetGeometryUniformBool()
525 void SetVertexUniformInt(int index, s32 value) const in SetVertexUniformInt() argument
528 m_VertexIntUniforms[2 + index] = value & 0xFF; in SetVertexUniformInt()
536 void SetGeometryUniformInt(int index, s32 value) const in SetGeometryUniformInt() argument
[all …]
/NW4C-1.2.23/sources/libraries/anim/res/
Danim_ResAnimGroup.cpp37 ResAnimGroupMember::SetValueForType(void* object, const void* value) const in SetValueForType()
40 NW_NULL_ASSERT(value); in SetValueForType()
46 ResStaticCast<ResBoneMember>(*this).SetValue(object, value); in SetValueForType()
50 ResStaticCast<ResMaterialColorMember>(*this).SetValue(object, value); in SetValueForType()
54 ResStaticCast<ResTextureSamplerMember>(*this).SetValue(object, value); in SetValueForType()
58 ResStaticCast<ResTextureMapperMember>(*this).SetValue(object, value); in SetValueForType()
62 ResStaticCast<ResBlendOperationMember>(*this).SetValue(object, value); in SetValueForType()
66 ResStaticCast<ResTextureCoordinatorMember>(*this).SetValue(object, value); in SetValueForType()
70 ResStaticCast<ResModelMember>(*this).SetValue(object, value); in SetValueForType()
74 ResStaticCast<ResMeshMember>(*this).SetValue(object, value); in SetValueForType()
[all …]
/NW4C-1.2.23/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.2.23/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);
1778 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.h199 u8 value in SetVtxColorElement() argument
204 reinterpret_cast<u8*>(&cols[idx / sizeof(ut::Color8)])[idx % sizeof(ut::Color8)] = value; in SetVtxColorElement()
242 static void SetTextureSamplerType(GraphicsResource& graphicsResource, int index, int value);
243 static void SetTevCombineRgb(GraphicsResource& graphicsResource, int index, TevMode value);
244 static void SetTevCombineAlpha(GraphicsResource& graphicsResource, int index, TevMode value);
249 static void SetTevScaleRgb(GraphicsResource& graphicsResource, int index, TevScale value);
250 static void SetTevScaleAlpha(GraphicsResource& graphicsResource, int index, TevScale value);
251 static void SetTevConstRgba(GraphicsResource& graphicsResource, int index, ut::Color8 value);
253 static void SetTevBufferColor(GraphicsResource &graphicsResource, ut::Color8 value);
255 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.2.23/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()
/NW4C-1.2.23/include/nw/gfx/res/
Dgfx_ResMaterial.h268 void SetAmbient( const nw::ut::FloatColor& value ) in SetAmbient() argument
270 this->SetAmbient(value.r, value.g, value.b); in SetAmbient()
465 void SetCullingMode(CullingMode value) in SetCullingMode() argument
469 this->ref().m_CullingMode = static_cast<u32>(value); in SetCullingMode()
479 internal::SetCmdValue( &ref().m_CommandBuffer[0], table[value], CMD_MASK, CMD_SHIFT ); in SetCullingMode()
569 void SetMode(Mode value) in SetMode() argument
573 ref().m_Mode = value; in SetMode()
583 internal::SetCmdValue( &ref().m_CommandBuffer[0], table[value], CMD_MASK, CMD_SHIFT ); in SetMode()
634 void SetBlendColor(const nw::ut::FloatColor& value) in SetBlendColor() argument
638 ref().m_BlendColor = value; in SetBlendColor()
[all …]
Dgfx_ResFragmentShader.h637 void SetTestEnabled(bool value) in SetTestEnabled() argument
641 internal::SetCmdValue( &ref().m_CommandBuffer[0], value, CMD_MASK, CMD_SHIFT ); in SetTestEnabled()
661 void SetTestFunc(TestFunc value) in SetTestFunc() argument
665 internal::SetCmdValue( &ref().m_CommandBuffer[0], value, CMD_MASK, CMD_SHIFT ); in SetTestFunc()
685 void SetTestReference(f32 value) in SetTestReference() argument
689 …internal::SetCmdValue( &ref().m_CommandBuffer[0], (0.5f + (value * 255.0f)), CMD_MASK, CMD_SHIFT ); in SetTestReference()
856 void SetSourceRgb(s32 index, Source value) in SetSourceRgb() argument
862 internal::SetCmdValue( &ref().m_CmdSource, value, CMD_MASK, CMD_WIDTH * index ); in SetSourceRgb()
887 void SetSourceAlpha(s32 index, Source value) in SetSourceAlpha() argument
893 internal::SetCmdValue( &ref().m_CmdSource, value, CMD_MASK, CMD_WIDTH * index + CMD_SHIFT ); in SetSourceAlpha()
[all …]
Dgfx_ResTextureMapper.h115 void SetMinFilter(MinFilter value) in SetMinFilter() argument
117 this->ref().m_MinFilter = static_cast<MinFilter>(value); in SetMinFilter()
145 u32 value2 = table2[value]; in SetMinFilter()
157 u32 value24 = table24[value]; in SetMinFilter()
182 void SetMagFilter(MagFilter value) in SetMagFilter() argument
191 internal::SetCmdValue( &command.second[CMD_INDEX], value, CMD_MASK, CMD_SHIFT ); in SetMagFilter()
247 void SetBorderColor(const ut::FloatColor& value) { in SetBorderColor() argument
248 ref().m_BorderColor = value; in SetBorderColor()
325 void SetWrapS(Wrap value) in SetWrapS() argument
334 internal::SetCmdValue( &command.second[CMD_INDEX], value, CMD_MASK, CMD_SHIFT ); in SetWrapS()
[all …]
/NW4C-1.2.23/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.2.23/include/nw/anim/res/
Danim_ResAnimGroup.h256 void SetValueForType(void* object, const void* value) const;
286 void SetValue(void* object, const void* value) const;
317 void SetValue(void* object, const void* value) const;
339 void SetValue(void* object, const void* value) const;
361 void SetValue(void* object, const void* value) const;
382 void SetValue(void* object, const void* value) const;
408 void SetValue(void* object, const void* value) const;
428 void SetValue(void* object, const void* value) const;
449 void SetValue(void* object, const void* value) const;
470 void SetValue(void* object, const void* value) const;
[all …]
Danim_ResAnimCurve.h27 CastS9_10ToF32( s32 value ) in CastS9_10ToF32() argument
29 return f32(value) * (1.f / 1024.f); in CastS9_10ToF32()
33 CastF32ToS9_10( f32 value ) in CastF32ToS9_10() argument
35 return s32(value * 1024.f); in CastF32ToS9_10()
39 CastS7_8ToF32( s32 value ) in CastS7_8ToF32() argument
41 return f32(value) * (1.f / 256.f); in CastS7_8ToF32()
45 CastF32ToS7_8( f32 value ) in CastF32ToS7_8() argument
47 return s32(value * 256.f); in CastF32ToS7_8()
51 CastS10_5ToF32( s32 value ) in CastS10_5ToF32() argument
53 return f32(value) * (1.f / 32.f); in CastS10_5ToF32()
[all …]
/NW4C-1.2.23/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;
/NW4C-1.2.23/sources/libraries/gfx/
Dgfx_ParticleSet.cpp980 const f32 value = floatInitializer.GetImmediateValue(); in InitializeParticles() local
988 storagePtr[index] = value; in InitializeParticles()
1003 const nw::math::VEC2 value = vec2Initializer.GetImmediateValue(); in InitializeParticles() local
1011 storagePtr[index] = value; in InitializeParticles()
1028 const nw::math::VEC3 value = vec3Initializer.GetImmediateValue(); in InitializeParticles() local
1036 storagePtr[index] = value; in InitializeParticles()
1061 f32 value = baseValue; in InitializeParticles() local
1065 value += value * this->m_ParticleRandom.NextFloatSignedOne() * random; in InitializeParticles()
1068 storagePtr[index] = value; in InitializeParticles()
1324 nw::math::VEC3 value(baseValue); in InitializeParticles() local
[all …]

12345