//
// cocos2d::CCDirector::setViewport from 0x1800c3450 to 0x1800c349f (79 bytes)
//
// 11 xrefs:
// > cocos2d::CCRenderTexture::clear @ 0x180061a8a
// > cocos2d::CCRenderTexture::clearDepth @ 0x180061b34
// > cocos2d::CCRenderTexture::draw @ 0x180061f40
// > cocos2d::CCRenderTexture::end @ 0x180061fb0
// > cocos2d::CCRenderTexture::newCCImage @ 0x1800625f0
// > cocos2d::CCEGLView::onGLFWWindowPosCallback @ 0x18007a81c
// > sub_18007A840 @ 0x18007a856
// > cocos2d::CCEGLView::updateWindow @ 0x18007c2a4
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c3678
// > ??> @ 0x1801c3684
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:26 +0000
//
void __fastcall cocos2d::CCDirector::setViewport(cocos2d::CCDirector *this)
{
int v2; // [rsp+40h] [rbp+8h] BYREF
if ( *((_QWORD *)this + 24) )
{
cocos2d::cc_timeval::operator=(&v2, (_DWORD *)this + 80);
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 24) + 96LL))(*((_QWORD *)this + 24));
}
}