| /NW4C-1.3.3/sources/libraries/ut/ |
| D | ut_ResDictionary.cpp | 29 const ResDicLinearData::ResDicNodeData* x = ref().data; in GetIndex() local 33 if ( x->toName.offset != 0 && std::strcmp(key, x->toName.to_ptr()) == 0 ) in GetIndex() 37 ++x; in GetIndex() 51 const ResDicPatriciaData::ResDicNodeData* x; in Get() local 54 x = &r.data[p->idxLeft]; in Get() 56 while(p->ref > x->ref) in Get() 58 p = x; in Get() 61 u32 wd = u32(x->ref) >> 3; in Get() 62 u32 pos = u32(x->ref) & 7; in Get() 66 x = &r.data[x->idxRight]; in Get() [all …]
|
| /NW4C-1.3.3/SampleData/Graphics/Shader/UserShader/ |
| D | UserTransformMatrix.vsh | 23 mova a0.x, TEMP1.x 25 dp4 TEMP3.x, TEMP_POSI, nw_matrix_pallet[0 + a0.x]._XYZW 26 dp4 TEMP3.y, TEMP_POSI, nw_matrix_pallet[1 + a0.x]._XYZW 27 dp4 TEMP3.z, TEMP_POSI, nw_matrix_pallet[2 + a0.x]._XYZW 36 mova a0.x, TEMP1.x 38 dp4 TEMP3.x, TEMP_POSI, nw_matrix_pallet[0 + a0.x]._XYZW 39 dp4 TEMP3.y, TEMP_POSI, nw_matrix_pallet[1 + a0.x]._XYZW 40 dp4 TEMP3.z, TEMP_POSI, nw_matrix_pallet[2 + a0.x]._XYZW 42 dp3 TEMP4.x, TEMP_NORM, nw_matrix_pallet[0 + a0.x]._XYZW 43 dp3 TEMP4.y, TEMP_NORM, nw_matrix_pallet[1 + a0.x]._XYZW [all …]
|
| /NW4C-1.3.3/sources/shaders/gfx/DefaultShader/ |
| D | TransformMatrix.vsh | 23 mova a0.x, TEMP1.x 25 dp4 TEMP3.x, TEMP_POSI, nw_matrix_pallet[0 + a0.x]._XYZW 26 dp4 TEMP3.y, TEMP_POSI, nw_matrix_pallet[1 + a0.x]._XYZW 27 dp4 TEMP3.z, TEMP_POSI, nw_matrix_pallet[2 + a0.x]._XYZW 36 mova a0.x, TEMP1.x 38 dp4 TEMP3.x, TEMP_POSI, nw_matrix_pallet[0 + a0.x]._XYZW 39 dp4 TEMP3.y, TEMP_POSI, nw_matrix_pallet[1 + a0.x]._XYZW 40 dp4 TEMP3.z, TEMP_POSI, nw_matrix_pallet[2 + a0.x]._XYZW 42 dp3 TEMP4.x, TEMP_NORM, nw_matrix_pallet[0 + a0.x]._XYZW 43 dp3 TEMP4.y, TEMP_NORM, nw_matrix_pallet[1 + a0.x]._XYZW [all …]
|
| D | CalcVertexLighting.vsh | 27 mova a0.x, TEMP3 28 mov TEMP4.x, VERTEX_LIGHT_UNIFORM(VERTEX_LIGHT_POSITION + a0.x)._W 29 mov TEMP4.y, VERTEX_LIGHT_UNIFORM(VERTEX_LIGHT_DISTANCE_ATTENUATION + a0.x)._W 32 … dp3 TEMP6.x, TEMP_NORM, VERTEX_LIGHT_UNIFORM(VERTEX_LIGHT_POSITION + a0.x)._XYZW 35 // ���C�g�x�N�g�������߂� 36 sub TEMP4, VERTEX_LIGHT_UNIFORM(VERTEX_LIGHT_POSITION + a0.x)._XYZW, TEMP_POSI 39 mov TEMP5.x, CONST_1 42 … TEMP6.y, TEMP5, VERTEX_LIGHT_UNIFORM(VERTEX_LIGHT_DISTANCE_ATTENUATION + a0.x)._XYZW 45 mov TEMP5, VERTEX_LIGHT_UNIFORM(VERTEX_LIGHT_SPOT_DIRECTION + a0.x)._XYZW 47 // ���C�g�x�N�g���K�� [all …]
|
| D | CalcQuaternion.vsh | 35 dp3 TEMP6.x, TEMP_NORM, TEMP_NORM 36 dp3 TEMP7.x, WRLD_NORM, WRLD_NORM 37 rsq TEMP6.x, TEMP6.x 38 rsq TEMP7.x, TEMP7.x 39 mul TEMP_NORM.xyz, TEMP_NORM.xyz, TEMP6.x 40 mul WRLD_NORM.xyz, WRLD_NORM.xyz, TEMP7.x 45 …cmp LEQ, LEQ, r4.x, CONST_0 // compare 0.5*(n.z + 1.0) wit… 46 …rsq r4, r4.x // 1/sqrt(0.5*(n.z + 1.0)) is … 49 …rcp TEMP_QUAT.z, r4.x // sqrt(0.5*(n.z + 1.0)) is in quat.z… 60 dp3 TEMP6.x, TEMP_NORM, TEMP_NORM [all …]
|
| /NW4C-1.3.3/sources/shaders/gfx/ShadowShader/ |
| D | TransformMatrix.vsh | 25 mova a0.x, TEMP1.x 27 dp4 TEMP3.x, TEMP_POSI, nw_matrix_pallet[0 + a0.x]._XYZW 28 dp4 TEMP3.y, TEMP_POSI, nw_matrix_pallet[1 + a0.x]._XYZW 29 dp4 TEMP3.z, TEMP_POSI, nw_matrix_pallet[2 + a0.x]._XYZW 38 mova a0.x, TEMP1.x 40 dp4 TEMP3.x, TEMP_POSI, nw_matrix_pallet[0 + a0.x]._XYZW 41 dp4 TEMP3.y, TEMP_POSI, nw_matrix_pallet[1 + a0.x]._XYZW 42 dp4 TEMP3.z, TEMP_POSI, nw_matrix_pallet[2 + a0.x]._XYZW 44 dp3 TEMP4.x, TEMP_NORM, nw_matrix_pallet[0 + a0.x]._XYZW 45 dp3 TEMP4.y, TEMP_NORM, nw_matrix_pallet[1 + a0.x]._XYZW [all …]
|
| /NW4C-1.3.3/sources/shaders/gfx/ParticleShader/ |
| D | gfx_ParticleVShader.vsh | 34 #pragma bind_symbol(aInput4.x, v4, v4) // alpha 37 #pragma bind_symbol(aInput7.x, v7, v7) // textureRotate 97 #define CONST_1__2PI c84.x 107 // �������炵�炭�|���S���̊��x�N�g���̌v�Z 139 // sincos x 140 mad TEMP0.xy, TEMP3.x, TEMP1.xy, TEMP1.zw 141 mad TEMP0.xy, TEMP3.x, TEMP0.xy, TEMP2.xy 142 mad TEMP0.xy, TEMP3.x, TEMP0.xy, TEMP2.zw 143 mad TEMP0.xy, TEMP3.x, TEMP0.xy, TEMP5.xy 144 mad TEMP0.xy, TEMP3.x, TEMP0.xy, TEMP5.zw [all …]
|
| /NW4C-1.3.3/sources/shaders/lyt/ |
| D | lyt_PaneShader.vsh | 68 #define CONST_0 CONST.x 101 // aPosition = [ aVertexIndex.x, - aVertexIndex.y, 0, 1 ] 106 // aTexCoord[0,1,2] = [ aVertex.x, aVertex.y, 0, 1 ] 109 // i = 1 * aVertex.x + 2 * aVertex.y 114 mul aFrameSpec.xy, aFrameSpec.x, CONST_1_2 115 flr aFrameSpec.x, aFrameSpec 116 cmp CMP_GT, CMP_GT, aFrameSpec.y, aFrameSpec.x 126 mov aTexCoord0, uVertexTexCoord0[a0.x] 127 mov aTexCoord1, uVertexTexCoord1[a0.x] 128 mov aTexCoord2, uVertexTexCoord2[a0.x] [all …]
|
| /NW4C-1.3.3/sources/libraries/gfx/ |
| D | gfx_ParticleEmitter.cpp | 592 if (nw::math::FAbs(cookedScale.x) < Epsilon) in CalcCubeForm() 594 cookedScale.x = Epsilon; in CalcCubeForm() 614 position.x = random->NextFloatSignedOne(); in CalcCubeForm() 618 position.x *= cookedScale.x; in CalcCubeForm() 625 ((cookedScale.x * cookedScale.y) + in CalcCubeForm() 627 (cookedScale.z * cookedScale.x)); in CalcCubeForm() 641 if (d < cookedScale.x * cookedScale.y) in CalcCubeForm() 645 else if (d < (cookedScale.x * cookedScale.y) + (cookedScale.y * cookedScale.z)) in CalcCubeForm() 654 position.x *= cookedScale.x; in CalcCubeForm() 660 f32 xyz = cookedScale.x * cookedScale.y * cookedScale.z; in CalcCubeForm() [all …]
|
| D | gfx_BillboardUpdater.cpp | 115 viewPos.x = - (m[0][0] * wPos.x + m[0][1] * wPos.y + m[0][2] * wPos.z + m[0][3]); in Update() 116 viewPos.y = - (m[1][0] * wPos.x + m[1][1] * wPos.y + m[1][2] * wPos.z + m[1][3]); in Update() 117 viewPos.z = - (m[2][0] * wPos.x + m[2][1] * wPos.y + m[2][2] * wPos.z + m[2][3]); in Update() 193 m[0][0] = rx.x; in CalculateLocalMatrix() 194 m[0][1] = ry.x; in CalculateLocalMatrix() 195 m[0][2] = rz.x; in CalculateLocalMatrix() 226 m[0][0] = rx.x; in CalculateLocalMatrix() 227 m[0][1] = ry.x; in CalculateLocalMatrix() 228 m[0][2] = rz.x; in CalculateLocalMatrix() 264 m[0][0] = rx.x; in CalculateScreenLocalMatrix() [all …]
|
| /NW4C-1.3.3/include/nw/ut/ |
| D | ut_Inlines.h | 471 Clamp(T x, T low, T high) in Clamp() argument 473 return (x > high) ? high : ( (x < low) ? low : x ); in Clamp() 487 template <typename ValueT> ValueT RoundUp(ValueT x, unsigned int base); 491 RoundUp(ValueT* x, unsigned int base) in RoundUp() argument 493 IntPtr value = reinterpret_cast<IntPtr>(x); in RoundUp() 501 RoundUp(const ValueT* x, unsigned int base) in RoundUp() argument 503 IntPtr value = reinterpret_cast<IntPtr>(x); in RoundUp() 511 RoundUp(ValueT x, unsigned int base) in RoundUp() argument 513 return static_cast<ValueT>( (x + (base - 1)) & ~(base - 1) ); in RoundUp() 525 template <typename ValueT> ValueT RoundDown(ValueT x, unsigned int base); [all …]
|
| D | ut_ResDictionary.h | 194 ResDicPatriciaData::ResDicNodeData* x = Get(s, std::strlen(s)); variable 197 if (x) 199 return const_cast<void*>(x->ofsData.to_ptr()); 212 ResDicPatriciaData::ResDicNodeData* x = Get(s, len); in operator() local 215 if (x) in operator() 217 return const_cast<void*>(x->ofsData.to_ptr()); in operator() 228 ResDicPatriciaData::ResDicNodeData* x = Get(n); variable 231 if (x) 233 return const_cast<void*>(x->ofsData.to_ptr()); 246 ResDicPatriciaData::ResDicNodeData* x = Get(s, len); in GetIndex() local [all …]
|
| D | ut_Rect.h | 145 void MoveTo(f32 x, f32 y) in MoveTo() 147 right = x + GetWidth(); in MoveTo() 148 left = x; in MoveTo() 175 void SetOriginAndSize(f32 x, f32 y, f32 width, f32 height ) in SetOriginAndSize() 177 left = x; in SetOriginAndSize() 178 right = x + width; in SetOriginAndSize()
|
| D | ut_ResTypes.h | 278 nw::ut::ResF32 x; member 281 operator nw::math::VEC2() const { nw::math::VEC2 vec; vec.x = x; vec.y = y; return vec; } in VEC2() 282 void operator = (const VEC2& val) { x = val.x; y = val.y; } 287 nw::ut::ResF32 x; member 293 nw::math::VEC3 vec; vec.x = x; vec.y = y; vec.z = z; return vec; in VEC3() 295 void operator = (const VEC3& val) { x = val.x; y = val.y; z = val.z; } 300 nw::ut::ResF32 x; member 307 nw::math::VEC4 vec; vec.x = x; vec.y = y; vec.z = z; vec.w = w; return vec; in VEC4() 309 void operator = (const nw::math::VEC4& val) { x = val.x; y = val.y; z = val.z; w = val.w; } 347 ResF32 x; member [all …]
|
| /NW4C-1.3.3/sources/libraries/lyt/ |
| D | lyt_DrawerUniform.cpp | 37 mtx.f._00 * vec.x + mtx.f._01 * vec.y, in Transform() 38 mtx.f._10 * vec.x + mtx.f._11 * vec.y); in Transform() 90 register const f32 scalex = texSRT.scale.x; in CalcTextureCoords() 102 register nw::math::VEC2 ctrans( ( center.x + texSRT.translate.x ) * adjust_x, in CalcTextureCoords() 108 register nw::math::VEC2 lt( pTexCoordQuad[ src ][ VERTEX_LT ].x, in CalcTextureCoords() 110 register nw::math::VEC2 rb( pTexCoordQuad[ src ][ VERTEX_RB ].x, in CalcTextureCoords() 116 pTexCoord->x = lt.x ; in CalcTextureCoords() 118 pTexCoord->z = rb.x ; in CalcTextureCoords() 125 register nw::math::VEC2 lb( pTexCoordQuad[ src ][ VERTEX_LB ].x, in CalcTextureCoords() 127 register nw::math::VEC2 rt( pTexCoordQuad[ src ][ VERTEX_RT ].x, in CalcTextureCoords() [all …]
|
| /NW4C-1.3.3/sources/libraries/dev/ |
| D | dev_DirectPrint.cpp | 257 int x, in Erase() argument 266 this->Erase(context, x, y, width, height); in Erase() 286 int x, in DrawString() argument 298 this->DrawString(context, x, y, str, turnOver, backErase); in DrawString() 345 u8* GetPixelAddress(const PixelWriterContext& context, int x, int y) in GetPixelAddress() argument 347 return context.m_BufferBase + context.m_StrideX * x + context.m_StrideY * y; in GetPixelAddress() 360 int x, in Erase() argument 366 if (x < 0) in Erase() 368 width += x; in Erase() 369 x = 0; in Erase() [all …]
|
| /NW4C-1.3.3/demos/Nw4cDemo/include/ |
| D | SmRectCollision.h | 35 void SetRect( f32 x, f32 y, f32 w, f32 h ) in SetRect() argument 37 m_Collision.SetOriginAndSize( x, y, w, h ); in SetRect() 45 bool CheckInner( u16 x, u16 y ) in CheckInner() argument 47 f32 posx = static_cast<f32>(x); in CheckInner() 74 void SetXY( f32 x, f32 y ) in SetXY() argument 76 m_Collision.MoveTo( x, y ); in SetXY() 80 void AddXY( f32 x, f32 y ) in AddXY() argument 82 m_Collision.left += x; in AddXY() 83 m_Collision.top += x; in AddXY()
|
| /NW4C-1.3.3/documents/CreativeStudio/html/assets/ |
| D | yahoo-dom-event.js | 8 …x,AA,y,Y,G;if(z){if(z[l]||z.item){return z;}if(typeof z==="string"){AB=z;z=K.getElementById(z);G=(… argument 9 …x,Y,G){return E.Dom.batch(x,E.Dom._replaceClass,{from:Y,to:G});},_replaceClass:function(y,x){var Y… argument
|
| /NW4C-1.3.3/include/nw/font/ |
| D | font_CharWriter.h | 256 m_Scale.x = hScale; in SetScale() 266 m_Scale.x = hvScale; in SetScale() 274 f32 GetScaleH() const { return m_Scale.x; } in GetScaleH() 382 f32 x, in SetCursor() argument 386 m_CursorPos.x = x; in SetCursor() 397 f32 x, in SetCursor() argument 402 m_CursorPos.x = x; in SetCursor() 417 m_CursorPos.x += dx; in MoveCursor() 433 m_CursorPos.x += dx; in MoveCursor() 442 void SetCursorX(f32 x) { m_CursorPos.x = x; } in SetCursorX() argument [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() argument 36 return x * ( y1 - y2 ) / divider + ( x1 * y2 - x2 * y1 ) / divider; in SolveLinerFunction() 365 f32 x = 0.0f; in CalcPanSurround() local 376 x = SolveLinerFunction( angle, -nw::math::F_PI, angleRearLeft, 0.0f, -1.0f ); in CalcPanSurround() 381 x = -1.0f; in CalcPanSurround() 386 x = -1.0f; in CalcPanSurround() 391 x = SolveLinerFunction( angle, angleFrontLeft, angleFrontRight, -1.0f, 1.0f ); in CalcPanSurround() 396 x = 1.0f; in CalcPanSurround() 401 x = 1.0f; in CalcPanSurround() 406 x = SolveLinerFunction( angle, angleRearRight, nw::math::F_PI, 1.0f, 0.0f ); in CalcPanSurround() [all …]
|
| /NW4C-1.3.3/demos/Nw4cDemo/sources/ |
| D | SmSliderBar.cpp | 32 SmSliderBar::SmSliderBar( uint x, uint y, uint length, SmSliderBarType type ) in SmSliderBar() argument 39 m_BaseX( x ), in SmSliderBar() 54 m_Bar->SetVertex( 0, x - SM_BAR_HALF_SIZE, y, nw::ut::Color8::BLACK ); in SmSliderBar() 55 m_Bar->SetVertex( 1, x - SM_BAR_HALF_SIZE, y + length, nw::ut::Color8::BLACK ); in SmSliderBar() 56 m_Bar->SetVertex( 2, x + SM_BAR_HALF_SIZE, y, nw::ut::Color8::BLACK ); in SmSliderBar() 57 m_Bar->SetVertex( 3, x + SM_BAR_HALF_SIZE, y + length, nw::ut::Color8::BLACK ); in SmSliderBar() 65 …m_Slider->SetVertex( 0, x - SM_SLIDER_HALF_SIZE, y - SM_SLIDER_HALF_SIZE, nw::ut::Color8::RED … in SmSliderBar() 66 …m_Slider->SetVertex( 1, x - SM_SLIDER_HALF_SIZE, y + SM_SLIDER_HALF_SIZE, nw::ut::Color8::RED … in SmSliderBar() 67 …m_Slider->SetVertex( 2, x + SM_SLIDER_HALF_SIZE, y - SM_SLIDER_HALF_SIZE, nw::ut::Color8::RED … in SmSliderBar() 68 …m_Slider->SetVertex( 3, x + SM_SLIDER_HALF_SIZE, y + SM_SLIDER_HALF_SIZE, nw::ut::Color8::RED … in SmSliderBar() [all …]
|
| D | SmButton.cpp | 28 SmButton::SmButton( uint x, uint y, uint w, uint h ) in SmButton() argument 44 m_Button->SetVertex( 0, x, y, nw::ut::Color8::BLACK ); in SmButton() 45 m_Button->SetVertex( 1, x, y + h, nw::ut::Color8::BLACK ); in SmButton() 46 m_Button->SetVertex( 2, x + w, y, nw::ut::Color8::BLACK ); in SmButton() 47 m_Button->SetVertex( 3, x + w, y + h, nw::ut::Color8::BLACK ); in SmButton() 56 …m_PushButton->SetVertex( 0, x - PRESSED_BTN_MARGIN, y - PRESSED_BTN_MARGIN, nw::ut::Colo… in SmButton() 57 …m_PushButton->SetVertex( 1, x - PRESSED_BTN_MARGIN, y + h + PRESSED_BTN_MARGIN, nw::ut::Colo… in SmButton() 58 …m_PushButton->SetVertex( 2, x + w + PRESSED_BTN_MARGIN, y - PRESSED_BTN_MARGIN, nw::ut::Colo… in SmButton() 59 …m_PushButton->SetVertex( 3, x + w + PRESSED_BTN_MARGIN, y + h + PRESSED_BTN_MARGIN, nw::ut::Colo… in SmButton() 64 m_Collision.SetRect( x, y, w, h ); in SmButton()
|
| /NW4C-1.3.3/include/nw/math/inline/ |
| D | math_Matrix34.ipp | 45 VEC3 lookReverse(pCamPos->x - pTarget->x, pCamPos->y - pTarget->y, pCamPos->z - pTarget->z); 47 if ((lookReverse.x == 0.0f) && (lookReverse.z == 0.0f)) 53 m[0][3] = -pCamPos->x; 83 VEC3 r(lookReverse.z, 0.0f, -lookReverse.x); 98 right.x = st * u.x + ct * r.x; 102 up.x = ct * u.x - st * r.x; 107 m[0][0] = right.x; 113 m[1][0] = up.x; 119 m[2][0] = lookReverse.x; 150 SinCosFIdx(&sx, &cx, pCamRotate->x); [all …]
|
| /NW4C-1.3.3/sources/libraries/demo/ |
| D | demo_CameraController.cpp | 156 m_Rotate.x = nw::math::AsinFIdx(-lookReverse.y); in CameraEntry() 157 m_Rotate.y = nw::math::Atan2FIdx(-lookReverse.x, lookReverse.z); in CameraEntry() 166 m_Rotate.x = nw::math::AsinFIdx(-lookReverse.y); in CameraEntry() 167 m_Rotate.y = nw::math::Atan2FIdx(-lookReverse.x, lookReverse.z); in CameraEntry() 175 f32 xs = nw::math::SinFIdx(m_Rotate.x); in CameraEntry() 176 f32 xc = nw::math::CosFIdx(m_Rotate.x); in CameraEntry() 180 m_TargetPos.x = cameraPos.x + m_TargetDistance * xc * ys; in CameraEntry() 208 else if (stick.x != 0.0f || stick.y != 0.0f) in Update() 213 m_TargetDistance -= (stick.x + stick.y) * dollySpeed; in Update() 218 nw::math::VEC3 dScreen(stick.x * moveSpeed, 0.0f, -stick.y * moveSpeed); in Update() [all …]
|
| /NW4C-1.3.3/sources/shaders/font/ |
| D | font_RectDrawerShader.vsh | 78 mova a0.x, vVtxData 81 mov rQuad, uUniformAddr[ a0.x ].wzyx 93 dp4 rTempPos.x, rPosition, rTransform 100 dp4 rTempView.x, rTempPos, uUniformMtx[ a0.x + 0 ].wzyx 101 dp4 rTempView.y, rTempPos, uUniformMtx[ a0.x + 1 ].wzyx 102 dp4 rTempView.z, rTempPos, uUniformMtx[ a0.x + 2 ].wzyx 105 mov rTempPos.z, uUniformMtx[ a0.x + 2 ].x // temp z = z 110 mov rTempPos.x, uStereoCamera.w 114 mov rTempPos.x, uStereoCamera.w // temp x = half parallax 118 …mad rTempView.x, rTempPos.x, rTempPos.z, rTempView.x // x = temp x * te… [all …]
|