Home
last modified time | relevance | path

Searched refs:VEC2 (Results 1 – 25 of 45) sorted by relevance

12

/NW4C-1.2.23/include/nw/demo/
Ddemo_GraphicsDrawing.h58 m_ScreenSize = math::VEC2( static_cast<f32>(width), static_cast<f32>(height) ); in SetScreenSize()
123 math::VEC2(static_cast<f32>(x1), static_cast<f32>(y1)), in DrawLine()
124 math::VEC2(static_cast<f32>(x2), static_cast<f32>(y2)), in DrawLine()
136 void DrawLine( const math::VEC2& p1, const math::VEC2& p2, ut::Color8 color );
150 math::VEC2(static_cast<f32>(posh), static_cast<f32>(posv)), in DrawRectangle()
151 math::VEC2(static_cast<f32>(sizeh), static_cast<f32>(sizev)), in DrawRectangle()
163 void DrawRectangle( const math::VEC2& pos, const math::VEC2& size, ut::Color8 color );
177 math::VEC2(static_cast<f32>(posh), static_cast<f32>(posv)), in FillRectangle()
178 math::VEC2(static_cast<f32>(sizeh), static_cast<f32>(sizev)), in FillRectangle()
190 void FillRectangle( const math::VEC2& pos, const math::VEC2& size, ut::Color8 color );
[all …]
Ddemo_Pad.h141 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.2.23/include/nw/gfx/
Dgfx_CameraProjectionUpdater.h27 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()
136 math::VEC2 m_TextureScale;
137 math::VEC2 m_TextureTranslate;
149 static const math::VEC2 PROJECTION_CENTER;
/NW4C-1.2.23/sources/libraries/demo/
Ddemo_GraphicsDrawing.cpp241 GraphicsDrawing::DrawLine( const math::VEC2& p1, const math::VEC2& p2, ut::Color8 color ) in DrawLine()
256 GraphicsDrawing::DrawRectangle( const math::VEC2& pos, const math::VEC2& size, ut::Color8 color ) in DrawRectangle()
264 …count += this->BuildLine(pos, math::VEC2(pos.x + size.x, pos.y), m_LineWidth, &m_PositionSt… in DrawRectangle()
265 …count += this->BuildLine(math::VEC2(pos.x + size.x, pos.y), pos + size, m_LineWidth, &m_PositionSt… in DrawRectangle()
266 …count += this->BuildLine(pos + size, math::VEC2(pos.x, pos.y + size.y), m_LineWidth, &m_PositionSt… in DrawRectangle()
267 …count += this->BuildLine(math::VEC2(pos.x, pos.y + size.y), pos, m_LineWidth, &m_PositionSt… in DrawRectangle()
278 GraphicsDrawing::FillRectangle( const math::VEC2& pos, const math::VEC2& size, ut::Color8 color ) in FillRectangle()
294 GraphicsDrawing::FillTriangle( const math::VEC2& pt1, const math::VEC2& pt2, const math::VEC2& pt3,… in FillTriangle()
309 GraphicsDrawing::FillTriangles( const math::VEC2* pPointArray, s32 pointCount, ut::Color8 color ) in FillTriangles()
325 …raphicsDrawing::BuildTriangle( const math::VEC2& pt1, const math::VEC2& pt2, const math::VEC2& pt3… in BuildTriangle()
[all …]
/NW4C-1.2.23/include/nw/lyt/
Dlyt_Util.h26 struct VEC2;
141 const math::VEC2& pos);
162 const math::VEC2& pos);
190 const math::VEC2& pos);
Dlyt_DrawInfo.h165 const math::VEC2& GetLocationAdjustScale() const in GetLocationAdjustScale()
178 void SetLocationAdjustScale(const math::VEC2& scale) in SetLocationAdjustScale()
343 math::VEC2 m_LocationAdjustScale;
Dlyt_Window.h426 const math::VEC2& basePt,
432 const math::VEC2& basePt,
439 const math::VEC2& basePt,
446 const math::VEC2& basePt,
Dlyt_Common.h154 math::VEC2 (*m_pData)[VERTEX_MAX];
163 const math::VEC2& basePt,
166 const math::VEC2 (*texCoords)[VERTEX_MAX] = NULL,
171 const math::VEC2& basePt,
176 const math::VEC2& pos,
Dlyt_Pane.h259 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;
1486 math::VEC2 m_Scale;
/NW4C-1.2.23/sources/libraries/lyt/
Dlyt_Window.cpp41 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 …]
Dlyt_DrawerUniform.cpp32 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 …]
Dlyt_Common.cpp126 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 …]
Dlyt_Util.cpp46 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()
Dlyt_TextBox.cpp278 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()
Dlyt_Pane.cpp56 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()
925 const math::VEC2
928 VEC2 basePt(0, 0); in GetVtxPos()
/NW4C-1.2.23/sources/libraries/gfx/
Dgfx_CameraProjectionUpdater.cpp31 const math::VEC2 CameraProjectionUpdater::PROJECTION_CENTER = math::VEC2(0.0f,0.0f);
/NW4C-1.2.23/demos/lyt/bounding/sources/
Dmain.cpp154 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.2.23/demos/lyt/animShare/sources/
Dmain.cpp163 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.2.23/demos/lyt/tagGroupBind/sources/
Dmain.cpp204 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.2.23/sources/libraries/anim/res/
Danim_ResAnimGroup.cpp263 const math::VEC2& scale = *reinterpret_cast<const math::VEC2*>(value); in SetValue()
277 const math::VEC2& translate = *reinterpret_cast<const math::VEC2*>(value); in SetValue()
509 const math::VEC2& center = *reinterpret_cast<const math::VEC2*>(value); in SetValue()
670 math::VEC2 spotFactor = light.GetSpotFactor(); in SetValue()
678 math::VEC2 spotFactor = light.GetSpotFactor(); in SetValue()
Danim_ResAnim.cpp44 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.2.23/include/nw/math/
Dmath_Vector2.h24 using nn::math::VEC2;
/NW4C-1.2.23/demos/lyt/simple2/sources/
Dmain.cpp199 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()
/NW4C-1.2.23/include/nw/gfx/res/
Dgfx_ResCamera.h134 nw::math::VEC2 GetCenter() const { return m_Center; } in GetCenter()
146 m_Center = nw::math::VEC2( (r + l) / 2, (b + t) / 2 ); in Set()
154 void Set( f32 aspect, f32 height, const nw::math::VEC2& center ) in Set()
/NW4C-1.2.23/include/nw/ut/
Dut_ResTypes.h258 typedef nw::math::VEC2 ResVec2; //!< バイナリリソース上の Vector2 型です。
281 operator nw::math::VEC2() const { nw::math::VEC2 vec; vec.x = x; vec.y = y; return vec; } in VEC2() function
282 void operator = (const VEC2& val) { x = val.x; y = val.y; }

12