//
// cocos2d::CCDirector::setOpenGLView from 0x100483660 to 0x100483738 (216 bytes)
//
// 1 xrefs:
// > AppDelegate::setupGLView @ 0x10065c05a
//
// 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::setOpenGLView(cocos2d::CCDirector *a1, cocos2d::CCEGLView *a2)
{
cocos2d::CCConfiguration *v3; // r15
cocos2d::CCEGLView *m_pobOpenGLView; // rdi
_QWORD *v5; // rax
cocos2d::CCTouchDispatcher *m_pTouchDispatcher; // rsi
if ( a1->m_pobOpenGLView != a2 )
{
v3 = cocos2d::CCConfiguration::sharedConfiguration();
cocos2d::CCConfiguration::gatherGPUInfo(v3);
cocos2d::CCConfiguration::dumpInfo(v3);
m_pobOpenGLView = a1->m_pobOpenGLView;
if ( m_pobOpenGLView )
((void (__fastcall *)(cocos2d::CCEGLView *))m_pobOpenGLView->~CCEGLView_0)(m_pobOpenGLView);
a1->m_pobOpenGLView = a2;
v5 = (_QWORD *)((__int64 (__fastcall *)(cocos2d::CCEGLView *))a2->getDesignResolutionSize)(a2);
sub_10028CFF0(&a1->m_obWinSizeInPoints, v5);
cocos2d::ccGLBlendFunc(1u, 0x303u);
glDisable(0xB71u);
cocos2d::CCDirector::setProjection(a1, a1->m_eProjection);
glClearColor(0.0, 0.0, 0.0, 1.0);
m_pTouchDispatcher = a1->m_pTouchDispatcher;
if ( m_pTouchDispatcher )
m_pTouchDispatcher = (cocos2d::CCTouchDispatcher *)((char *)m_pTouchDispatcher + 56);
((void (__fastcall *)(cocos2d::CCEGLView *, cocos2d::CCTouchDispatcher *))a1->m_pobOpenGLView->setTouchDelegate)(
a1->m_pobOpenGLView,
m_pTouchDispatcher);
cocos2d::CCTouchDispatcher::setDispatchEvents(a1->m_pTouchDispatcher, 1);
}
}