//
// cocos2d::CCSprite::draw from 0xb15700 to 0xb1581c (284 bytes)
//
// 76 xrefs:
// > cocos2d::CCTextFieldTTF::draw @ 0xb30f08
// > cocos2d::CCTextFieldTTF::draw @ 0xb30f4c
// > ??> @ 0x406e0
// > ??> @ 0x11361c8
// > ??> @ 0x1136778
// > ??> @ 0x11374f8
// > ??> @ 0x1139648
// > ??> @ 0x1139bd8
// > ??> @ 0x113ce58
// > ??> @ 0x113d478
// > ??> @ 0x1142dd8
// > ??> @ 0x1143378
// > ??> @ 0x11529b8
// > ??> @ 0x11531a8
// > ??> @ 0x1153788
// > ??> @ 0x1153f58
// > ??> @ 0x1154758
// > ??> @ 0x11599f8
// > ??> @ 0x1162108
// > ??> @ 0x1162908
// > ??> @ 0x1163108
// > ??> @ 0x1163908
// > ??> @ 0x1164108
// > ??> @ 0x1164908
// > ??> @ 0x1165108
// > ??> @ 0x1165908
// > ??> @ 0x11660d8
// > ??> @ 0x11668d8
// > ??> @ 0x11670d8
// > ??> @ 0x11678d8
// > ??> @ 0x11680d8
// > ??> @ 0x1168918
// > ??> @ 0x1169118
// > ??> @ 0x1169918
// > ??> @ 0x116a118
// > ??> @ 0x116a918
// > ??> @ 0x116b128
// > ??> @ 0x116b928
// > ??> @ 0x116c128
// > ??> @ 0x116c928
// > ??> @ 0x116d128
// > ??> @ 0x116d928
// > ??> @ 0x116e128
// > ??> @ 0x116e928
// > ??> @ 0x116f128
// > ??> @ 0x116f928
// > ??> @ 0x1170128
// > ??> @ 0x1170928
// > ??> @ 0x1171128
// > ??> @ 0x1171928
// > ??> @ 0x1172128
// > ??> @ 0x1172928
// > ??> @ 0x1173128
// > ??> @ 0x1173928
// > ??> @ 0x1174128
// > ??> @ 0x1174928
// > ??> @ 0x1175128
// > ??> @ 0x1175928
// > ??> @ 0x1176128
// > ??> @ 0x1176928
// > ??> @ 0x1177148
// > ??> @ 0x1178f98
// > ??> @ 0x1179528
// > ??> @ 0x11925b8
// > ??> @ 0x11942a8
// > ??> @ 0x11a0e78
// > ??> @ 0x11a1418
// > ??> @ 0x11aa998
// > ??> @ 0x11b0358
// > ??> @ 0x11b2658
// > ??> @ 0x11d9db8
// > ??> @ 0x11ed668
// > ??> @ 0x1202158
// > ??> @ 0x12026e8
// > ??> @ 0x1203248
// > ??> @ 0x12187f8
//
// 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 cocos2d::CCSprite::draw(cocos2d::CCSprite *a1)
{
cocos2d::CCGLProgram *v2; // x0
cocos2d::CCGLProgram *v3; // x0
unsigned int v4; // w0
if ( !a1->m_bDontDraw )
{
if ( a1->_realOpacity )
{
cocos2d::ccGLEnable(a1->m_eGLServerState);
a1->getShaderProgram(a1);
v2 = a1->getShaderProgram(a1);
cocos2d::CCGLProgram::use(v2);
v3 = a1->getShaderProgram(a1);
cocos2d::CCGLProgram::setUniformsForBuiltins(v3);
cocos2d::ccGLBlendFunc(a1->m_sBlendFunc.src, a1->m_sBlendFunc.dst);
v4 = a1->m_pobTexture->getName(a1->m_pobTexture);
cocos2d::ccGLBindTexture2D(v4);
cocos2d::ccGLEnableVertexAttribs((unsigned int)&byte_7);
glVertexAttribPointer();
glVertexAttribPointer();
glVertexAttribPointer();
glDrawArrays();
++g_uNumberOfDraws;
}
}
}