add CCEGLView::setupWindow

This commit is contained in:
hjfod 2023-03-23 18:01:10 +02:00
parent 11299df20c
commit dc4f029bf3
2 changed files with 3 additions and 0 deletions

View file

@ -176,6 +176,7 @@ class cocos2d::CCEGLView {
static cocos2d::CCEGLView* sharedOpenGLView() = mac 0x295320;
virtual void swapBuffers() = mac 0x295510;
void updateWindow(int width, int height);
void setupWindow(cocos2d::CCRect);
void toggleFullScreen(bool fullscreen);
void pollEvents();
void onGLFWCharCallback(GLFWwindow* window, unsigned int entered);

View file

@ -63,6 +63,8 @@ public:
protected:
RT_REMOVE( virtual bool Create(); )
void setupWindow(cocos2d::CCRect rect);
public:
bool initGL();
void destroyGL();