| /NW4C-2.0.3/include/nw/snd/ |
| D | snd_Sound3DCalculator.h | 72 f32 stereoSpeakerAngle; 73 f32 surroundSpeakerFrontAngle; 74 f32 surroundSpeakerRearAngle; 75 f32 surroundPanOffset; 114 f32* volumePtr, 140 f32* panPtr, 141 f32* spanPtr 163 f32* pitchPtr 186 f32* biquadFilterValuePtr 192 f32 actorDistance, [all …]
|
| D | snd_BasicSound.h | 45 f32 volume; 46 f32 pitch; 47 f32 pan; 48 f32 span; 49 f32 fxSend; 50 f32 lpf; 51 f32 biquadFilterValue; 104 f32 volume; 111 f32 pitch; 119 f32 pan; [all …]
|
| D | snd_Voice.h | 73 static const f32 VOLUME_MIN; 74 static const f32 VOLUME_DEFAULT; 75 static const f32 VOLUME_MAX; 76 static const f32 PAN_LEFT; 77 static const f32 PAN_CENTER; 78 static const f32 PAN_RIGHT; 79 static const f32 SPAN_FRONT; 80 static const f32 SPAN_CENTER; 81 static const f32 SPAN_REAR; 82 static const f32 CUTOFF_FREQ_MIN; [all …]
|
| D | snd_Sound3DListener.h | 189 void SetInteriorSize( f32 interiorSize ); 200 f32 GetInteriorSize() const { return m_InteriorSize; } in GetInteriorSize() 215 void SetMaxVolumeDistance( f32 maxVolumeDistance ); 226 f32 GetMaxVolumeDistance() const { return m_MaxVolumeDistance; } in GetMaxVolumeDistance() 246 void SetUnitDistance( f32 unitDistance ); 257 f32 GetUnitDistance() const { return m_UnitDistance; } in GetUnitDistance() 288 void SetUnitBiquadFilterValue( f32 value ); 297 f32 GetUnitBiquadFilterValue() const { return m_UnitBiquadFilterValue; } in GetUnitBiquadFilterValue() 306 void SetMaxBiquadFilterValue( f32 value ); 315 f32 GetMaxBiquadFilterValue() const { return m_MaxBiquadFilterValue; } in GetMaxBiquadFilterValue() [all …]
|
| D | snd_Channel.h | 136 void SetInitVolume( f32 volume ) { m_InitVolume = volume; } in SetInitVolume() 137 void SetInitPan( f32 pan ) { m_InitPan = pan; } in SetInitPan() 138 void SetInitSurroundPan( f32 surroundPan ) { m_InitSurroundPan = surroundPan; } in SetInitSurroundPan() 139 void SetTune( f32 tune ) { m_Tune = tune; } in SetTune() 162 void SetUserVolume( f32 volume ) { m_UserVolume = volume; } in SetUserVolume() 163 void SetUserPitch( f32 pitch ) { m_UserPitch = pitch; } in SetUserPitch() 164 void SetUserPitchRatio( f32 pitchRatio ) { m_UserPitchRatio = pitchRatio; } in SetUserPitchRatio() 165 void SetUserPan( f32 pan ) { m_UserPan = pan; } in SetUserPan() 166 void SetUserSurroundPan( f32 surroundPan ) { m_UserSurroundPan = surroundPan; } in SetUserSurroundPan() 167 void SetUserLpfFreq( f32 lpfFreq ) { m_UserLpfFreq = lpfFreq; } in SetUserLpfFreq() [all …]
|
| /NW4C-2.0.3/include/nw/anim/ |
| D | anim_AnimFrameController.h | 43 AnimFrame(f32 frame) { ResetFrame(frame); } in AnimFrame() 50 AnimFrame(f32 frame, f32 lastFrame) { Set(frame, lastFrame); } in AnimFrame() 68 f32 GetFrame() const { return m_Frame; } in GetFrame() 74 void SetFrame(f32 frame) in SetFrame() 81 f32 GetLastFrame() const { return m_LastFrame; } in GetLastFrame() 87 void SetLastFrame(f32 lastFrame) { m_LastFrame = lastFrame; } in SetLastFrame() 104 void Set(f32 frame, f32 lastFrame) in Set() 114 void ResetFrame(f32 frame) in ResetFrame() 120 f32 GetDelta() const { return m_Frame - m_LastFrame; } in GetDelta() 143 f32 m_Frame; [all …]
|
| /NW4C-2.0.3/include/nw/ut/ |
| D | ut_Float24.h | 46 static u32 Float32ToBits32(f32 value) in Float32ToBits32() 58 static f32 Bits32ToFloat32(u32 value) in Bits32ToFloat32() 60 return *reinterpret_cast<f32*>(&value); in Bits32ToFloat32() 96 /* implicit */ Float24( f32 value ) : m_Float32( value ) {} in Float24() 98 f32 GetFloat32Value() const { return m_Float32; } in GetFloat32Value() 101 Float24& operator =(f32 value) { this->m_Float32 = value; return *this; } 104 operator f32() const { return m_Float32; } in f32() function 106 f32 operator +(f32 right) const { return this->m_Float32 + right; } 107 f32 operator -(f32 right) const { return this->m_Float32 - right; } 108 f32 operator *(f32 right) const { return this->m_Float32 * right; } [all …]
|
| D | ut_Rect.h | 37 f32 left; //!< 矩形の左座標です。 38 f32 top; //!< 矩形の上座標です。 39 f32 right; //!< 矩形の右座標です。 40 f32 bottom; //!< 矩形の下座標です。 69 Rect(f32 l, f32 t, f32 r, f32 b) in Rect() 104 f32 GetWidth() const { return right - left; } in GetWidth() 111 f32 GetHeight() const { return bottom - top; } in GetHeight() 118 f32 GetX() const { return left; } in GetX() 125 f32 GetY() const { return top; } in GetY() 132 void SetWidth(f32 width) { right = left + width; } in SetWidth() [all …]
|
| /NW4C-2.0.3/sources/libraries/snd/ |
| D | snd_Sound3DCalculator.cpp | 34 inline f32 SolveLinerFunction( f32 x, f32 x1, f32 x2, f32 y1, f32 y2 ) in SolveLinerFunction() 37 f32 divider = x1 - x2; in SolveLinerFunction() 64 f32* volumePtr, in CalcVolumeAndPriority() 72 const f32 actorDistance = nw::math::VEC3Len( &pos ); in CalcVolumeAndPriority() 105 f32* panPtr, in CalcPan() 106 f32* spanPtr in CalcPan() 114 const f32 actorDistance = nw::math::VEC3Len( &pos ); in CalcPan() 146 f32* pitchPtr in CalcPitch() 151 const f32 sonicVelocity = manager.GetSonicVelocity(); in CalcPitch() 161 const f32 distance = nw::math::VEC3Len( &relPos ); in CalcPitch() [all …]
|
| D | snd_Util.cpp | 38 const f32 PAN_CURVE_MIN = 0.71f; 39 f32 s_PanCurveMax = 1.0f; // PAN_CURVE_MIN; 42 const f32 SURROUND_MODE_PAN_CURVE_MAX = 0.8f; 45 const f32 NoteTable[ OCTAVE_DIVISION ] = 62 const f32 PitchTable[ Util::PITCH_DIVISION_RANGE ] = 130 const f32 Decibel2RatioTable[ VOLUME_TABLE_SIZE ] = 333 const f32 Pan2RatioTableSqrt[ PAN_TABLE_SIZE ] = 369 const f32 Pan2RatioTableSqrtSurround[ PAN_TABLE_SIZE ] = 406 const f32 Pan2RatioTableSinCos[ PAN_TABLE_SIZE ] = 442 const f32 Pan2RatioTableSinCosSurround[ PAN_TABLE_SIZE ] = [all …]
|
| /NW4C-2.0.3/include/nw/anim/res/ |
| D | anim_ResAnimCurve.h | 28 NW_INLINE f32 29 Round( f32 value ) in Round() 34 NW_INLINE f32 37 return f32(value) * (1.f / 1024.f); in CastS9_10ToF32() 41 CastF32ToS9_10( f32 value ) in CastF32ToS9_10() 46 NW_INLINE f32 49 return f32(value) * (1.f / 256.f); in CastS7_8ToF32() 53 CastF32ToS7_8( f32 value ) in CastF32ToS7_8() 58 NW_INLINE f32 61 return f32(value) * (1.f / 32.f); in CastS10_5ToF32() [all …]
|
| /NW4C-2.0.3/include/nw/gfx/ |
| D | gfx_Camera.h | 285 f32 GetWScale() const { return this->m_WScale; } in GetWScale() 288 void SetWScale(f32 wScale) { m_WScale = wScale; } in SetWScale() 369 void SetPosition(f32 x, f32 y, f32 z) in SetPosition() 404 void SetTargetPosition(f32 x, f32 y, f32 z) in SetTargetPosition() 439 void SetUpwardVector(f32 x, f32 y, f32 z) in SetUpwardVector() 452 f32 GetTwist() const; 462 void SetTwist(f32 twist); 494 void SetViewRotate(f32 x, f32 y, f32 z){ in SetViewRotate() 511 f32* fovy, 512 f32* aspectRatio, [all …]
|
| D | gfx_CommandUtil.h | 497 void NWCopyVec4Reverse(f32* dst, const f32* src); 502 void NWCopyVec4WithHeader(f32* dst, const f32* src, u32 header); 507 void NWCopyMtx24Reverse(f32* dst, const f32* src); 512 void NWCopyMtx24WithHeader(f32* dst, const f32* src, u32 header); 517 void NWCopyMtx34Reverse(f32* dst, const f32* src); 522 void NWCopyMtx34WithHeader(f32* dst, const f32* src, u32 header); 527 void NWCopyMtx44Reverse(f32* dst, const f32* src); 532 void NWCopyMtx44WithHeader(f32* dst, const f32* src, u32 header); 537 void NWCopyVec3Reverse(f32* dst, const f32* src); 542 void NWCopyVec3WithHeader(f32* dst, const f32* src, u32 header ); [all …]
|
| D | gfx_Viewport.h | 93 f32 width = static_cast<f32>(renderTarget->GetDescription().width); in Viewport() 94 f32 height = static_cast<f32>(renderTarget->GetDescription().height); in Viewport() 116 void SetDepthRange(f32 near, f32 far) in SetDepthRange() 153 static_cast<f32>(renderTarget->GetDescription().width), in SetBound() 154 static_cast<f32>(renderTarget->GetDescription().height) ); in SetBound() 161 f32 GetDepthNear() const { return m_DepthNear; } in GetDepthNear() 164 f32 GetDepthFar() const { return m_DepthFar; } in GetDepthFar() 170 f32 m_DepthNear; 171 f32 m_DepthFar;
|
| /NW4C-2.0.3/demos/Nw4cDemo/include/ |
| D | SmRectCollision.h | 37 void SetRect( f32 x, f32 y, f32 w, f32 h ) in SetRect() 49 f32 posx = static_cast<f32>(x); in CheckInner() 50 f32 posy = static_cast<f32>(y); in CheckInner() 52 f32 colx = m_Collision.GetX(); in CheckInner() 53 f32 coly = m_Collision.GetY(); in CheckInner() 55 f32 colw = m_Collision.GetWidth(); in CheckInner() 56 f32 colh = m_Collision.GetHeight(); in CheckInner() 76 void SetXY( f32 x, f32 y ) in SetXY() 82 void AddXY( f32 x, f32 y ) in AddXY() 91 f32 GetX() const { return m_Collision.GetX(); } in GetX() [all …]
|
| D | SmModel.h | 58 void SetPosition( f32 x, f32 y, f32 z ); 61 void SetScale( f32 x, f32 y, f32 z ); 64 void SetRotate( f32 x, f32 y, f32 z ); 92 void SetAnimationFrame( f32 setFrame ); 95 bool AddAnimationFrame( f32 addFrame, bool loop = true ); 98 f32 GetAnimationFrame() const; 101 f32 GetAnimationMaxFrame() const; 119 void SetVisibleZone( f32 term ); 149 f32 m_AnimationFrame;
|
| D | SmPrimitive.h | 106 void Render( GLenum entryMode, f32 posX = 0.f, f32 posY = 0.f ); 109 void SetVertex( uint vertexIdx, f32 x, f32 y, nw::ut::Color8 color ); 151 f32 posX = 0.f, 152 f32 posY = 0.f ); 155 void SetVertex( f32 x, f32 y, nw::ut::Color8 color ); 165 f32 m_OffsetX; 166 f32 m_OffsetY;
|
| /NW4C-2.0.3/sources/libraries/anim/res/ |
| D | anim_ResAnimCurve.cpp | 58 typedef f32 FrameType; 63 static FrameType QuantizedFrame( const ResFloatSegmentFVData*, f32 frame ) { return frame; } in QuantizedFrame() 65 …static f32 GetFrameF32( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->G… in GetFrameF32() 66 …static f32 GetValue( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->GetV… in GetValue() 79 static FrameType QuantizedFrame( const ResFloatSegmentFVData* pSegment, f32 frame ) in QuantizedFrame() 81 f32 decoded = frame / pSegment->fv32.m_FrameScale; in QuantizedFrame() 85 static f32 GetFrameF32( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetFrameF32() 87 f32 frame = pKey->GetFrameF32(); in GetFrameF32() 90 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue() 92 f32 value = pKey->GetValue(); in GetValue() [all …]
|
| /NW4C-2.0.3/include/nw/font/ |
| D | font_CharWriter.h | 254 f32 hScale, in SetScale() 255 f32 vScale in SetScale() 266 void SetScale(f32 hvScale) in SetScale() 276 f32 GetScaleH() const { return m_Scale.x; } in GetScaleH() 282 f32 GetScaleV() const { return m_Scale.y; } in GetScaleV() 290 f32 width, 291 f32 height); 297 void SetFontSize(f32 height); 304 f32 GetFontWidth() const; 311 f32 GetFontHeight() const; [all …]
|
| D | font_TextWriterBase.h | 113 void SetLineSpace(f32 space) { m_LineSpace = space; } in SetLineSpace() 119 f32 GetLineSpace() const { return m_LineSpace; } in GetLineSpace() 125 void SetLineHeight(f32 height); 131 f32 GetLineHeight() const; 137 void SetCharSpace(f32 space) { m_CharSpace = space; } in SetCharSpace() 143 f32 GetCharSpace() const { return m_CharSpace; } in GetCharSpace() 166 void SetWidthLimit(f32 limit) { m_WidthLimit = limit; } in SetWidthLimit() 173 f32 GetWidthLimit() const { return m_WidthLimit; } in GetWidthLimit() 236 f32 CalcFormatStringWidth( 247 f32 CalcStringWidth( in CalcStringWidth() [all …]
|
| /NW4C-2.0.3/sources/libraries/anim/ |
| D | anim_AnimFrameController.cpp | 29 f32 PlayPolicy_Onetime(f32 startFrame, f32 endFrame, f32 inputFrame, void* /*pUserData*/) in PlayPolicy_Onetime() 47 f32 PlayPolicy_Loop(f32 startFrame, f32 endFrame, f32 inputFrame, void* /*pUserData*/) in PlayPolicy_Loop() 50 f32 length = endFrame - startFrame; in PlayPolicy_Loop() 57 f32 offset = inputFrame - startFrame; in PlayPolicy_Loop()
|
| /NW4C-2.0.3/include/nw/demo/ |
| D | demo_GraphicsDrawing.h | 62 m_ScreenSize = math::VEC2( static_cast<f32>(width), static_cast<f32>(height) ); in SetScreenSize() 131 void SetLineWidth( f32 width ) { m_LineWidth = width; } in SetLineWidth() 157 math::VEC2(static_cast<f32>(x1), static_cast<f32>(y1)), in DrawLine() 158 math::VEC2(static_cast<f32>(x2), static_cast<f32>(y2)), in DrawLine() 184 math::VEC2(static_cast<f32>(posh), static_cast<f32>(posv)), in DrawRectangle() 185 math::VEC2(static_cast<f32>(sizeh), static_cast<f32>(sizev)), in DrawRectangle() 211 math::VEC2(static_cast<f32>(posh), static_cast<f32>(posv)), in FillRectangle() 212 math::VEC2(static_cast<f32>(sizeh), static_cast<f32>(sizev)), in FillRectangle() 306 f32 DrawString( const char* format, ... ); 318 f32 DrawString( s32 posh, s32 posv, const char* format, ... ); [all …]
|
| /NW4C-2.0.3/include/nw/gfx/res/ |
| D | gfx_ResCamera.h | 113 f32 width = m_Height * m_AspectRatio; in Rect() 121 f32 GetHeight() const { return m_Height; } in GetHeight() 126 f32 GetWidth() const { return m_Height * m_AspectRatio; } in GetWidth() 131 f32 GetAspectRatio() const { return m_AspectRatio; } in GetAspectRatio() 143 NW_DEPRECATED_FUNCTION(void Set( f32 l, f32 r, f32 b, f32 t )) in NW_DEPRECATED_FUNCTION() 154 void SetWithoutFlip( f32 l, f32 r, f32 b, f32 t ) in SetWithoutFlip() 169 void SetWithYFlip( f32 l, f32 r, f32 b, f32 t ) in SetWithYFlip() 181 void Set( f32 aspect, f32 height, const nw::math::VEC2& center ) in Set() 248 NW_RES_FIELD_PRIMITIVE_DECL( f32, Near ) // GetNear(), SetNear() in NW_RES_FIELD_PRIMITIVE_DECL() argument 258 NW_RES_FIELD_PRIMITIVE_DECL( f32, Far ) // GetFar(), SetFar() in NW_RES_FIELD_PRIMITIVE_DECL() [all …]
|
| /NW4C-2.0.3/sources/libraries/gfx/ |
| D | gfx_CommandUtil.cpp | 35 f32* /* dst */, in NWCopyVec4Reverse() argument 36 const f32* /* src */) in NWCopyVec4Reverse() argument 49 f32* /* dst */, in NWCopyVec4WithHeader() argument 50 const f32* /* src */, in NWCopyVec4WithHeader() argument 65 f32* /* dst */, in NWCopyMtx24Reverse() argument 66 const f32* /* src */) in NWCopyMtx24Reverse() argument 83 f32* /* dst */, in NWCopyMtx24WithHeader() argument 84 const f32* /* src */, in NWCopyMtx24WithHeader() argument 103 f32* /* dst */, in NWCopyMtx34Reverse() argument 104 const f32* /* src */) in NWCopyMtx34Reverse() argument [all …]
|
| /NW4C-2.0.3/sources/libraries/font/ |
| D | font_TextWriterBase.cpp | 74 f32 75 AdjustCenterValue(f32 value) in AdjustCenterValue() 118 TextWriterBase<CharType>::SetLineHeight(f32 height) in SetLineHeight() 127 f32 146 f32 165 f32 221 f32 238 f32 285 f32 296 f32 width = VPrintf(format, vargs); in Printf() [all …]
|