//
// cocos2d::CCGrabber::grab from 0x1005fa230 to 0x1005fa295 (101 bytes)
//
// 1 xrefs:
// > cocos2d::CCGridBase::initWithSize @ 0x1004e37f9
//
// 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::CCGrabber::grab(cocos2d::CCGrabber *a1, cocos2d::CCTexture2D *a2)
{
GLuint v2; // eax
glGetIntegerv(0x8CA6u, &a1->m_oldFBO);
glBindFramebuffer(0x8D40u, a1->m_FBO);
v2 = ((__int64 (__fastcall *)(cocos2d::CCTexture2D *))a2->getName)(a2);
glFramebufferTexture2D(0x8D40u, 0x8CE0u, 0xDE1u, v2, 0);
glCheckFramebufferStatus(0x8D40u);
glBindFramebuffer(0x8D40u, a1->m_oldFBO);
}