Home
last modified time | relevance | path

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

/NW4C-1.2.23/sources/libraries/lyt/
Dlyt_Util.cpp373 CalcTextureMtx(math::MTX23* pTexMtx, const TexSRT& texSRT, const TexMap& texMap) in CalcTextureMtx() argument
382 math::SinCosDeg(&sinR, &cosR, texSRT.rotate); in CalcTextureMtx()
386 a0 = cosR * texSRT.scale.x; in CalcTextureMtx()
389 texSRT.scale.x * (-sinR); in CalcTextureMtx()
391 -sinR * texSRT.scale.y; in CalcTextureMtx()
396 texMtx.m[0][2] = texSRT.translate.x + center.x + a0 * (-center.x) + a1 * (-center.y); in CalcTextureMtx()
400 texSRT.scale.y * sinR; in CalcTextureMtx()
402 sinR * texSRT.scale.x; in CalcTextureMtx()
404 a1 = cosR * texSRT.scale.y; in CalcTextureMtx()
407 texMtx.m[1][2] = texSRT.translate.y + center.y + a0 * (-center.x) + a1 * (-center.y); in CalcTextureMtx()
Dlyt_DrawerUniform.cpp88 const TexSRT& texSRT = pMaterial->GetTexSRT( i ); in CalcTextureCoords() local
89 register const f32 rotate = texSRT.rotate; in CalcTextureCoords()
90 register const f32 scalex = texSRT.scale.x; in CalcTextureCoords()
91 register const f32 scaley = texSRT.scale.y; in CalcTextureCoords()
102 register nw::math::VEC2 ctrans( ( center.x + texSRT.translate.x ) * adjust_x, in CalcTextureCoords()
103 ( center.y + texSRT.translate.y ) * adjust_y ); in CalcTextureCoords()
141 register const nw::math::VEC2 trans( texSRT.translate.x, texSRT.translate.y ); in CalcTextureCoords()
Dlyt_Material.cpp61 return CalcOffsetTexSRTAry(bitNums) + sizeof(TexSRT) * bitNums.texSRT; in CalcOffsetTexCoordGenAry()
311 ptr->texSRT = 0; in InitMatMemNums()
338 || m_MemCap.texSRT < texSRTNum in ReserveMem()
365 m_MemCap.texSRT = texSRTNum; in ReserveMem()
371 m_MemNum.texSRT = m_MemCap.texSRT; in ReserveMem()
372 InitTexSRT(GetTexSRTAry(), m_MemNum.texSRT); in ReserveMem()
490 NW_ASSERT(num <= m_MemCap.texSRT); in SetTexSRTNum()
496 for (u32 i = m_MemNum.texSRT; i < num; ++i) in SetTexSRTNum()
502 m_MemNum.texSRT = num; in SetTexSRTNum()
641 if (m_MemNum.texSRT > 0) in SetupGraphics()
[all …]
/NW4C-1.2.23/include/nw/lyt/
Dlyt_Material.h47 u32 texSRT: 2; member
166 return u8(m_MemCap.texSRT); in GetTexSRTCap()
309 return u8(m_MemNum.texSRT); in GetTexSRTNum()
406 NW_ASSERT(idx < m_MemNum.texSRT); in GetTexSRT()
427 NW_ASSERT(idx < m_MemNum.texSRT); in SetTexSRT()
496 NW_ASSERT(idx < m_MemNum.texSRT); in GetTexSRTElement()
525 NW_ASSERT(idx < m_MemNum.texSRT); in SetTexSRTElement()
Dlyt_Util.h238 void CalcTextureMtx(math::MTX23* pTexMtx, const TexSRT& texSRT, const TexMap& texMap);