//
// cocos2d::CCDirector::setViewport from 0x100175d28 to 0x100175d7c (84 bytes)
//
// 2 xrefs:
// > cocos2d::CCDirector::setProjection @ 0x1001754b0
// > cocos2d::CCRenderTexture::end @ 0x1003c0a9c
//
// 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::CCDirector::setViewport(cocos2d::CCDirector *a1)
{
__int64 v2; // [xsp+8h] [xbp-18h] BYREF
if ( a1->m_pobOpenGLView )
{
sub_100022AFC(&v2, (double *)&a1->m_obWinSizeInPoints);
((void (__fastcall *)(cocos2d::CCEGLView *, float, float, float, float))a1->m_pobOpenGLView->setViewPortInPoints)(
a1->m_pobOpenGLView,
0.0,
0.0,
*(float *)&v2,
*((float *)&v2 + 1));
}
}