//
// cocos2d::CCGridBase::set2DProjection from 0x180023860 to 0x180023926 (198 bytes)
//
// 3 xrefs:
// > cocos2d::CCGridBase::beforeDraw @ 0x1800226aa
// > ??> @ 0x1801438a8
// > ??> @ 0x1801af07c
//
// 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::CCGridBase::set2DProjection(cocos2d::CCGridBase *this)
{
cocos2d::CCDirector *v1; // rax
int v2; // edx
int v3; // r8d
int v4; // r9d
__int64 v5; // rdx
__int64 v6; // rcx
__int64 v7; // r8
cocos2d *v8; // rcx
float v9; // [rsp+40h] [rbp-68h]
float v10; // [rsp+44h] [rbp-64h]
_BYTE v11[64]; // [rsp+50h] [rbp-58h] BYREF
v1 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSizeInPixels(v1);
glViewport(0, 0, (int)v9, (int)v10);
kmGLMatrixMode(5889);
((void (*)(void))kmGLLoadIdentity)();
kmMat4OrthographicProjection((unsigned int)v11, v2, v3, v4);
kmGLMultMatrix(v11);
kmGLMatrixMode(5888);
kmGLLoadIdentity(v6, v5, v7);
cocos2d::ccSetProjectionMatrixDirty(v8);
}