//
// cocos2d::CCTexture2D::setTexParameters from 0x10012dee8 to 0x10012df80 (152 bytes)
//
// 11 xrefs:
// > CustomSongWidget::init @ 0x1000fa0ac
// > CustomSongWidget::init @ 0x1000fa4a0
// > PlayLayer::setupHasCompleted @ 0x100116eb0
// > cocos2d::CCMotionStreak::enableRepeatMode @ 0x100176fec
// > LoadingLayer::init @ 0x1001d656c
// > GJBaseGameLayer::createBackground @ 0x1001ddcc4
// > GauntletLayer::init @ 0x1002323dc
// > Slider::init @ 0x1002ef680
// > CustomSFXWidget::init @ 0x1002f07c8
// > LevelAreaLayer::init @ 0x100343d30
// > MenuGameLayer::init @ 0x10039a610
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::CCTexture2D::setTexParameters(cocos2d::CCTexture2D *a1, cocos2d::ccTexParams *a2)
{
__int64 m_uPixelsWide; // x21
m_uPixelsWide = a1->m_uPixelsWide;
if ( sub_100084720(m_uPixelsWide) == m_uPixelsWide || a2->wrapS == 33071 )
sub_100084720(a1->m_uPixelsHigh);
cocos2d::ccGLBindTexture2D(a1->m_uName);
glTexParameteri(0xDE1u, 0x2801u, a2->minFilter);
glTexParameteri(0xDE1u, 0x2800u, a2->magFilter);
glTexParameteri(0xDE1u, 0x2802u, a2->wrapS);
glTexParameteri(0xDE1u, 0x2803u, a2->wrapT);
}