| /NW4C-2.0.3/sources/shaders/font/ |
| D | font_RectDrawerShader.vsh | 93 mov rTransform.xw, uUniformData[ a0.y ].wwyy 96 mov rTransform.yw, uUniformData[ a0.y ].zzxx 98 dp4 rTempPos.y, rPosition, rTransform 103 dp4 rTempView.y, rTempPos, uUniformMtx[ a0.x + 1 ].wzyx 109 add rTempPos.z, rTempPos.z, uStereoCamera.y // temp z += add dist 117 sub rTempPos.y, rTempPos.z, uStereoCamera.z // temp y = temp z - Dlevel 119 mul rTempPos.z, rTempPos.y, rTempPos.z // temp z *= temp y 125 dp4 oPosition.y, rTempView, uProjection[ 1 ].wzyx 130 cmp 3, 3, rQuad.w, cVal.y 136 mov oColor.xyz, cVal.y [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() 93 register const f32 scaley = texSRT.scale.y; in CalcTextureCoords() 105 ( center.y + texSRT.translate.y ) * adjust_y ); in CalcTextureCoords() 111 pTexCoordQuad[ src ][ VERTEX_LT ].y); in CalcTextureCoords() 113 pTexCoordQuad[ src ][ VERTEX_RB ].y ); in CalcTextureCoords() 119 pTexCoord->y = 1.f - lt.y; in CalcTextureCoords() 121 pTexCoord->w = 1.f - rb.y; in CalcTextureCoords() 128 pTexCoordQuad[ src ][ VERTEX_LB ].y ); in CalcTextureCoords() 130 pTexCoordQuad[ src ][ VERTEX_RT ].y ); in CalcTextureCoords() [all …]
|
| /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 50 f32 posy = static_cast<f32>(y); 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 86 m_Collision.right += y; in AddXY() 87 m_Collision.bottom += y; in AddXY()
|
| /NW4C-2.0.3/sources/libraries/gfx/ |
| D | gfx_ParticleEmitter.cpp | 599 if (nw::math::FAbs(cookedScale.y) < Epsilon) in CalcCubeForm() 601 cookedScale.y = Epsilon; in CalcCubeForm() 617 position.y = random->NextFloatSignedOne(); in CalcCubeForm() 621 position.y *= cookedScale.y; in CalcCubeForm() 627 ((cookedScale.x * cookedScale.y) + in CalcCubeForm() 628 (cookedScale.y * cookedScale.z) + 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() 657 position.y *= cookedScale.y; 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() 200 m[1][0] = rx.y; in CalculateLocalMatrix() 201 m[1][1] = ry.y; in CalculateLocalMatrix() 202 m[1][2] = rz.y; in CalculateLocalMatrix() 233 m[1][0] = rx.y; in CalculateLocalMatrix() 234 m[1][1] = ry.y; in CalculateLocalMatrix() 235 m[1][2] = rz.y; in CalculateLocalMatrix() 271 m[1][0] = rx.y; in CalculateScreenLocalMatrix() [all …]
|
| /NW4C-2.0.3/sources/shaders/gfx/ParticleShader/ |
| D | gfx_ParticleVShader.vsh | 147 mul TEMP0.y, TEMP0.y, in_rotate.x 152 // sincos y 153 mad TEMP0.xy, TEMP3.y, TEMP1.xy, TEMP1.zw 154 mad TEMP0.xy, TEMP3.y, TEMP0.xy, TEMP2.xy 155 mad TEMP0.xy, TEMP3.y, TEMP0.xy, TEMP2.zw 156 mad TEMP0.xy, TEMP3.y, TEMP0.xy, TEMP5.xy 157 mad TEMP0.xy, TEMP3.y, TEMP0.xy, TEMP5.zw 158 mul TEMP0.y, TEMP0.y, in_rotate.y 159 mad TEMP0.x, TEMP3.y, TEMP0.x, CONST_1 161 mov TEMP4.zw, TEMP0.xxxy // TEMP4 = cos x, sin x, cos y, sin y [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 42 m_BaseY( y ), 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()
|
| D | SmLytSliderBar.cpp | 26 SmLytSliderBar::SmLytSliderBar( f32 x, f32 y, SmLayout* smLayout ) in SmLytSliderBar() argument 34 m_BaseY( y ) in SmLytSliderBar() 45 m_Layout->SetPosition( x, y ); in SmLytSliderBar() 49 SM_LOWER_SCREEN_HALF_SIZE_H + y - m_Collision.GetHeight()/2.f ); in SmLytSliderBar() 52 m_RangeMinY = SM_LOWER_SCREEN_HALF_SIZE_H + y - rectBase.GetHeight()/2.f; in SmLytSliderBar() 53 m_RangeMaxY = SM_LOWER_SCREEN_HALF_SIZE_H + y + rectBase.GetHeight()/2.f; in SmLytSliderBar()
|
| /NW4C-2.0.3/include/nw/font/ |
| D | font_CharWriter.h | 259 m_Scale.y = vScale; in SetScale() 269 m_Scale.y = hvScale; in SetScale() 282 f32 GetScaleV() const { return m_Scale.y; } in GetScaleV() 385 f32 y in SetCursor() argument 389 m_CursorPos.y = y; in SetCursor() 400 f32 y, in SetCursor() argument 405 m_CursorPos.y = y; in SetCursor() 420 m_CursorPos.y += dy; in MoveCursor() 436 m_CursorPos.y += dy; in MoveCursor() 450 void SetCursorY(f32 y) { m_CursorPos.y = y; } in SetCursorY() argument [all …]
|
| /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); 63 if (lookReverse.y <= 0.0f) 70 m[2][3] = pCamPos->y; 79 m[2][3] = -pCamPos->y; 99 // r.y == 0であることに注意 101 right.y = st * u.y; 105 up.y = ct * u.y; 110 m[0][1] = right.y; 116 m[1][1] = up.y; 122 m[2][1] = lookReverse.y; [all …]
|
| /NW4C-2.0.3/sources/shaders/gfx/DefaultShader/ |
| D | CalcVertexLighting.vsh | 31 mov TEMP4.y, VERTEX_LIGHT_UNIFORM(VERTEX_LIGHT_DISTANCE_ATTENUATION + a0.x)._W 35 mov TEMP6.y, CONST_1 39 mov TEMP6.y, CONST_1 43 mul TEMP5.y, TEMP5.z, TEMP5.z 44 …dp3 TEMP6.y, TEMP5, VERTEX_LIGHT_UNIFORM(VERTEX_LIGHT_DISTANCE_ATTENUATION + a0… 45 rcp TEMP6.y, TEMP6.y 55 … slt TEMP5.y, TEMP5.x, VERTEX_LIGHT_UNIFORM(VERTEX_LIGHT_SPOT_FACTOR + a0.x)._Y 60 log TEMP5.y, TEMP5.x 61 … mul TEMP5.y, TEMP5.y, VERTEX_LIGHT_UNIFORM(VERTEX_LIGHT_SPOT_FACTOR + a0.x)._X 62 exp TEMP5.x, TEMP5.y [all …]
|
| D | TransformMatrix.vsh | 28 dp4 TEMP3.y, TEMP_POSI, nw_matrix_pallet[1 + a0.x]._XYZW 41 dp4 TEMP3.y, TEMP_POSI, nw_matrix_pallet[1 + a0.x]._XYZW 45 dp3 TEMP4.y, TEMP_NORM, nw_matrix_pallet[1 + a0.x]._XYZW 59 dp4 TEMP3.y, TEMP_POSI, nw_matrix_pallet[1 + a0.x]._XYZW 63 dp3 TEMP4.y, TEMP_NORM, nw_matrix_pallet[1 + a0.x]._XYZW 67 dp3 TEMP5.y, TEMP_TANG, nw_matrix_pallet[1 + a0.x]._XYZW 102 mov TEMP1.xy, TEMP2.y 103 mul TEMP1.w, nw_boneWeight.y, nw_attribute_scale1._W 119 dp4 WRLD_POSI.y, MODL_POSI, nw_local_to_world_matrix[1]._XYZW 123 dp4 TEMP_VIEW.y, WRLD_POSI, nw_world_to_view_matrix[1]._XYZW [all …]
|
| /NW4C-2.0.3/sources/libraries/dev/ |
| D | dev_DirectPrint.cpp | 266 int y, in Erase() argument 275 this->Erase(context, x, y, width, height); in Erase() 297 int y, 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() 372 int y, in Erase() argument 384 if (y < 0) in Erase() 386 height += y; in Erase() 387 y = 0; in Erase() [all …]
|
| /NW4C-2.0.3/SampleData/Graphics/Shader/UserShader/ |
| D | UserTransformMatrix.vsh | 26 dp4 TEMP3.y, TEMP_POSI, nw_matrix_pallet[1 + a0.x]._XYZW 39 dp4 TEMP3.y, TEMP_POSI, nw_matrix_pallet[1 + a0.x]._XYZW 43 dp3 TEMP4.y, TEMP_NORM, nw_matrix_pallet[1 + a0.x]._XYZW 57 dp4 TEMP3.y, TEMP_POSI, nw_matrix_pallet[1 + a0.x]._XYZW 61 dp3 TEMP4.y, TEMP_NORM, nw_matrix_pallet[1 + a0.x]._XYZW 65 dp3 TEMP5.y, TEMP_TANG, nw_matrix_pallet[1 + a0.x]._XYZW 100 mov TEMP1.x, TEMP2.y 101 mul TEMP1.w, nw_boneWeight.y, nw_attribute_scale1._W 124 dp4 WRLD_POSI.y, MODL_POSI, nw_local_to_world_matrix[1]._XYZW 128 dp4 TEMP_VIEW.y, WRLD_POSI, nw_world_to_view_matrix[1]._XYZW [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() 179 f32 ys = nw::math::SinFIdx(m_Rotate.y); in CameraEntry() 180 f32 yc = nw::math::CosFIdx(m_Rotate.y); in CameraEntry() 183 m_TargetPos.y = cameraPos.y + m_TargetDistance * xs; 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/lyt/ |
| D | lyt_PaneShader.vsh | 71 #define CONST_1_2 CONST.y 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 118 cmp CMP_GT, CMP_GT, aFrameSpec.y, aFrameSpec.x 138 dp4 tmp0.y, aPosition, uModelView[1] 150 cmp CMP_GT, CMP_GT, aFrameSpec.y, aFrameSpec.x 162 cmp CMP_GT, CMP_GT, aFrameSpec.y, aFrameSpec.x 180 cmp CMP_GT, CMP_GT, aFrameSpec.y, aFrameSpec.x 189 // aTexCoord[0,1,2].y += 1 - texScale.y [all …]
|
| /NW4C-2.0.3/documents/CreativeStudio/html/assets/ |
| D | yahoo-dom-event.js | 8 …y,Y,G;if(z){if(z[l]||z.item){return z;}if(typeof z==="string"){AB=z;z=K.getElementById(z);G=(z)?z.… argument 9 y.removeAttribute(G);}}}else{}return Y;},replaceClass:function(x,Y,G){return E.Dom.batch(x,E.Dom._r… argument
|
| /NW4C-2.0.3/sources/shaders/gfx/ShadowShader/ |
| D | TransformMatrix.vsh | 30 dp4 TEMP3.y, TEMP_POSI, nw_matrix_pallet[1 + a0.x]._XYZW 43 dp4 TEMP3.y, TEMP_POSI, nw_matrix_pallet[1 + a0.x]._XYZW 47 dp3 TEMP4.y, TEMP_NORM, nw_matrix_pallet[1 + a0.x]._XYZW 79 mov TEMP1.xy, TEMP2.y 80 mul TEMP1.w, nw_boneWeight.y, nw_attribute_scale1._W 96 dp4 WRLD_POSI.y, MODL_POSI, nw_local_to_world_matrix[1]._XYZW 100 dp4 TEMP_VIEW.y, WRLD_POSI, nw_world_to_view_matrix[1]._XYZW 104 dp3 TEMP_NORM.y, WRLD_NORM, nw_normal_matrix[1]._XYZW 113 mov TEMP1.xy, TEMP2.y 114 mul TEMP1.w, nw_boneWeight.y, nw_attribute_scale1._W [all …]
|
| /NW4C-2.0.3/include/nw/ut/ |
| D | ut_Rect.h | 147 void MoveTo(f32 x, f32 y) in MoveTo() 151 bottom = y + GetHeight(); in MoveTo() 152 top = y; in MoveTo() 177 void SetOriginAndSize(f32 x, f32 y, f32 width, f32 height ) in SetOriginAndSize() 181 top = y; in SetOriginAndSize() 182 bottom = y + height; in SetOriginAndSize()
|
| D | ut_ResTypes.h | 281 nw::ut::ResF32 y; 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; } 290 nw::ut::ResF32 y; 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; } 303 nw::ut::ResF32 y; 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; } 350 ResF32 y; member [all …]
|
| /NW4C-2.0.3/include/nw/gfx/ |
| D | gfx_WorldMatrixUpdater.h | 157 dstMatrix->f._01 = srcMatrix->f._01 * scale.y; in MultScale() 158 dstMatrix->f._11 = srcMatrix->f._11 * scale.y; in MultScale() 159 dstMatrix->f._21 = srcMatrix->f._21 * scale.y; in MultScale() 173 dstMatrix->f._01 *= scale.y; in ScaleMatrix() 174 dstMatrix->f._11 *= scale.y; in ScaleMatrix() 175 dstMatrix->f._21 *= scale.y; in ScaleMatrix() 192 dstMatrix->f._13 += translate.y; in AddTranslate() 200 float mag = (scale.x * scale.x + scale.y * scale.y + scale.z * scale.z); in CompensateScale() 205 scale.y = (scale.y < 0.0f) ? -MinimumScale : MinimumScale; in CompensateScale()
|
| D | gfx_ShaderProgram.h | 253 …nt(ShaderUniform location, s32 x, s32 y) const { glUniform2i(m_UniformLocation->GetUniformLocation… in SetUniformInt() argument 262 …ShaderUniform location, s32 x, s32 y, s32 z) const { glUniform3i(m_UniformLocation->GetUniformLoca… in SetUniformInt() argument 272 …erUniform location, s32 x, s32 y, s32 z, s32 w) const { glUniform4i(m_UniformLocation->GetUniformL… in SetUniformInt() argument 551 void SetVertexUniformInt(int index, s32 x, s32 y) const in SetVertexUniformInt() argument 554 m_VertexIntUniforms[2 + index] = (x & 0xFF) | ((y & 0xFF) << 8); in SetVertexUniformInt() 563 void SetGeometryUniformInt(int index, s32 x, s32 y) const in SetGeometryUniformInt() argument 566 m_GeometryIntUniforms[2 + index] = (x & 0xFF) | ((y & 0xFF) << 8); in SetGeometryUniformInt() 576 void SetVertexUniformInt(int index, s32 x, s32 y, s32 z) const in SetVertexUniformInt() argument 579 m_VertexIntUniforms[2 + index] = (x & 0xFF) | ((y & 0xFF) << 8) | ((z & 0xFF) << 16); in SetVertexUniformInt() 589 void SetGeometryUniformInt(int index, s32 x, s32 y, s32 z) const in SetGeometryUniformInt() argument [all …]
|
| D | gfx_Viewport.h | 57 float y, in Viewport() argument 62 : m_Rect( x, y, x + width, y + height ), in Viewport() 136 void SetBound(float x, float y, float width, float height) in SetBound() argument 139 y, in SetBound()
|
| /NW4C-2.0.3/include/nw/dev/ |
| D | dev_DirectPrint.h | 274 void Erase(int x, int y, int width, int height); 286 void Printf(int x, int y, const char* format, ...); 298 void Printf(int x, int y, bool turnOver, const char* format, ...); 310 int y, 327 int y, 343 int y,
|