mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-23 07:57:51 -05:00
add more cocos stuff
This commit is contained in:
parent
584afba3ed
commit
11f2208767
4 changed files with 10 additions and 6 deletions
|
@ -236,9 +236,12 @@ class cocos2d::CCEGLView {
|
||||||
}
|
}
|
||||||
|
|
||||||
class cocos2d::CCEGLViewProtocol {
|
class cocos2d::CCEGLViewProtocol {
|
||||||
|
CCEGLViewProtocol();
|
||||||
|
virtual ~CCEGLViewProtocol();
|
||||||
auto getViewPortRect() const = mac 0x29e2f0;
|
auto getViewPortRect() const = mac 0x29e2f0;
|
||||||
auto getScaleX() const = mac 0x29e300;
|
auto getScaleX() const = mac 0x29e300;
|
||||||
auto getScaleY() const = mac 0x29e310;
|
auto getScaleY() const = mac 0x29e310;
|
||||||
|
virtual auto setDesignResolutionSize(float, float, ResolutionPolicy);
|
||||||
}
|
}
|
||||||
|
|
||||||
class cocos2d::CCFadeOut {
|
class cocos2d::CCFadeOut {
|
||||||
|
|
2
loader/include/Geode/cocos/CCDirector.h
vendored
2
loader/include/Geode/cocos/CCDirector.h
vendored
|
@ -458,7 +458,7 @@ protected:
|
||||||
void setNextScene(void);
|
void setNextScene(void);
|
||||||
|
|
||||||
void showStats();
|
void showStats();
|
||||||
void createStatsLabel();
|
RT_REMOVE(void createStatsLabel();)
|
||||||
void calculateMPF();
|
void calculateMPF();
|
||||||
void getFPSImageData(unsigned char** datapointer, unsigned int* length);
|
void getFPSImageData(unsigned char** datapointer, unsigned int* length);
|
||||||
|
|
||||||
|
|
|
@ -245,7 +245,7 @@ It should work same as apples CFSwapInt32LittleToHost(..)
|
||||||
Increments the GL Draws counts by one.
|
Increments the GL Draws counts by one.
|
||||||
The number of calls per frame are displayed on the screen when the CCDirector's stats are enabled.
|
The number of calls per frame are displayed on the screen when the CCDirector's stats are enabled.
|
||||||
*/
|
*/
|
||||||
extern unsigned int CC_DLL g_uNumberOfDraws;
|
extern unsigned int __declspec(dllimport) g_uNumberOfDraws;
|
||||||
#define CC_INCREMENT_GL_DRAWS(__n__) g_uNumberOfDraws += __n__
|
#define CC_INCREMENT_GL_DRAWS(__n__) g_uNumberOfDraws += __n__
|
||||||
|
|
||||||
/*******************/
|
/*******************/
|
||||||
|
|
|
@ -49,6 +49,7 @@ public:
|
||||||
* @lua NA
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
CCEGLViewProtocol();
|
CCEGLViewProtocol();
|
||||||
|
GEODE_CUSTOM_CONSTRUCTOR_BEGIN(CCEGLViewProtocol)
|
||||||
/**
|
/**
|
||||||
* @lua NA
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
|
@ -57,22 +58,22 @@ public:
|
||||||
/** Force destroying EGL view, subclass must implement this method.
|
/** Force destroying EGL view, subclass must implement this method.
|
||||||
* @lua NA
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
virtual void end() = 0;
|
virtual void end() {}
|
||||||
|
|
||||||
/** Get whether opengl render system is ready, subclass must implement this method.
|
/** Get whether opengl render system is ready, subclass must implement this method.
|
||||||
* @lua NA
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
virtual bool isOpenGLReady() = 0;
|
virtual bool isOpenGLReady() { return false; }
|
||||||
|
|
||||||
/** Exchanges the front and back buffers, subclass must implement this method.
|
/** Exchanges the front and back buffers, subclass must implement this method.
|
||||||
* @lua NA
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
virtual void swapBuffers() = 0;
|
virtual void swapBuffers() {}
|
||||||
|
|
||||||
/** Open or close IME keyboard , subclass must implement this method.
|
/** Open or close IME keyboard , subclass must implement this method.
|
||||||
* @lua NA
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
virtual void setIMEKeyboardState(bool bOpen) = 0;
|
virtual void setIMEKeyboardState(bool bOpen) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the frame size of EGL view.
|
* Get the frame size of EGL view.
|
||||||
|
|
Loading…
Reference in a new issue