Skip to content

Commit a56e95d

Browse files
committed
Even more overload bindings
1 parent 38eae36 commit a56e95d

1 file changed

Lines changed: 40 additions & 6 deletions

File tree

bindings/2.2074/Cocos2d.bro

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2376,7 +2376,15 @@ class cocos2d::CCLayerGradient : cocos2d::CCLayerColor {
23762376
ret->setVector(a3);
23772377
return ret;
23782378
}
2379-
static cocos2d::CCLayerGradient* create() = imac 0x4a0780;
2379+
static cocos2d::CCLayerGradient* create() = m1 0x40b05c, imac 0x4a0780, ios inline {
2380+
auto ret = new CCLayerGradient();
2381+
if (ret->init()) {
2382+
ret->autorelease();
2383+
return ret;
2384+
}
2385+
delete ret;
2386+
return nullptr;
2387+
}
23802388

23812389
bool getShouldPremultiply() const;
23822390

@@ -3615,8 +3623,16 @@ class cocos2d::CCDictionary : cocos2d::CCObject {
36153623
[[link(win, android)]]
36163624
class cocos2d::CCRenderTexture : cocos2d::CCNode {
36173625
static cocos2d::CCRenderTexture* create(int, int) = imac 0x5ddfa0, m1 0x510d58, ios 0x3b8bc8;
3618-
static cocos2d::CCRenderTexture* create(int, int, cocos2d::CCTexture2DPixelFormat) = imac 0x5dda60, m1 0x510844;
3619-
static cocos2d::CCRenderTexture* create(int, int, cocos2d::CCTexture2DPixelFormat, unsigned int) = imac 0x5ddb30;
3626+
static cocos2d::CCRenderTexture* create(int, int, cocos2d::CCTexture2DPixelFormat) = imac 0x5dda60, m1 0x510844, ios 0x3b87c0;
3627+
static cocos2d::CCRenderTexture* create(int, int, cocos2d::CCTexture2DPixelFormat, unsigned int) = m1 0x510924, imac 0x5ddb30, ios inline {
3628+
auto ret = new CCRenderTexture();
3629+
if (ret->initWithWidthAndHeight(p0, p1, p2, p3)) {
3630+
ret->autorelease();
3631+
return ret;
3632+
}
3633+
delete ret;
3634+
return nullptr;
3635+
}
36203636

36213637
bool initWithWidthAndHeight(int, int, cocos2d::CCTexture2DPixelFormat);
36223638
bool initWithWidthAndHeight(int, int, cocos2d::CCTexture2DPixelFormat, unsigned int) = m1 0x510a0c, ios 0x3b8888;
@@ -3634,14 +3650,32 @@ class cocos2d::CCRenderTexture : cocos2d::CCNode {
36343650

36353651
// CCRenderTexture(cocos2d::CCRenderTexture const&);
36363652
[[since("4.0.1")]]
3637-
CCRenderTexture() = m1 0x510664, imac 0x5dd7c0;
3653+
CCRenderTexture() = m1 0x510664, imac 0x5dd7c0, ios inline {
3654+
m_pSprite = nullptr;
3655+
m_uFBO = 0;
3656+
m_uDepthRenderBufffer = 0;
3657+
m_nOldFBO = 0;
3658+
m_pTexture = nullptr;
3659+
m_pTextureCopy = nullptr;
3660+
m_pUITextureImage = nullptr;
3661+
m_ePixelFormat = kCCTexture2DPixelFormat_RGBA8888;
3662+
m_uClearFlags = 0;
3663+
m_sClearColor = { 0.0f, 0.0f, 0.0f, 0.0f };
3664+
m_fClearDepth = 0.0f;
3665+
m_nClearStencil = 0;
3666+
m_bAutoDraw = false;
3667+
}
36383668
[[since("4.0.1")]]
36393669
virtual ~CCRenderTexture() = m1 0x5106fc, imac 0x5dd880, ios 0x3b86dc;
36403670
void begin() = imac 0x5de080, m1 0x510e4c, ios 0x3b8cac;
36413671
void beginWithClear(float, float, float, float, float, int, unsigned int) = imac 0x5de350, m1 0x5110d8, ios 0x3b8e8c;
36423672
void beginWithClear(float, float, float, float) = imac 0x5de2b0, m1 0x511038, ios 0x3b8e7c;
3643-
void beginWithClear(float, float, float, float, float) = imac 0x5de4f0, m1 0x511220;
3644-
void beginWithClear(float, float, float, float, float, int) = imac 0x5de5d0;
3673+
void beginWithClear(float, float, float, float, float) = imac 0x5de4f0, m1 0x511220, ios inline {
3674+
this->beginWithClear(p0, p1, p2, p3, p4, 0, GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
3675+
}
3676+
void beginWithClear(float, float, float, float, float, int) = m1 0x5112f0, imac 0x5de5d0, ios inline {
3677+
this->beginWithClear(p0, p1, p2, p3, p4, p5, GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
3678+
}
36453679
void clear(float, float, float, float);
36463680
void clearDepth(float);
36473681
void clearStencil(int);

0 commit comments

Comments
 (0)