| /NW4C-2.0.3/sources/libraries/ut/ |
| D | ut_ResDictionary.cpp | 31 const ResDicLinearData::ResDicNodeData* x = ref().data; in GetIndex() local 35 if ( x->toName.offset != 0 && std::strcmp(key, x->toName.to_ptr()) == 0 ) in GetIndex() 39 ++x; in GetIndex() 53 const ResDicPatriciaData::ResDicNodeData* x; in Get() local 56 x = &r.data[p->idxLeft]; in Get() 58 while(p->ref > x->ref) in Get() 60 p = x; in Get() 63 u32 wd = u32(x->ref) >> 3; in Get() 64 u32 pos = u32(x->ref) & 7; in Get() 68 x = &r.data[x->idxRight]; in Get() [all …]
|
| /NW4C-2.0.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-2.0.3/sources/shaders/gfx/DefaultShader/ |
| 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 …]
|
| D | CalcQuaternion.vsh | 37 dp3 TEMP6.x, TEMP_NORM, TEMP_NORM 38 dp3 TEMP7.x, WRLD_NORM, WRLD_NORM 39 rsq TEMP6.x, TEMP6.x 40 rsq TEMP7.x, TEMP7.x 41 mul TEMP_NORM.xyz, TEMP_NORM.xyz, TEMP6.x 42 mul WRLD_NORM.xyz, WRLD_NORM.xyz, TEMP7.x 47 …cmp LEQ, LEQ, r4.x, CONST_0 // compare 0.5*(n.z + 1.0) wit… 48 …rsq r4, r4.x // 1/sqrt(0.5*(n.z + 1.0)) is … 51 …rcp TEMP_QUAT.z, r4.x // sqrt(0.5*(n.z + 1.0)) is in quat.z… 62 dp3 TEMP6.x, TEMP_NORM, TEMP_NORM [all …]
|
| D | CalcVertexLighting.vsh | 29 mova a0.x, TEMP3 30 mov TEMP4.x, VERTEX_LIGHT_UNIFORM(VERTEX_LIGHT_POSITION + a0.x)._W 31 mov TEMP4.y, VERTEX_LIGHT_UNIFORM(VERTEX_LIGHT_DISTANCE_ATTENUATION + a0.x)._W 34 … dp3 TEMP6.x, TEMP_NORM, VERTEX_LIGHT_UNIFORM(VERTEX_LIGHT_POSITION + a0.x)._XYZW 37 // ���C�g�x�N�g�������߂� 38 sub TEMP4, VERTEX_LIGHT_UNIFORM(VERTEX_LIGHT_POSITION + a0.x)._XYZW, TEMP_POSI 41 mov TEMP5.x, CONST_1 44 … TEMP6.y, TEMP5, VERTEX_LIGHT_UNIFORM(VERTEX_LIGHT_DISTANCE_ATTENUATION + a0.x)._XYZW 47 mov TEMP5, VERTEX_LIGHT_UNIFORM(VERTEX_LIGHT_SPOT_DIRECTION + a0.x)._XYZW 49 // ���C�g�x�N�g���K�� [all …]
|
| /NW4C-2.0.3/sources/shaders/gfx/ShadowShader/ |
| D | TransformMatrix.vsh | 27 mova a0.x, TEMP1.x 29 dp4 TEMP3.x, TEMP_POSI, nw_matrix_pallet[0 + a0.x]._XYZW 30 dp4 TEMP3.y, TEMP_POSI, nw_matrix_pallet[1 + a0.x]._XYZW 31 dp4 TEMP3.z, TEMP_POSI, nw_matrix_pallet[2 + a0.x]._XYZW 40 mova a0.x, TEMP1.x 42 dp4 TEMP3.x, TEMP_POSI, nw_matrix_pallet[0 + a0.x]._XYZW 43 dp4 TEMP3.y, TEMP_POSI, nw_matrix_pallet[1 + a0.x]._XYZW 44 dp4 TEMP3.z, TEMP_POSI, nw_matrix_pallet[2 + a0.x]._XYZW 46 dp3 TEMP4.x, TEMP_NORM, nw_matrix_pallet[0 + a0.x]._XYZW 47 dp3 TEMP4.y, TEMP_NORM, nw_matrix_pallet[1 + a0.x]._XYZW [all …]
|
| /NW4C-2.0.3/sources/shaders/gfx/ParticleShader/ |
| D | gfx_ParticleVShader.vsh | 36 #pragma bind_symbol(aInput4.x, v4, v4) // alpha 39 #pragma bind_symbol(aInput7.x, v7, v7) // textureRotate 99 #define CONST_1__2PI c84.x 109 // �������炵�炭�|���S���̊��x�N�g���̌v�Z 141 // sincos x 142 mad TEMP0.xy, TEMP3.x, TEMP1.xy, TEMP1.zw 143 mad TEMP0.xy, TEMP3.x, TEMP0.xy, TEMP2.xy 144 mad TEMP0.xy, TEMP3.x, TEMP0.xy, TEMP2.zw 145 mad TEMP0.xy, TEMP3.x, TEMP0.xy, TEMP5.xy 146 mad TEMP0.xy, TEMP3.x, TEMP0.xy, TEMP5.zw [all …]
|
| /NW4C-2.0.3/sources/shaders/lyt/ |
| D | lyt_PaneShader.vsh | 70 #define CONST_0 CONST.x 103 // aPosition = [ aVertexIndex.x, - aVertexIndex.y, 0, 1 ] 108 // aTexCoord[0,1,2] = [ aVertex.x, aVertex.y, 0, 1 ] 111 // i = 1 * aVertex.x + 2 * aVertex.y 116 mul aFrameSpec.xy, aFrameSpec.x, CONST_1_2 117 flr aFrameSpec.x, aFrameSpec 118 cmp CMP_GT, CMP_GT, aFrameSpec.y, aFrameSpec.x 128 mov aTexCoord0, uVertexTexCoord0[a0.x] 129 mov aTexCoord1, uVertexTexCoord1[a0.x] 130 mov aTexCoord2, uVertexTexCoord2[a0.x] [all …]
|
| /NW4C-2.0.3/sources/libraries/gfx/ |
| D | gfx_ParticleEmitter.cpp | 594 if (nw::math::FAbs(cookedScale.x) < Epsilon) in CalcCubeForm() 596 cookedScale.x = Epsilon; in CalcCubeForm() 616 position.x = random->NextFloatSignedOne(); in CalcCubeForm() 620 position.x *= cookedScale.x; in CalcCubeForm() 627 ((cookedScale.x * cookedScale.y) + in CalcCubeForm() 629 (cookedScale.z * cookedScale.x)); in CalcCubeForm() 643 if (d < cookedScale.x * cookedScale.y) in CalcCubeForm() 647 else if (d < (cookedScale.x * cookedScale.y) + (cookedScale.y * cookedScale.z)) in CalcCubeForm() 656 position.x *= cookedScale.x; in CalcCubeForm() 662 f32 xyz = cookedScale.x * cookedScale.y * cookedScale.z; in CalcCubeForm() [all …]
|
| D | gfx_BillboardUpdater.cpp | 117 viewPos.x = - (m[0][0] * wPos.x + m[0][1] * wPos.y + m[0][2] * wPos.z + m[0][3]); in Update() 118 viewPos.y = - (m[1][0] * wPos.x + m[1][1] * wPos.y + m[1][2] * wPos.z + m[1][3]); in Update() 119 viewPos.z = - (m[2][0] * wPos.x + m[2][1] * wPos.y + m[2][2] * wPos.z + m[2][3]); in Update() 195 m[0][0] = rx.x; in CalculateLocalMatrix() 196 m[0][1] = ry.x; in CalculateLocalMatrix() 197 m[0][2] = rz.x; in CalculateLocalMatrix() 228 m[0][0] = rx.x; in CalculateLocalMatrix() 229 m[0][1] = ry.x; in CalculateLocalMatrix() 230 m[0][2] = rz.x; in CalculateLocalMatrix() 266 m[0][0] = rx.x; in CalculateScreenLocalMatrix() [all …]
|
| /NW4C-2.0.3/include/nw/ut/ |
| D | ut_Inlines.h | 473 Clamp(T x, T low, T high) in Clamp() argument 475 return (x > high) ? high : ( (x < low) ? low : x ); in Clamp() 489 template <typename ValueT> ValueT RoundUp(ValueT x, unsigned int base); 493 RoundUp(ValueT* x, unsigned int base) in RoundUp() argument 495 IntPtr value = reinterpret_cast<IntPtr>(x); in RoundUp() 503 RoundUp(const ValueT* x, unsigned int base) in RoundUp() argument 505 IntPtr value = reinterpret_cast<IntPtr>(x); in RoundUp() 513 RoundUp(ValueT x, unsigned int base) in RoundUp() argument 515 return static_cast<ValueT>( (x + (base - 1)) & ~(base - 1) ); in RoundUp() 527 template <typename ValueT> ValueT RoundDown(ValueT x, unsigned int base); [all …]
|
| D | ut_ResDictionary.h | 196 ResDicPatriciaData::ResDicNodeData* x = Get(s, std::strlen(s)); variable 199 if (x) 201 return const_cast<void*>(x->ofsData.to_ptr()); 214 ResDicPatriciaData::ResDicNodeData* x = Get(s, len); in operator() local 217 if (x) in operator() 219 return const_cast<void*>(x->ofsData.to_ptr()); in operator() 230 ResDicPatriciaData::ResDicNodeData* x = Get(n); variable 233 if (x) 235 return const_cast<void*>(x->ofsData.to_ptr()); 248 ResDicPatriciaData::ResDicNodeData* x = Get(s, len); in GetIndex() local [all …]
|
| D | ut_Rect.h | 147 void MoveTo(f32 x, f32 y) in MoveTo() 149 right = x + GetWidth(); in MoveTo() 150 left = x; in MoveTo() 177 void SetOriginAndSize(f32 x, f32 y, f32 width, f32 height ) in SetOriginAndSize() 179 left = x; in SetOriginAndSize() 180 right = x + width; in SetOriginAndSize()
|
| D | ut_ResTypes.h | 280 nw::ut::ResF32 x; member 283 operator nw::math::VEC2() const { nw::math::VEC2 vec; vec.x = x; vec.y = y; return vec; } in VEC2() 284 void operator = (const VEC2& val) { x = val.x; y = val.y; } 289 nw::ut::ResF32 x; member 295 nw::math::VEC3 vec; vec.x = x; vec.y = y; vec.z = z; return vec; in VEC3() 297 void operator = (const VEC3& val) { x = val.x; y = val.y; z = val.z; } 302 nw::ut::ResF32 x; member 309 nw::math::VEC4 vec; vec.x = x; vec.y = y; vec.z = z; vec.w = w; return vec; in VEC4() 311 void operator = (const nw::math::VEC4& val) { x = val.x; y = val.y; z = val.z; w = val.w; } 349 ResF32 x; member [all …]
|
| /NW4C-2.0.3/sources/libraries/lyt/ |
| D | lyt_DrawerUniform.cpp | 39 mtx.f._00 * vec.x + mtx.f._01 * vec.y, in Transform() 40 mtx.f._10 * vec.x + mtx.f._11 * vec.y); in Transform() 92 register const f32 scalex = texSRT.scale.x; in CalcTextureCoords() 104 register nw::math::VEC2 ctrans( ( center.x + texSRT.translate.x ) * adjust_x, in CalcTextureCoords() 110 register nw::math::VEC2 lt( pTexCoordQuad[ src ][ VERTEX_LT ].x, in CalcTextureCoords() 112 register nw::math::VEC2 rb( pTexCoordQuad[ src ][ VERTEX_RB ].x, in CalcTextureCoords() 118 pTexCoord->x = lt.x ; in CalcTextureCoords() 120 pTexCoord->z = rb.x ; in CalcTextureCoords() 127 register nw::math::VEC2 lb( pTexCoordQuad[ src ][ VERTEX_LB ].x, in CalcTextureCoords() 129 register nw::math::VEC2 rt( pTexCoordQuad[ src ][ VERTEX_RT ].x, in CalcTextureCoords() [all …]
|
| /NW4C-2.0.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-2.0.3/demos/Nw4cDemo/include/ |
| D | SmRectCollision.h | 37 void SetRect( f32 x, f32 y, f32 w, f32 h ) in SetRect() argument 39 m_Collision.SetOriginAndSize( x, y, w, h ); in SetRect() 47 bool CheckInner( u16 x, u16 y ) in CheckInner() argument 49 f32 posx = static_cast<f32>(x); in CheckInner() 76 void SetXY( f32 x, f32 y ) in SetXY() argument 78 m_Collision.MoveTo( x, y ); in SetXY() 82 void AddXY( f32 x, f32 y ) in AddXY() argument 84 m_Collision.left += x; in AddXY() 85 m_Collision.top += x; in AddXY()
|
| /NW4C-2.0.3/sources/libraries/dev/ |
| D | dev_DirectPrint.cpp | 265 int x, in Erase() argument 275 this->Erase(context, x, y, width, height); in Erase() 296 int x, in DrawString() argument 308 this->DrawString(context, x, y, str, turnOver, backErase); in DrawString() 356 u8* GetPixelAddress(const PixelWriterContext& context, int x, int y) in GetPixelAddress() argument 358 return context.m_BufferBase + context.m_StrideX * x + context.m_StrideY * y; in GetPixelAddress() 371 int x, in Erase() argument 377 if (x < 0) in Erase() 379 width += x; in Erase() 380 x = 0; in Erase() [all …]
|
| /NW4C-2.0.3/include/nw/font/ |
| D | font_CharWriter.h | 258 m_Scale.x = hScale; in SetScale() 268 m_Scale.x = hvScale; in SetScale() 276 f32 GetScaleH() const { return m_Scale.x; } in GetScaleH() 384 f32 x, in SetCursor() argument 388 m_CursorPos.x = x; in SetCursor() 399 f32 x, in SetCursor() argument 404 m_CursorPos.x = x; in SetCursor() 419 m_CursorPos.x += dx; in MoveCursor() 435 m_CursorPos.x += dx; in MoveCursor() 444 void SetCursorX(f32 x) { m_CursorPos.x = x; } in SetCursorX() argument [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() argument 38 return x * ( y1 - y2 ) / divider + ( x1 * y2 - x2 * y1 ) / divider; in SolveLinerFunction() 367 f32 x = 0.0f; in CalcPanSurround() local 378 x = SolveLinerFunction( angle, -nw::math::F_PI, angleRearLeft, 0.0f, -1.0f ); in CalcPanSurround() 383 x = -1.0f; in CalcPanSurround() 388 x = -1.0f; in CalcPanSurround() 393 x = SolveLinerFunction( angle, angleFrontLeft, angleFrontRight, -1.0f, 1.0f ); in CalcPanSurround() 398 x = 1.0f; in CalcPanSurround() 403 x = 1.0f; in CalcPanSurround() 408 x = SolveLinerFunction( angle, angleRearRight, nw::math::F_PI, 1.0f, 0.0f ); in CalcPanSurround() [all …]
|
| /NW4C-2.0.3/demos/Nw4cDemo/sources/ |
| D | SmSliderBar.cpp | 34 SmSliderBar::SmSliderBar( uint x, uint y, uint length, SmSliderBarType type ) in SmSliderBar() argument 41 m_BaseX( x ), in SmSliderBar() 56 m_Bar->SetVertex( 0, x - SM_BAR_HALF_SIZE, y, nw::ut::Color8::BLACK ); in SmSliderBar() 57 m_Bar->SetVertex( 1, x - SM_BAR_HALF_SIZE, y + length, nw::ut::Color8::BLACK ); in SmSliderBar() 58 m_Bar->SetVertex( 2, x + SM_BAR_HALF_SIZE, y, nw::ut::Color8::BLACK ); in SmSliderBar() 59 m_Bar->SetVertex( 3, x + SM_BAR_HALF_SIZE, y + length, nw::ut::Color8::BLACK ); in SmSliderBar() 67 …m_Slider->SetVertex( 0, x - SM_SLIDER_HALF_SIZE, y - SM_SLIDER_HALF_SIZE, nw::ut::Color8::RED … in SmSliderBar() 68 …m_Slider->SetVertex( 1, x - SM_SLIDER_HALF_SIZE, y + SM_SLIDER_HALF_SIZE, nw::ut::Color8::RED … in SmSliderBar() 69 …m_Slider->SetVertex( 2, x + SM_SLIDER_HALF_SIZE, y - SM_SLIDER_HALF_SIZE, nw::ut::Color8::RED … in SmSliderBar() 70 …m_Slider->SetVertex( 3, x + SM_SLIDER_HALF_SIZE, y + SM_SLIDER_HALF_SIZE, nw::ut::Color8::RED … in SmSliderBar() [all …]
|
| D | SmButton.cpp | 30 SmButton::SmButton( uint x, uint y, uint w, uint h ) in SmButton() argument 46 m_Button->SetVertex( 0, x, y, nw::ut::Color8::BLACK ); in SmButton() 47 m_Button->SetVertex( 1, x, y + h, nw::ut::Color8::BLACK ); in SmButton() 48 m_Button->SetVertex( 2, x + w, y, nw::ut::Color8::BLACK ); in SmButton() 49 m_Button->SetVertex( 3, x + w, y + h, nw::ut::Color8::BLACK ); in SmButton() 58 …m_PushButton->SetVertex( 0, x - PRESSED_BTN_MARGIN, y - PRESSED_BTN_MARGIN, nw::ut::Colo… in SmButton() 59 …m_PushButton->SetVertex( 1, x - PRESSED_BTN_MARGIN, y + h + PRESSED_BTN_MARGIN, nw::ut::Colo… in SmButton() 60 …m_PushButton->SetVertex( 2, x + w + PRESSED_BTN_MARGIN, y - PRESSED_BTN_MARGIN, nw::ut::Colo… in SmButton() 61 …m_PushButton->SetVertex( 3, x + w + PRESSED_BTN_MARGIN, y + h + PRESSED_BTN_MARGIN, nw::ut::Colo… in SmButton() 66 m_Collision.SetRect( x, y, w, h ); in SmButton()
|
| /NW4C-2.0.3/include/nw/math/inline/ |
| D | math_Matrix34.ipp | 47 VEC3 lookReverse(pCamPos->x - pTarget->x, pCamPos->y - pTarget->y, pCamPos->z - pTarget->z); 49 if ((lookReverse.x == 0.0f) && (lookReverse.z == 0.0f)) 55 m[0][3] = -pCamPos->x; 85 VEC3 r(lookReverse.z, 0.0f, -lookReverse.x); 100 right.x = st * u.x + ct * r.x; 104 up.x = ct * u.x - st * r.x; 109 m[0][0] = right.x; 115 m[1][0] = up.x; 121 m[2][0] = lookReverse.x; 152 SinCosFIdx(&sx, &cx, pCamRotate->x); [all …]
|
| /NW4C-2.0.3/sources/libraries/demo/ |
| D | demo_CameraController.cpp | 158 m_Rotate.x = nw::math::AsinFIdx(-lookReverse.y); in CameraEntry() 159 m_Rotate.y = nw::math::Atan2FIdx(-lookReverse.x, lookReverse.z); in CameraEntry() 168 m_Rotate.x = nw::math::AsinFIdx(-lookReverse.y); in CameraEntry() 169 m_Rotate.y = nw::math::Atan2FIdx(-lookReverse.x, lookReverse.z); in CameraEntry() 177 f32 xs = nw::math::SinFIdx(m_Rotate.x); in CameraEntry() 178 f32 xc = nw::math::CosFIdx(m_Rotate.x); in CameraEntry() 182 m_TargetPos.x = cameraPos.x + m_TargetDistance * xc * ys; in CameraEntry() 210 else if (stick.x != 0.0f || stick.y != 0.0f) in Update() 215 m_TargetDistance -= (stick.x + stick.y) * dollySpeed; in Update() 220 nw::math::VEC3 dScreen(stick.x * moveSpeed, 0.0f, -stick.y * moveSpeed); in Update() [all …]
|
| /NW4C-2.0.3/sources/shaders/font/ |
| D | font_RectDrawerShader.vsh | 80 mova a0.x, vVtxData 83 mov rQuad, uUniformAddr[ a0.x ].wzyx 95 dp4 rTempPos.x, rPosition, rTransform 102 dp4 rTempView.x, rTempPos, uUniformMtx[ a0.x + 0 ].wzyx 103 dp4 rTempView.y, rTempPos, uUniformMtx[ a0.x + 1 ].wzyx 104 dp4 rTempView.z, rTempPos, uUniformMtx[ a0.x + 2 ].wzyx 107 mov rTempPos.z, uUniformMtx[ a0.x + 2 ].x // temp z = z 112 mov rTempPos.x, uStereoCamera.w 116 mov rTempPos.x, uStereoCamera.w // temp x = half parallax 120 …mad rTempView.x, rTempPos.x, rTempPos.z, rTempView.x // x = temp x * te… [all …]
|