Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/graphics/TextureManager.cpp
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | std::size_t operator()(CTexturePtr const& a) const | ||||
return (*this)(a->m_Properties); | return (*this)(a->m_Properties); | ||||
} | } | ||||
private: | private: | ||||
std::hash<Path> m_PathHash; | std::hash<Path> m_PathHash; | ||||
}; | }; | ||||
struct TPequal_to | struct TPequal_to | ||||
: std::binary_function<CTextureProperties, CTextureProperties, bool>, | |||||
std::binary_function<CTexturePtr, CTexturePtr, bool> | |||||
{ | { | ||||
bool operator()(CTextureProperties const& a, CTextureProperties const& b) const | bool operator()(CTextureProperties const& a, CTextureProperties const& b) const | ||||
{ | { | ||||
return a.m_Path == b.m_Path && a.m_Filter == b.m_Filter | return a.m_Path == b.m_Path && a.m_Filter == b.m_Filter | ||||
&& a.m_WrapS == b.m_WrapS && a.m_WrapT == b.m_WrapT | && a.m_WrapS == b.m_WrapS && a.m_WrapT == b.m_WrapT | ||||
&& a.m_Aniso == b.m_Aniso && a.m_Format == b.m_Format; | && a.m_Aniso == b.m_Aniso && a.m_Format == b.m_Format; | ||||
} | } | ||||
bool operator()(CTexturePtr const& a, CTexturePtr const& b) const | bool operator()(CTexturePtr const& a, CTexturePtr const& b) const | ||||
▲ Show 20 Lines • Show All 606 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator