| /NW4C-1.3.3/include/nw/snd/ |
| D | snd_Sound3DCalculator.h | 70 f32 stereoSpeakerAngle; 71 f32 surroundSpeakerFrontAngle; 72 f32 surroundSpeakerRearAngle; 73 f32 surroundPanOffset; 112 f32* volumePtr, 138 f32* panPtr, 139 f32* spanPtr 161 f32* pitchPtr 184 f32* biquadFilterValuePtr 190 f32 actorDistance, [all …]
|
| D | snd_BasicSound.h | 43 f32 volume; 44 f32 pitch; 45 f32 pan; 46 f32 span; 47 f32 fxSend; 48 f32 lpf; 49 f32 biquadFilterValue; 85 f32 volume; 92 f32 pitch; 100 f32 pan; [all …]
|
| D | snd_Voice.h | 71 static const f32 VOLUME_MIN; 72 static const f32 VOLUME_DEFAULT; 73 static const f32 VOLUME_MAX; 74 static const f32 PAN_LEFT; 75 static const f32 PAN_CENTER; 76 static const f32 PAN_RIGHT; 77 static const f32 SPAN_FRONT; 78 static const f32 SPAN_CENTER; 79 static const f32 SPAN_REAR; 80 static const f32 CUTOFF_FREQ_MIN; [all …]
|
| D | snd_Sound3DListener.h | 187 void SetInteriorSize( f32 interiorSize ); 198 f32 GetInteriorSize() const { return m_InteriorSize; } in GetInteriorSize() 213 void SetMaxVolumeDistance( f32 maxVolumeDistance ); 224 f32 GetMaxVolumeDistance() const { return m_MaxVolumeDistance; } in GetMaxVolumeDistance() 244 void SetUnitDistance( f32 unitDistance ); 255 f32 GetUnitDistance() const { return m_UnitDistance; } in GetUnitDistance() 286 void SetUnitBiquadFilterValue( f32 value ); 295 f32 GetUnitBiquadFilterValue() const { return m_UnitBiquadFilterValue; } in GetUnitBiquadFilterValue() 304 void SetMaxBiquadFilterValue( f32 value ); 313 f32 GetMaxBiquadFilterValue() const { return m_MaxBiquadFilterValue; } in GetMaxBiquadFilterValue() [all …]
|
| D | snd_Channel.h | 134 void SetInitVolume( f32 volume ) { m_InitVolume = volume; } in SetInitVolume() 135 void SetInitPan( f32 pan ) { m_InitPan = pan; } in SetInitPan() 136 void SetInitSurroundPan( f32 surroundPan ) { m_InitSurroundPan = surroundPan; } in SetInitSurroundPan() 137 void SetTune( f32 tune ) { m_Tune = tune; } in SetTune() 160 void SetUserVolume( f32 volume ) { m_UserVolume = volume; } in SetUserVolume() 161 void SetUserPitch( f32 pitch ) { m_UserPitch = pitch; } in SetUserPitch() 162 void SetUserPitchRatio( f32 pitchRatio ) { m_UserPitchRatio = pitchRatio; } in SetUserPitchRatio() 163 void SetUserPan( f32 pan ) { m_UserPan = pan; } in SetUserPan() 164 void SetUserSurroundPan( f32 surroundPan ) { m_UserSurroundPan = surroundPan; } in SetUserSurroundPan() 165 void SetUserLpfFreq( f32 lpfFreq ) { m_UserLpfFreq = lpfFreq; } in SetUserLpfFreq() [all …]
|
| /NW4C-1.3.3/include/nw/anim/ |
| D | anim_AnimFrameController.h | 41 AnimFrame(f32 frame) { ResetFrame(frame); } in AnimFrame() 48 AnimFrame(f32 frame, f32 lastFrame) { Set(frame, lastFrame); } in AnimFrame() 66 f32 GetFrame() const { return m_Frame; } in GetFrame() 72 void SetFrame(f32 frame) in SetFrame() 79 f32 GetLastFrame() const { return m_LastFrame; } in GetLastFrame() 85 void SetLastFrame(f32 lastFrame) { m_LastFrame = lastFrame; } in SetLastFrame() 102 void Set(f32 frame, f32 lastFrame) in Set() 112 void ResetFrame(f32 frame) in ResetFrame() 118 f32 GetDelta() const { return m_Frame - m_LastFrame; } in GetDelta() 141 f32 m_Frame; [all …]
|
| /NW4C-1.3.3/include/nw/ut/ |
| D | ut_Float24.h | 44 static u32 Float32ToBits32(f32 value) in Float32ToBits32() 56 static f32 Bits32ToFloat32(u32 value) in Bits32ToFloat32() 58 return *reinterpret_cast<f32*>(&value); in Bits32ToFloat32() 94 /* implicit */ Float24( f32 value ) : m_Float32( value ) {} in Float24() 96 f32 GetFloat32Value() const { return m_Float32; } in GetFloat32Value() 99 Float24& operator =(f32 value) { this->m_Float32 = value; return *this; } 102 operator f32() const { return m_Float32; } in f32() function 104 f32 operator +(f32 right) const { return this->m_Float32 + right; } 105 f32 operator -(f32 right) const { return this->m_Float32 - right; } 106 f32 operator *(f32 right) const { return this->m_Float32 * right; } [all …]
|
| D | ut_Rect.h | 35 f32 left; //!< 矩形の左座標です。 36 f32 top; //!< 矩形の上座標です。 37 f32 right; //!< 矩形の右座標です。 38 f32 bottom; //!< 矩形の下座標です。 67 Rect(f32 l, f32 t, f32 r, f32 b) in Rect() 102 f32 GetWidth() const { return right - left; } in GetWidth() 109 f32 GetHeight() const { return bottom - top; } in GetHeight() 116 f32 GetX() const { return left; } in GetX() 123 f32 GetY() const { return top; } in GetY() 130 void SetWidth(f32 width) { right = left + width; } in SetWidth() [all …]
|
| /NW4C-1.3.3/sources/libraries/snd/ |
| D | snd_Sound3DCalculator.cpp | 32 inline f32 SolveLinerFunction( f32 x, f32 x1, f32 x2, f32 y1, f32 y2 ) in SolveLinerFunction() 35 f32 divider = x1 - x2; in SolveLinerFunction() 62 f32* volumePtr, in CalcVolumeAndPriority() 70 const f32 actorDistance = nw::math::VEC3Len( &pos ); in CalcVolumeAndPriority() 103 f32* panPtr, in CalcPan() 104 f32* spanPtr in CalcPan() 112 const f32 actorDistance = nw::math::VEC3Len( &pos ); in CalcPan() 144 f32* pitchPtr in CalcPitch() 149 const f32 sonicVelocity = manager.GetSonicVelocity(); in CalcPitch() 159 const f32 distance = nw::math::VEC3Len( &relPos ); in CalcPitch() [all …]
|
| D | snd_Util.cpp | 36 const f32 PAN_CURVE_MIN = 0.71f; 37 f32 s_PanCurveMax = 1.0f; // PAN_CURVE_MIN; 40 const f32 SURROUND_MODE_PAN_CURVE_MAX = 0.8f; 43 const f32 NoteTable[ OCTAVE_DIVISION ] = 60 const f32 PitchTable[ Util::PITCH_DIVISION_RANGE ] = 128 const f32 Decibel2RatioTable[ VOLUME_TABLE_SIZE ] = 331 const f32 Pan2RatioTableSqrt[ PAN_TABLE_SIZE ] = 367 const f32 Pan2RatioTableSqrtSurround[ PAN_TABLE_SIZE ] = 404 const f32 Pan2RatioTableSinCos[ PAN_TABLE_SIZE ] = 440 const f32 Pan2RatioTableSinCosSurround[ PAN_TABLE_SIZE ] = [all …]
|
| /NW4C-1.3.3/include/nw/gfx/ |
| D | gfx_Camera.h | 283 f32 GetWScale() const { return this->m_WScale; } in GetWScale() 286 void SetWScale(f32 wScale) { m_WScale = wScale; } in SetWScale() 370 void SetTargetPosition(f32 x, f32 y, f32 z) in SetTargetPosition() 405 void SetUpwardVector(f32 x, f32 y, f32 z) in SetUpwardVector() 418 f32 GetTwist() const; 428 void SetTwist(f32 twist); 460 void SetViewRotate(f32 x, f32 y, f32 z){ in SetViewRotate() 483 f32* fovy, 484 f32* aspectRatio, 485 f32* nearClip, [all …]
|
| D | gfx_CommandUtil.h | 495 void NWCopyVec4Reverse(f32* dst, const f32* src); 500 void NWCopyVec4WithHeader(f32* dst, const f32* src, u32 header); 505 void NWCopyMtx24Reverse(f32* dst, const f32* src); 510 void NWCopyMtx24WithHeader(f32* dst, const f32* src, u32 header); 515 void NWCopyMtx34Reverse(f32* dst, const f32* src); 520 void NWCopyMtx34WithHeader(f32* dst, const f32* src, u32 header); 525 void NWCopyMtx44Reverse(f32* dst, const f32* src); 530 void NWCopyMtx44WithHeader(f32* dst, const f32* src, u32 header); 535 void NWCopyVec3Reverse(f32* dst, const f32* src); 540 void NWCopyVec3WithHeader(f32* dst, const f32* src, u32 header ); [all …]
|
| D | gfx_Viewport.h | 91 f32 width = static_cast<f32>(renderTarget->GetDescription().width); in Viewport() 92 f32 height = static_cast<f32>(renderTarget->GetDescription().height); in Viewport() 114 void SetDepthRange(f32 near, f32 far) in SetDepthRange() 151 static_cast<f32>(renderTarget->GetDescription().width), in SetBound() 152 static_cast<f32>(renderTarget->GetDescription().height) ); in SetBound() 159 f32 GetDepthNear() const { return m_DepthNear; } in GetDepthNear() 162 f32 GetDepthFar() const { return m_DepthFar; } in GetDepthFar() 168 f32 m_DepthNear; 169 f32 m_DepthFar;
|
| /NW4C-1.3.3/include/nw/anim/res/ |
| D | anim_ResAnimCurve.h | 26 NW_INLINE f32 27 Round( f32 value ) in Round() 32 NW_INLINE f32 35 return f32(value) * (1.f / 1024.f); in CastS9_10ToF32() 39 CastF32ToS9_10( f32 value ) in CastF32ToS9_10() 44 NW_INLINE f32 47 return f32(value) * (1.f / 256.f); in CastS7_8ToF32() 51 CastF32ToS7_8( f32 value ) in CastF32ToS7_8() 56 NW_INLINE f32 59 return f32(value) * (1.f / 32.f); in CastS10_5ToF32() [all …]
|
| /NW4C-1.3.3/sources/libraries/anim/res/ |
| D | anim_ResAnimCurve.cpp | 42 typedef f32 FrameType; 47 static FrameType QuantizedFrame( const ResFloatSegmentFVData*, f32 frame ) { return frame; } in QuantizedFrame() 49 …static f32 GetFrameF32( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->G… in GetFrameF32() 50 …static f32 GetValue( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->GetV… in GetValue() 63 static FrameType QuantizedFrame( const ResFloatSegmentFVData* pSegment, f32 frame ) in QuantizedFrame() 65 f32 decoded = (frame - pSegment->fv32.m_FrameOffset) / pSegment->fv32.m_FrameScale; in QuantizedFrame() 69 static f32 GetFrameF32( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetFrameF32() 71 f32 frame = pKey->GetFrameF32(); in GetFrameF32() 74 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue() 76 f32 value = pKey->GetValue(); in GetValue() [all …]
|
| /NW4C-1.3.3/demos/Nw4cDemo/include/ |
| D | SmRectCollision.h | 35 void SetRect( f32 x, f32 y, f32 w, f32 h ) in SetRect() 47 f32 posx = static_cast<f32>(x); in CheckInner() 48 f32 posy = static_cast<f32>(y); in CheckInner() 50 f32 colx = m_Collision.GetX(); in CheckInner() 51 f32 coly = m_Collision.GetY(); in CheckInner() 53 f32 colw = m_Collision.GetWidth(); in CheckInner() 54 f32 colh = m_Collision.GetHeight(); in CheckInner() 74 void SetXY( f32 x, f32 y ) in SetXY() 80 void AddXY( f32 x, f32 y ) in AddXY() 89 f32 GetX() const { return m_Collision.GetX(); } in GetX() [all …]
|
| D | SmModel.h | 56 void SetPosition( f32 x, f32 y, f32 z ); 59 void SetScale( f32 x, f32 y, f32 z ); 62 void SetRotate( f32 x, f32 y, f32 z ); 90 void SetAnimationFrame( f32 setFrame ); 93 bool AddAnimationFrame( f32 addFrame, bool loop = true ); 96 f32 GetAnimationFrame() const; 99 f32 GetAnimationMaxFrame() const; 117 void SetVisibleZone( f32 term ); 147 f32 m_AnimationFrame;
|
| D | SmPrimitive.h | 104 void Render( GLenum entryMode, f32 posX = 0.f, f32 posY = 0.f ); 107 void SetVertex( uint vertexIdx, f32 x, f32 y, nw::ut::Color8 color ); 149 f32 posX = 0.f, 150 f32 posY = 0.f ); 153 void SetVertex( f32 x, f32 y, nw::ut::Color8 color ); 163 f32 m_OffsetX; 164 f32 m_OffsetY;
|
| /NW4C-1.3.3/include/nw/font/ |
| D | font_CharWriter.h | 252 f32 hScale, in SetScale() 253 f32 vScale in SetScale() 264 void SetScale(f32 hvScale) in SetScale() 274 f32 GetScaleH() const { return m_Scale.x; } in GetScaleH() 280 f32 GetScaleV() const { return m_Scale.y; } in GetScaleV() 288 f32 width, 289 f32 height); 295 void SetFontSize(f32 height); 302 f32 GetFontWidth() const; 309 f32 GetFontHeight() const; [all …]
|
| D | font_TextWriterBase.h | 111 void SetLineSpace(f32 space) { m_LineSpace = space; } in SetLineSpace() 117 f32 GetLineSpace() const { return m_LineSpace; } in GetLineSpace() 123 void SetLineHeight(f32 height); 129 f32 GetLineHeight() const; 135 void SetCharSpace(f32 space) { m_CharSpace = space; } in SetCharSpace() 141 f32 GetCharSpace() const { return m_CharSpace; } in GetCharSpace() 164 void SetWidthLimit(f32 limit) { m_WidthLimit = limit; } in SetWidthLimit() 171 f32 GetWidthLimit() const { return m_WidthLimit; } in GetWidthLimit() 234 f32 CalcFormatStringWidth( 245 f32 CalcStringWidth( in CalcStringWidth() [all …]
|
| /NW4C-1.3.3/sources/libraries/anim/ |
| D | anim_AnimFrameController.cpp | 27 f32 PlayPolicy_Onetime(f32 startFrame, f32 endFrame, f32 inputFrame, void* /*pUserData*/) in PlayPolicy_Onetime() 45 f32 PlayPolicy_Loop(f32 startFrame, f32 endFrame, f32 inputFrame, void* /*pUserData*/) in PlayPolicy_Loop() 48 f32 length = endFrame - startFrame; in PlayPolicy_Loop() 55 f32 offset = inputFrame - startFrame; in PlayPolicy_Loop()
|
| /NW4C-1.3.3/include/nw/gfx/res/ |
| D | gfx_ResCamera.h | 111 f32 width = m_Height * m_AspectRatio; in Rect() 119 f32 GetHeight() const { return m_Height; } in GetHeight() 124 f32 GetWidth() const { return m_Height * m_AspectRatio; } in GetWidth() 129 f32 GetAspectRatio() const { return m_AspectRatio; } in GetAspectRatio() 141 NW_DEPRECATED_FUNCTION(void Set( f32 l, f32 r, f32 b, f32 t )) in NW_DEPRECATED_FUNCTION() 152 void SetWithoutFlip( f32 l, f32 r, f32 b, f32 t ) in SetWithoutFlip() 167 void SetWithYFlip( f32 l, f32 r, f32 b, f32 t ) in SetWithYFlip() 179 void Set( f32 aspect, f32 height, const nw::math::VEC2& center ) in Set() 246 NW_RES_FIELD_PRIMITIVE_DECL( f32, Near ) // GetNear(), SetNear() in NW_RES_FIELD_PRIMITIVE_DECL() argument 256 NW_RES_FIELD_PRIMITIVE_DECL( f32, Far ) // GetFar(), SetFar() in NW_RES_FIELD_PRIMITIVE_DECL() [all …]
|
| /NW4C-1.3.3/include/nw/demo/ |
| D | demo_GraphicsDrawing.h | 60 m_ScreenSize = math::VEC2( static_cast<f32>(width), static_cast<f32>(height) ); in SetScreenSize() 129 void SetLineWidth( f32 width ) { m_LineWidth = width; } in SetLineWidth() 155 math::VEC2(static_cast<f32>(x1), static_cast<f32>(y1)), in DrawLine() 156 math::VEC2(static_cast<f32>(x2), static_cast<f32>(y2)), in DrawLine() 182 math::VEC2(static_cast<f32>(posh), static_cast<f32>(posv)), in DrawRectangle() 183 math::VEC2(static_cast<f32>(sizeh), static_cast<f32>(sizev)), in DrawRectangle() 209 math::VEC2(static_cast<f32>(posh), static_cast<f32>(posv)), in FillRectangle() 210 math::VEC2(static_cast<f32>(sizeh), static_cast<f32>(sizev)), in FillRectangle() 304 f32 DrawString( const char* format, ... ); 316 f32 DrawString( s32 posh, s32 posv, const char* format, ... ); [all …]
|
| /NW4C-1.3.3/sources/libraries/gfx/ |
| D | gfx_CommandUtil.cpp | 33 f32* /* dst */, in NWCopyVec4Reverse() argument 34 const f32* /* src */) in NWCopyVec4Reverse() argument 47 f32* /* dst */, in NWCopyVec4WithHeader() argument 48 const f32* /* src */, in NWCopyVec4WithHeader() argument 63 f32* /* dst */, in NWCopyMtx24Reverse() argument 64 const f32* /* src */) in NWCopyMtx24Reverse() argument 81 f32* /* dst */, in NWCopyMtx24WithHeader() argument 82 const f32* /* src */, in NWCopyMtx24WithHeader() argument 101 f32* /* dst */, in NWCopyMtx34Reverse() argument 102 const f32* /* src */) in NWCopyMtx34Reverse() argument [all …]
|
| /NW4C-1.3.3/sources/libraries/font/ |
| D | font_TextWriterBase.cpp | 72 f32 73 AdjustCenterValue(f32 value) in AdjustCenterValue() 116 TextWriterBase<CharType>::SetLineHeight(f32 height) in SetLineHeight() 125 f32 144 f32 163 f32 219 f32 236 f32 283 f32 294 f32 width = VPrintf(format, vargs); in Printf() [all …]
|