//
// cocos2d::CCDirector::setViewport from 0x1800bfc10 to 0x1800bfc5f (79 bytes)
//
// 11 xrefs:
// > cocos2d::CCRenderTexture::clear @ 0x18005f8a7
// > cocos2d::CCRenderTexture::clearDepth @ 0x18005f951
// > cocos2d::CCRenderTexture::draw @ 0x18005fd5d
// > cocos2d::CCRenderTexture::end @ 0x18005fdcd
// > cocos2d::CCRenderTexture::newCCImage @ 0x1800603cd
// > cocos2d::CCEGLView::onGLFWWindowPosCallback @ 0x180077c30
// > sub_180077C40 @ 0x180077c5a
// > cocos2d::CCEGLView::updateWindow @ 0x180079294
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b93b4
// > ??> @ 0x1801b93c0
//
// 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 *this)
{
int v2; // [rsp+40h] [rbp+8h] BYREF
if ( this->m_pobOpenGLView )
{
cocos2d::cc_timeval::operator=(&v2, &this->m_obWinSizeInPoints);
((void (__fastcall *)(cocos2d::CCEGLView *))this->m_pobOpenGLView->setViewPortInPoints)(this->m_pobOpenGLView);
}
}