Home
last modified time | relevance | path

Searched refs:texSRT (Results 1 – 5 of 5) sorted by relevance

/NW4C-2.0.3/include/nw/lyt/
Dlyt_Material.h49 u32 texSRT: 2; member
168 return u8(m_MemCap.texSRT); in GetTexSRTCap()
311 return u8(m_MemNum.texSRT); in GetTexSRTNum()
408 NW_ASSERT(idx < m_MemNum.texSRT); in GetTexSRT()
429 NW_ASSERT(idx < m_MemNum.texSRT); in SetTexSRT()
498 NW_ASSERT(idx < m_MemNum.texSRT); in GetTexSRTElement()
527 NW_ASSERT(idx < m_MemNum.texSRT); in SetTexSRTElement()
Dlyt_Util.h280 void CalcTextureMtx(math::MTX23* pTexMtx, const TexSRT& texSRT, const TexMap& texMap);
/NW4C-2.0.3/sources/libraries/lyt/
Dlyt_Util.cpp455 CalcTextureMtx(math::MTX23* pTexMtx, const TexSRT& texSRT, const TexMap& texMap) in CalcTextureMtx() argument
464 math::SinCosDeg(&sinR, &cosR, texSRT.rotate); in CalcTextureMtx()
468 a0 = cosR * texSRT.scale.x; in CalcTextureMtx()
471 texSRT.scale.x * (-sinR); in CalcTextureMtx()
473 -sinR * texSRT.scale.y; in CalcTextureMtx()
478 texMtx.m[0][2] = texSRT.translate.x + center.x + a0 * (-center.x) + a1 * (-center.y); in CalcTextureMtx()
482 texSRT.scale.y * sinR; in CalcTextureMtx()
484 sinR * texSRT.scale.x; in CalcTextureMtx()
486 a1 = cosR * texSRT.scale.y; in CalcTextureMtx()
489 texMtx.m[1][2] = texSRT.translate.y + center.y + a0 * (-center.x) + a1 * (-center.y); in CalcTextureMtx()
Dlyt_DrawerUniform.cpp90 const TexSRT& texSRT = pMaterial->GetTexSRT( i ); in CalcTextureCoords() local
91 register const f32 rotate = texSRT.rotate; in CalcTextureCoords()
92 register const f32 scalex = texSRT.scale.x; in CalcTextureCoords()
93 register const f32 scaley = texSRT.scale.y; in CalcTextureCoords()
104 register nw::math::VEC2 ctrans( ( center.x + texSRT.translate.x ) * adjust_x, in CalcTextureCoords()
105 ( center.y + texSRT.translate.y ) * adjust_y ); in CalcTextureCoords()
143 register const nw::math::VEC2 trans( texSRT.translate.x, texSRT.translate.y ); in CalcTextureCoords()
Dlyt_Material.cpp63 return CalcOffsetTexSRTAry(bitNums) + sizeof(TexSRT) * bitNums.texSRT; in CalcOffsetTexCoordGenAry()
313 ptr->texSRT = 0; in InitMatMemNums()
340 || m_MemCap.texSRT < texSRTNum in ReserveMem()
367 m_MemCap.texSRT = texSRTNum; in ReserveMem()
373 m_MemNum.texSRT = m_MemCap.texSRT; in ReserveMem()
374 InitTexSRT(GetTexSRTAry(), m_MemNum.texSRT); in ReserveMem()
492 NW_ASSERT(num <= m_MemCap.texSRT); in SetTexSRTNum()
498 for (u32 i = m_MemNum.texSRT; i < num; ++i) in SetTexSRTNum()
504 m_MemNum.texSRT = num; in SetTexSRTNum()
643 if (m_MemNum.texSRT > 0) in SetupGraphics()
[all …]