| /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() 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() 170 void DrawLine( const math::VEC2& p1, const math::VEC2& p2, ut::Color8 color ); 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() 197 void DrawRectangle( const math::VEC2& pos, const math::VEC2& size, ut::Color8 color ); 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() 224 void FillRectangle( const math::VEC2& pos, const math::VEC2& size, ut::Color8 color ); [all …]
|
| D | demo_Pad.h | 143 nw::math::VEC2 GetAnalogStick() const { return m_AnalogStick; } in GetAnalogStick() 175 m_AnalogStick(math::VEC2::Zero()), in Pad() 187 nw::math::VEC2 m_AnalogStick;
|
| /NW4C-2.0.3/sources/libraries/demo/ |
| D | demo_DebugUtility.cpp | 173 nw::math::VEC2(POS_BAR_CHART_BACKGROUND_X, POS_BAR_CHART_Y), in DrawLoadMeter() 174 nw::math::VEC2(WIDTH_BAR_CHART_BACKGROUND, HEIGHT_BAR_CHART_BACKGROUND), in DrawLoadMeter() 179 nw::math::VEC2(POS_BAR_CHART_X, POS_BAR_CHART_Y), in DrawLoadMeter() 180 nw::math::VEC2(WIDTH_BAR_CHART_LEFTBOX, HEIGHT_BAR_CHART_LEFTBOX), in DrawLoadMeter() 185 nw::math::VEC2(POS_BAR_CHART_X, POS_BAR_CHART_LINE_Y), in DrawLoadMeter() 186 nw::math::VEC2(POS_BAR_CHART_BAR_LEFT + WIDTH_LOAD_METER_BAR_CHART, POS_BAR_CHART_LINE_Y), in DrawLoadMeter() 191 nw::math::VEC2(POS_BAR_CHART_BAR_LEFT, POS_BAR_CHART_Y), in DrawLoadMeter() 192 nw::math::VEC2(WIDTH_LOAD_METER_BAR_CHART / 4 * loadRate, HEIGHT_BAR_CHART_BAR), in DrawLoadMeter() 197 nw::math::VEC2(POS_BAR_CHART_BAR_LEFT + WIDTH_LOAD_METER_BAR_CHART / 4, POS_BAR_CHART_Y), in DrawLoadMeter() 198 …nw::math::VEC2(POS_BAR_CHART_BAR_LEFT + WIDTH_LOAD_METER_BAR_CHART / 4, POS_BAR_CHART_Y + HEIGHT_B… in DrawLoadMeter() [all …]
|
| D | demo_GraphicsDrawing.cpp | 143 …m_ShapePositionStreamArray = static_cast<math::VEC2*>( m_ShapeAllocator->Alloc( shapePositionStrea… in InitializeShape() 149 m_ShapePositionStreamArray[ index ] = math::VEC2( 0.0f, 0.0f ); in InitializeShape() 248 GraphicsDrawing::DrawLine( const math::VEC2& p1, const math::VEC2& p2, ut::Color8 color ) in DrawLine() 262 GraphicsDrawing::DrawRectangle( const math::VEC2& pos, const math::VEC2& size, ut::Color8 color ) in DrawRectangle() 268 count += this->BuildLine( pos, math::VEC2( pos.x + size.x, pos.y ), in DrawRectangle() 272 math::VEC2( pos.x + size.x, pos.y ), pos + size, in DrawRectangle() 275 count += this->BuildLine( pos + size, math::VEC2( pos.x, pos.y + size.y ), in DrawRectangle() 278 count += this->BuildLine(math::VEC2( pos.x, pos.y + size.y ), pos, in DrawRectangle() 289 GraphicsDrawing::FillRectangle( const math::VEC2& pos, const math::VEC2& size, ut::Color8 color ) in FillRectangle() 303 GraphicsDrawing::FillTriangle( const math::VEC2& pt1, const math::VEC2& pt2, const math::VEC2& pt3,… in FillTriangle() [all …]
|
| /NW4C-2.0.3/include/nw/gfx/ |
| D | gfx_CameraProjectionUpdater.h | 29 struct VEC2; 108 math::VEC2& TextureScale() { return m_TextureScale; } in TextureScale() 111 const math::VEC2& TextureScale() const { return m_TextureScale; } in TextureScale() 114 math::VEC2& TextureTranslate() { return m_TextureTranslate; } in TextureTranslate() 117 const math::VEC2& TextureTranslate() const { return m_TextureTranslate; } in TextureTranslate() 141 math::VEC2 m_TextureScale; 142 math::VEC2 m_TextureTranslate; 154 static const math::VEC2 PROJECTION_CENTER;
|
| /NW4C-2.0.3/include/nw/lyt/ |
| D | lyt_Util.h | 28 struct VEC2; 143 const math::VEC2& pos); 164 const math::VEC2& pos); 192 const math::VEC2& pos);
|
| D | lyt_DrawInfo.h | 167 const math::VEC2& GetLocationAdjustScale() const in GetLocationAdjustScale() 180 void SetLocationAdjustScale(const math::VEC2& scale) in SetLocationAdjustScale() 350 math::VEC2 m_LocationAdjustScale;
|
| D | lyt_Window.h | 429 const math::VEC2& basePt, 436 const math::VEC2& basePt, 444 const math::VEC2& basePt, 452 const math::VEC2& basePt,
|
| D | lyt_Common.h | 160 math::VEC2 (*m_pData)[VERTEX_MAX]; 169 const math::VEC2& basePt, 172 const math::VEC2 (*texCoords)[VERTEX_MAX] = NULL, 177 const math::VEC2& basePt, 182 const math::VEC2& pos,
|
| D | lyt_Pane.h | 261 void SetTranslate(const math::VEC2& value) in SetTranslate() 301 const math::VEC2& GetScale() const in GetScale() 314 void SetScale(const math::VEC2& value) in SetScale() 1457 const math::VEC2 GetVtxPos() const; 1502 math::VEC2 m_Scale;
|
| /NW4C-2.0.3/sources/libraries/lyt/ |
| D | lyt_Window.cpp | 43 const math::VEC2& Position() const in Position() 45 return *(const math::VEC2 *)&this->x; in Position() 81 math::VEC2* pPt, in GetLTFrameSize() 83 const math::VEC2& basePt, in GetLTFrameSize() 96 math::VEC2 texCds[], in GetLTTexCoord() 105 const math::VEC2 tSz(texSize.width, texSize.height); in GetLTTexCoord() 116 math::VEC2* pPt, in GetRTFrameSize() 118 const math::VEC2& basePt, in GetRTFrameSize() 125 *pPt = VEC2(basePt.x + winSize.width - frameSize.r, basePt.y); in GetRTFrameSize() 133 math::VEC2 texCds[], in GetRTTexCoord() [all …]
|
| D | lyt_DrawerUniform.cpp | 34 const nw::math::VEC2 Transform( in Transform() 36 const nw::math::VEC2& vec) in Transform() 38 return nw::math::VEC2( in Transform() 80 static const nw::math::VEC2 center( 0.5f, 0.5f ); 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() 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() 143 register const nw::math::VEC2 trans( texSRT.translate.x, texSRT.translate.y ); in CalcTextureCoords() [all …]
|
| D | lyt_Common.cpp | 128 Layout::DeleteArray<math::VEC2>(&m_pData[0][0], VERTEX_MAX * coordNum); in Free() 147 math::VEC2 *const pVecAry = Layout::NewArray<math::VEC2>(VERTEX_MAX * coordNum); in Reserve() 161 static const VEC2 texCoords[] = in SetSize() 163 VEC2(0.f, 0.f), in SetSize() 164 VEC2(1.f, 0.f), in SetSize() 165 VEC2(0.f, 1.f), in SetSize() 166 VEC2(1.f, 1.f) in SetSize() 218 … const math::VEC2 (*src)[VERTEX_MAX] = static_cast<const math::VEC2 (*)[VERTEX_MAX]>(pResTexCoord); in Copy() 253 const VEC2& basePt, in DrawQuad() 256 const VEC2 (*texCoords)[VERTEX_MAX], in DrawQuad() [all …]
|
| D | lyt_Util.cpp | 49 const nw::math::VEC2& point in Contains() 104 const math::VEC2& pos in IsContain() 114 return Contains(pPane->GetPaneRect(), math::VEC2(lclPos.x, lclPos.y)); in IsContain() 120 const math::VEC2& pos in FindHitPane() 153 const math::VEC2& pos in FindHitPane() 461 math::VEC2 center(0.5f, 0.5f); in CalcTextureMtx()
|
| D | lyt_TextBox.cpp | 280 VEC2 ltPos = GetVtxPos(); in GetTextDrawRect() 282 const VEC2 curPos = AdjustTextPos(GetSize(), false); in GetTextDrawRect() 283 const VEC2 textPos = AdjustTextPos(textSize, true); in GetTextDrawRect() 596 VEC2 602 VEC2 pos; in AdjustTextPos() 641 VEC2 pos = GetVtxPos(); in GetTextGlobalMtx() 642 const VEC2 txtPos = AdjustTextPos(GetSize(), false); in GetTextGlobalMtx()
|
| D | lyt_Pane.cpp | 58 const nw::math::VEC2* __restrict pScale, in MultMatrixSRTxST() 124 const nw::math::VEC2* __restrict /*pScale*/, 216 MakeMatrixSRT(NW_LYT_WRITEONLY nw::math::MTX34& o, const nw::math::VEC2& s, const f32 rotateZ, cons… in MakeMatrixSRT() 244 MakeMatrixSRT(NW_LYT_WRITEONLY nw::math::MTX34& o, const nw::math::VEC2& s, const nw::math::VEC3& r… in MakeMatrixSRT() 309 m_Scale = VEC2(1, 1); in Pane() 431 VEC2 basePt = GetVtxPos(); in GetPaneRect() 598 math::VEC2 scale; in CalculateMtx() 917 const math::VEC2 920 VEC2 basePt(0, 0); in GetVtxPos()
|
| /NW4C-2.0.3/sources/libraries/gfx/ |
| D | gfx_CameraProjectionUpdater.cpp | 33 const math::VEC2 CameraProjectionUpdater::PROJECTION_CENTER = math::VEC2(0.0f,0.0f);
|
| /NW4C-2.0.3/demos/lyt/bounding/sources/ |
| D | main.cpp | 156 const nw::math::VEC2 160 const nw::math::VEC2 center( in GetCursorPosition() 165 nw::math::VEC2 curPos; in GetCursorPosition() 170 const nw::math::VEC2 stick = pad.GetAnalogStick(); in GetCursorPosition() 184 ApplyCursorPosition(nw::lyt::Layout* pLayout, const nw::math::VEC2& curPos) in ApplyCursorPosition() 300 nw::math::VEC2 curPos(0.f, 0.f); in nnMain() 350 curPos = nw::math::VEC2(tmp.x, tmp.y); in nnMain()
|
| /NW4C-2.0.3/demos/lyt/animShare/sources/ |
| D | main.cpp | 165 nw::math::VEC2 169 const nw::math::VEC2 center( in GetCursorPosition() 174 nw::math::VEC2 curPos; in GetCursorPosition() 179 const nw::math::VEC2 stick = pad.GetAnalogStick(); in GetCursorPosition() 194 ApplyCursorPosition(nw::lyt::Layout& layout, const nw::math::VEC2& curPos) in ApplyCursorPosition() 359 const nw::math::VEC2& pos, in UpdatePane() 465 nw::math::VEC2 curPos(0.f, 0.f); in nnMain() 501 curPos = nw::math::VEC2(tmp.x, tmp.y); in nnMain()
|
| /NW4C-2.0.3/demos/lyt/tagGroupBind/sources/ |
| D | main.cpp | 206 const nw::math::VEC2 210 const nw::math::VEC2 center( in GetCursorPosition() 215 nw::math::VEC2 curPos; in GetCursorPosition() 220 const nw::math::VEC2 stick = pad.GetAnalogStick(); in GetCursorPosition() 234 ApplyCursorPosition(nw::lyt::Layout* pLayout, const nw::math::VEC2& curPos) in ApplyCursorPosition() 289 const nw::math::VEC2& pos in TestHit() 436 nw::math::VEC2 curPos(0.f, 0.f); in nnMain() 471 curPos = nw::math::VEC2(tmp.x, tmp.y); in nnMain()
|
| /NW4C-2.0.3/sources/libraries/anim/res/ |
| D | anim_ResAnimGroup.cpp | 273 const math::VEC2& scale = *reinterpret_cast<const math::VEC2*>(value); in SetValue() 287 const math::VEC2& translate = *reinterpret_cast<const math::VEC2*>(value); in SetValue() 521 const math::VEC2& center = *reinterpret_cast<const math::VEC2*>(value); in SetValue() 682 math::VEC2 spotFactor = light.GetSpotFactor(); in SetValue() 690 math::VEC2 spotFactor = light.GetSpotFactor(); in SetValue()
|
| D | anim_ResAnim.cpp | 46 return sizeof(math::VEC2); in GetPrimitiveSize() 69 math::VEC2* dst = reinterpret_cast<math::VEC2*>(dstBuf); in EvaluateResult() 91 math::VEC2* dst = reinterpret_cast<math::VEC2*>(target); in ApplyCache() 92 const math::VEC2* src = reinterpret_cast<const math::VEC2*>(cacheBuf); in ApplyCache()
|
| /NW4C-2.0.3/include/nw/gfx/res/ |
| D | gfx_ResCamera.h | 136 nw::math::VEC2 GetCenter() const { return m_Center; } in GetCenter() 158 m_Center = nw::math::VEC2( (r + l) / 2, (t + b) / 2 ); in SetWithoutFlip() 173 m_Center = nw::math::VEC2( (r + l) / 2, (b + t) / 2 ); in SetWithYFlip() 181 void Set( f32 aspect, f32 height, const nw::math::VEC2& center ) in Set()
|
| /NW4C-2.0.3/include/nw/math/ |
| D | math_Vector2.h | 26 using nn::math::VEC2;
|
| /NW4C-2.0.3/demos/lyt/simple2/sources/ |
| D | main.cpp | 201 pPic->SetTranslate(nw::math::VEC2(-128, -64)); in nnMain() 219 pPic->SetTranslate(nw::math::VEC2(0, -64)); in nnMain() 239 pPic->SetTranslate(nw::math::VEC2(128, -64)); in nnMain()
|