| /NW4C-1.3.3/include/nw/demo/ |
| D | demo_GraphicsDrawing.h | 60 m_ScreenSize = math::VEC2( static_cast<f32>(width), static_cast<f32>(height) ); in SetScreenSize() 155 math::VEC2(static_cast<f32>(x1), static_cast<f32>(y1)), in DrawLine() 156 math::VEC2(static_cast<f32>(x2), static_cast<f32>(y2)), in DrawLine() 168 void DrawLine( const math::VEC2& p1, const math::VEC2& p2, ut::Color8 color ); 182 math::VEC2(static_cast<f32>(posh), static_cast<f32>(posv)), in DrawRectangle() 183 math::VEC2(static_cast<f32>(sizeh), static_cast<f32>(sizev)), in DrawRectangle() 195 void DrawRectangle( const math::VEC2& pos, const math::VEC2& size, ut::Color8 color ); 209 math::VEC2(static_cast<f32>(posh), static_cast<f32>(posv)), in FillRectangle() 210 math::VEC2(static_cast<f32>(sizeh), static_cast<f32>(sizev)), in FillRectangle() 222 void FillRectangle( const math::VEC2& pos, const math::VEC2& size, ut::Color8 color ); [all …]
|
| D | demo_Pad.h | 141 nw::math::VEC2 GetAnalogStick() const { return m_AnalogStick; } in GetAnalogStick() 173 m_AnalogStick(math::VEC2::Zero()), in Pad() 185 nw::math::VEC2 m_AnalogStick;
|
| /NW4C-1.3.3/sources/libraries/demo/ |
| D | demo_DebugUtility.cpp | 171 nw::math::VEC2(POS_BAR_CHART_BACKGROUND_X, POS_BAR_CHART_Y), in DrawLoadMeter() 172 nw::math::VEC2(WIDTH_BAR_CHART_BACKGROUND, HEIGHT_BAR_CHART_BACKGROUND), in DrawLoadMeter() 177 nw::math::VEC2(POS_BAR_CHART_X, POS_BAR_CHART_Y), in DrawLoadMeter() 178 nw::math::VEC2(WIDTH_BAR_CHART_LEFTBOX, HEIGHT_BAR_CHART_LEFTBOX), in DrawLoadMeter() 183 nw::math::VEC2(POS_BAR_CHART_X, POS_BAR_CHART_LINE_Y), in DrawLoadMeter() 184 nw::math::VEC2(POS_BAR_CHART_BAR_LEFT + WIDTH_LOAD_METER_BAR_CHART, POS_BAR_CHART_LINE_Y), in DrawLoadMeter() 189 nw::math::VEC2(POS_BAR_CHART_BAR_LEFT, POS_BAR_CHART_Y), in DrawLoadMeter() 190 nw::math::VEC2(WIDTH_LOAD_METER_BAR_CHART / 4 * loadRate, HEIGHT_BAR_CHART_BAR), in DrawLoadMeter() 195 nw::math::VEC2(POS_BAR_CHART_BAR_LEFT + WIDTH_LOAD_METER_BAR_CHART / 4, POS_BAR_CHART_Y), in DrawLoadMeter() 196 …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 | 141 …m_ShapePositionStreamArray = static_cast<math::VEC2*>( m_ShapeAllocator->Alloc( shapePositionStrea… in InitializeShape() 147 m_ShapePositionStreamArray[ index ] = math::VEC2( 0.0f, 0.0f ); in InitializeShape() 246 GraphicsDrawing::DrawLine( const math::VEC2& p1, const math::VEC2& p2, ut::Color8 color ) in DrawLine() 260 GraphicsDrawing::DrawRectangle( const math::VEC2& pos, const math::VEC2& size, ut::Color8 color ) in DrawRectangle() 266 count += this->BuildLine( pos, math::VEC2( pos.x + size.x, pos.y ), in DrawRectangle() 270 math::VEC2( pos.x + size.x, pos.y ), pos + size, in DrawRectangle() 273 count += this->BuildLine( pos + size, math::VEC2( pos.x, pos.y + size.y ), in DrawRectangle() 276 count += this->BuildLine(math::VEC2( pos.x, pos.y + size.y ), pos, in DrawRectangle() 287 GraphicsDrawing::FillRectangle( const math::VEC2& pos, const math::VEC2& size, ut::Color8 color ) in FillRectangle() 301 GraphicsDrawing::FillTriangle( const math::VEC2& pt1, const math::VEC2& pt2, const math::VEC2& pt3,… in FillTriangle() [all …]
|
| /NW4C-1.3.3/include/nw/gfx/ |
| D | gfx_CameraProjectionUpdater.h | 27 struct VEC2; 106 math::VEC2& TextureScale() { return m_TextureScale; } in TextureScale() 109 const math::VEC2& TextureScale() const { return m_TextureScale; } in TextureScale() 112 math::VEC2& TextureTranslate() { return m_TextureTranslate; } in TextureTranslate() 115 const math::VEC2& TextureTranslate() const { return m_TextureTranslate; } in TextureTranslate() 139 math::VEC2 m_TextureScale; 140 math::VEC2 m_TextureTranslate; 152 static const math::VEC2 PROJECTION_CENTER;
|
| /NW4C-1.3.3/include/nw/lyt/ |
| D | lyt_Util.h | 26 struct VEC2; 141 const math::VEC2& pos); 162 const math::VEC2& pos); 190 const math::VEC2& pos);
|
| D | lyt_DrawInfo.h | 165 const math::VEC2& GetLocationAdjustScale() const in GetLocationAdjustScale() 178 void SetLocationAdjustScale(const math::VEC2& scale) in SetLocationAdjustScale() 348 math::VEC2 m_LocationAdjustScale;
|
| D | lyt_Window.h | 427 const math::VEC2& basePt, 434 const math::VEC2& basePt, 442 const math::VEC2& basePt, 450 const math::VEC2& basePt,
|
| D | lyt_Common.h | 158 math::VEC2 (*m_pData)[VERTEX_MAX]; 167 const math::VEC2& basePt, 170 const math::VEC2 (*texCoords)[VERTEX_MAX] = NULL, 175 const math::VEC2& basePt, 180 const math::VEC2& pos,
|
| D | lyt_Pane.h | 259 void SetTranslate(const math::VEC2& value) in SetTranslate() 299 const math::VEC2& GetScale() const in GetScale() 312 void SetScale(const math::VEC2& value) in SetScale() 1455 const math::VEC2 GetVtxPos() const; 1500 math::VEC2 m_Scale;
|
| /NW4C-1.3.3/sources/libraries/lyt/ |
| D | lyt_Window.cpp | 41 const math::VEC2& Position() const in Position() 43 return *(const math::VEC2 *)&this->x; in Position() 79 math::VEC2* pPt, in GetLTFrameSize() 81 const math::VEC2& basePt, in GetLTFrameSize() 94 math::VEC2 texCds[], in GetLTTexCoord() 103 const math::VEC2 tSz(texSize.width, texSize.height); in GetLTTexCoord() 114 math::VEC2* pPt, in GetRTFrameSize() 116 const math::VEC2& basePt, in GetRTFrameSize() 123 *pPt = VEC2(basePt.x + winSize.width - frameSize.r, basePt.y); in GetRTFrameSize() 131 math::VEC2 texCds[], in GetRTTexCoord() [all …]
|
| D | lyt_DrawerUniform.cpp | 32 const nw::math::VEC2 Transform( in Transform() 34 const nw::math::VEC2& vec) in Transform() 36 return nw::math::VEC2( in Transform() 78 static const nw::math::VEC2 center( 0.5f, 0.5f ); 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() 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() 141 register const nw::math::VEC2 trans( texSRT.translate.x, texSRT.translate.y ); in CalcTextureCoords() [all …]
|
| D | lyt_Common.cpp | 126 Layout::DeleteArray<math::VEC2>(&m_pData[0][0], VERTEX_MAX * coordNum); in Free() 145 math::VEC2 *const pVecAry = Layout::NewArray<math::VEC2>(VERTEX_MAX * coordNum); in Reserve() 159 static const VEC2 texCoords[] = in SetSize() 161 VEC2(0.f, 0.f), in SetSize() 162 VEC2(1.f, 0.f), in SetSize() 163 VEC2(0.f, 1.f), in SetSize() 164 VEC2(1.f, 1.f) in SetSize() 216 … const math::VEC2 (*src)[VERTEX_MAX] = static_cast<const math::VEC2 (*)[VERTEX_MAX]>(pResTexCoord); in Copy() 251 const VEC2& basePt, in DrawQuad() 254 const VEC2 (*texCoords)[VERTEX_MAX], in DrawQuad() [all …]
|
| D | lyt_Util.cpp | 46 const nw::math::VEC2& point in Contains() 101 const math::VEC2& pos in IsContain() 111 return Contains(pPane->GetPaneRect(), math::VEC2(lclPos.x, lclPos.y)); in IsContain() 117 const math::VEC2& pos in FindHitPane() 150 const math::VEC2& pos in FindHitPane() 379 math::VEC2 center(0.5f, 0.5f); in CalcTextureMtx()
|
| D | lyt_TextBox.cpp | 278 VEC2 ltPos = GetVtxPos(); in GetTextDrawRect() 280 const VEC2 curPos = AdjustTextPos(GetSize(), false); in GetTextDrawRect() 281 const VEC2 textPos = AdjustTextPos(textSize, true); in GetTextDrawRect() 594 VEC2 600 VEC2 pos; in AdjustTextPos() 639 VEC2 pos = GetVtxPos(); in GetTextGlobalMtx() 640 const VEC2 txtPos = AdjustTextPos(GetSize(), false); in GetTextGlobalMtx()
|
| D | lyt_Pane.cpp | 56 const nw::math::VEC2* __restrict pScale, in MultMatrixSRTxST() 122 const nw::math::VEC2* __restrict /*pScale*/, 214 MakeMatrixSRT(NW_LYT_WRITEONLY nw::math::MTX34& o, const nw::math::VEC2& s, const f32 rotateZ, cons… in MakeMatrixSRT() 242 MakeMatrixSRT(NW_LYT_WRITEONLY nw::math::MTX34& o, const nw::math::VEC2& s, const nw::math::VEC3& r… in MakeMatrixSRT() 307 m_Scale = VEC2(1, 1); in Pane() 429 VEC2 basePt = GetVtxPos(); in GetPaneRect() 596 math::VEC2 scale; in CalculateMtx() 915 const math::VEC2 918 VEC2 basePt(0, 0); in GetVtxPos()
|
| /NW4C-1.3.3/sources/libraries/gfx/ |
| D | gfx_CameraProjectionUpdater.cpp | 31 const math::VEC2 CameraProjectionUpdater::PROJECTION_CENTER = math::VEC2(0.0f,0.0f);
|
| /NW4C-1.3.3/demos/lyt/bounding/sources/ |
| D | main.cpp | 154 const nw::math::VEC2 158 const nw::math::VEC2 center( in GetCursorPosition() 163 nw::math::VEC2 curPos; in GetCursorPosition() 168 const nw::math::VEC2 stick = pad.GetAnalogStick(); in GetCursorPosition() 182 ApplyCursorPosition(nw::lyt::Layout* pLayout, const nw::math::VEC2& curPos) in ApplyCursorPosition() 298 nw::math::VEC2 curPos(0.f, 0.f); in nnMain() 348 curPos = nw::math::VEC2(tmp.x, tmp.y); in nnMain()
|
| /NW4C-1.3.3/demos/lyt/tagGroupBind/sources/ |
| D | main.cpp | 204 const nw::math::VEC2 208 const nw::math::VEC2 center( in GetCursorPosition() 213 nw::math::VEC2 curPos; in GetCursorPosition() 218 const nw::math::VEC2 stick = pad.GetAnalogStick(); in GetCursorPosition() 232 ApplyCursorPosition(nw::lyt::Layout* pLayout, const nw::math::VEC2& curPos) in ApplyCursorPosition() 287 const nw::math::VEC2& pos in TestHit() 434 nw::math::VEC2 curPos(0.f, 0.f); in nnMain() 469 curPos = nw::math::VEC2(tmp.x, tmp.y); in nnMain()
|
| /NW4C-1.3.3/demos/lyt/animShare/sources/ |
| D | main.cpp | 163 nw::math::VEC2 167 const nw::math::VEC2 center( in GetCursorPosition() 172 nw::math::VEC2 curPos; in GetCursorPosition() 177 const nw::math::VEC2 stick = pad.GetAnalogStick(); in GetCursorPosition() 192 ApplyCursorPosition(nw::lyt::Layout& layout, const nw::math::VEC2& curPos) in ApplyCursorPosition() 357 const nw::math::VEC2& pos, in UpdatePane() 463 nw::math::VEC2 curPos(0.f, 0.f); in nnMain() 499 curPos = nw::math::VEC2(tmp.x, tmp.y); in nnMain()
|
| /NW4C-1.3.3/sources/libraries/anim/res/ |
| D | anim_ResAnimGroup.cpp | 271 const math::VEC2& scale = *reinterpret_cast<const math::VEC2*>(value); in SetValue() 285 const math::VEC2& translate = *reinterpret_cast<const math::VEC2*>(value); in SetValue() 519 const math::VEC2& center = *reinterpret_cast<const math::VEC2*>(value); in SetValue() 680 math::VEC2 spotFactor = light.GetSpotFactor(); in SetValue() 688 math::VEC2 spotFactor = light.GetSpotFactor(); in SetValue()
|
| D | anim_ResAnim.cpp | 44 return sizeof(math::VEC2); in GetPrimitiveSize() 67 math::VEC2* dst = reinterpret_cast<math::VEC2*>(dstBuf); in EvaluateResult() 89 math::VEC2* dst = reinterpret_cast<math::VEC2*>(target); in ApplyCache() 90 const math::VEC2* src = reinterpret_cast<const math::VEC2*>(cacheBuf); in ApplyCache()
|
| /NW4C-1.3.3/include/nw/gfx/res/ |
| D | gfx_ResCamera.h | 134 nw::math::VEC2 GetCenter() const { return m_Center; } in GetCenter() 156 m_Center = nw::math::VEC2( (r + l) / 2, (t + b) / 2 ); in SetWithoutFlip() 171 m_Center = nw::math::VEC2( (r + l) / 2, (b + t) / 2 ); in SetWithYFlip() 179 void Set( f32 aspect, f32 height, const nw::math::VEC2& center ) in Set()
|
| /NW4C-1.3.3/include/nw/math/ |
| D | math_Vector2.h | 24 using nn::math::VEC2;
|
| /NW4C-1.3.3/demos/lyt/simple2/sources/ |
| D | main.cpp | 199 pPic->SetTranslate(nw::math::VEC2(-128, -64)); in nnMain() 217 pPic->SetTranslate(nw::math::VEC2(0, -64)); in nnMain() 237 pPic->SetTranslate(nw::math::VEC2(128, -64)); in nnMain()
|