Force destroying EGL view, subclass must implement this method.
Class CCEGLViewProtocol
#include <Geode/cocos/platform/CCEGLViewProtocol.h>
Examples0
Public static methods0
Public member functions26
virtualvoidend()
virtualboolisOpenGLReady()
Get whether opengl render system is ready, subclass must implement this method.
virtualvoidswapBuffers()
Exchanges the front and back buffers, subclass must implement this method.
virtualvoidsetIMEKeyboardState(boolbOpen)
Open or close IME keyboard , subclass must implement this method.
virtualcocos2d::CCSizeconst&getFrameSize()const
Get the frame size of EGL view. In general, it returns the screen size since the EGL view is a fullscreen view.
virtualcocos2d::CCSizegetVisibleSize()const
Get the visible area size of opengl viewport.
virtualcocos2d::CCPointgetVisibleOrigin()const
Get the visible origin point of opengl viewport.
virtualvoidsetDesignResolutionSize(floatwidth,floatheight,ResolutionPolicyresolutionPolicy)
Set the design resolution size.
width
height
resolutionPolicy
virtualcocos2d::CCSizeconst&getDesignResolutionSize()const
Get design resolution size. Default resolution size is the same as ‘getFrameSize’.
virtualvoidsetTouchDelegate(cocos2d::EGLTouchDelegate*pDelegate)
Set touch delegate
virtualvoidsetViewPortInPoints(,,,)
Set opengl view port rectangle with points.
virtualboolisScissorEnabled()
Get whether GL_SCISSOR_TEST is enable
virtualcocos2d::CCRectgetScissorRect()
Get the current scissor rectangle
virtualvoidsetViewName(charconst*pszViewName)
charconst*getViewName()
virtualvoidhandleTouchesBegin(intnum,int[]ids,float[]xs,float[]ys)
Touch events are handled by default; if you want to customize your handlers, please override these functions:
cocos2d::CCRectconst&getViewPortRect()const
Get the opengl view port rectangle.
floatgetScaleX()const
Get scale factor of the horizontal direction.
floatgetScaleY()const
Get scale factor of the vertical direction.