#include <CCEGLView.h>
Public Types | |
typedef void(* | LPFN_ACCELEROMETER_KEYHOOK )(UINT message, WPARAM wParam, LPARAM lParam) |
Public Member Functions | |
EGLView () | |
virtual | ~EGLView () |
bool | isOpenGLReady () |
Get whether opengl render system is ready, subclass must implement this method. More... | |
void | end () |
Force destroying EGL view, subclass must implement this method. More... | |
void | swapBuffers () |
Exchanges the front and back buffers, subclass must implement this method. More... | |
void | setIMEKeyboardState (bool bOpen) |
Open or close IME keyboard , subclass must implement this method. More... | |
var | setIMEKeyboardState ( var bOpen) |
Open or close IME keyboard , subclass must implement this method. More... | |
local | setIMEKeyboardState ( local bOpen) |
Open or close IME keyboard , subclass must implement this method. More... | |
EGLView () | |
~EGLView () | |
virtual bool | isOpenGLReady () |
Get whether opengl render system is ready, subclass must implement this method. More... | |
virtual bool | setContentScaleFactor (float contentScaleFactor) |
virtual void | end () |
Force destroying EGL view, subclass must implement this method. More... | |
virtual void | swapBuffers () |
Exchanges the front and back buffers, subclass must implement this method. More... | |
virtual void | setIMEKeyboardState (bool bOpen) |
Open or close IME keyboard , subclass must implement this method. More... | |
EGLView () | |
EGLView () | |
virtual | ~EGLView () |
virtual bool | isOpenGLReady () |
Get whether opengl render system is ready, subclass must implement this method. More... | |
virtual void | end () |
Force destroying EGL view, subclass must implement this method. More... | |
local | end () |
Force destroying EGL view, subclass must implement this method. More... | |
virtual void | swapBuffers () |
Exchanges the front and back buffers, subclass must implement this method. More... | |
var | swapBuffers () |
Exchanges the front and back buffers, subclass must implement this method. More... | |
local | swapBuffers () |
Exchanges the front and back buffers, subclass must implement this method. More... | |
virtual void | setFrameSize (float width, float height) |
Set the frame size of EGL view. More... | |
local | setFrameSize ( local width, local height) |
Set the frame size of EGL view. More... | |
virtual void | setIMEKeyboardState (bool bOpen) |
Open or close IME keyboard , subclass must implement this method. More... | |
var | setIMEKeyboardState ( var bOpen) |
Open or close IME keyboard , subclass must implement this method. More... | |
local | setIMEKeyboardState ( local bOpen) |
Open or close IME keyboard , subclass must implement this method. More... | |
bool | init (const char *viewName, float width, float height, float frameZoomFactor=1.0f) |
var | init ( var viewName, var width, var height, var 0f) |
local | init ( local viewName, local width, local height, local 0f) |
float | getFrameZoomFactor () |
virtual void | setViewPortInPoints (float x, float y, float w, float h) |
Set opengl view port rectangle with points. More... | |
local | setViewPortInPoints ( local x, local y, local w, local h) |
Set opengl view port rectangle with points. More... | |
virtual void | setScissorInPoints (float x, float y, float w, float h) |
Set Scissor rectangle with points. More... | |
local | setScissorInPoints ( local x, local y, local w, local h) |
Set Scissor rectangle with points. More... | |
bool | windowShouldClose () |
void | pollEvents () |
GLFWwindow * | getWindow () const |
local | getWindow () |
EGLView () | |
virtual | ~EGLView () |
virtual bool | isOpenGLReady () |
Get whether opengl render system is ready, subclass must implement this method. More... | |
virtual void | end () |
Force destroying EGL view, subclass must implement this method. More... | |
local | end () |
Force destroying EGL view, subclass must implement this method. More... | |
virtual void | swapBuffers () |
Exchanges the front and back buffers, subclass must implement this method. More... | |
virtual void | setFrameSize (float width, float height) |
Set the frame size of EGL view. More... | |
local | setFrameSize ( local width, local height) |
Set the frame size of EGL view. More... | |
virtual void | setIMEKeyboardState (bool bOpen) |
Open or close IME keyboard , subclass must implement this method. More... | |
var | setIMEKeyboardState ( var bOpen) |
Open or close IME keyboard , subclass must implement this method. More... | |
local | setIMEKeyboardState ( local bOpen) |
Open or close IME keyboard , subclass must implement this method. More... | |
bool | init (const char *viewName, float width, float height, float frameZoomFactor=1.0f) |
var | init ( var viewName, var width, var height, var 0f) |
local | init ( local viewName, local width, local height, local 0f) |
float | getFrameZoomFactor () |
virtual void | setViewPortInPoints (float x, float y, float w, float h) |
Set opengl view port rectangle with points. More... | |
virtual void | setScissorInPoints (float x, float y, float w, float h) |
Set Scissor rectangle with points. More... | |
bool | windowShouldClose () |
void | pollEvents () |
GLFWwindow * | getWindow () const |
local | getWindow () |
EGLView () | |
virtual | ~EGLView () |
virtual bool | isOpenGLReady () |
Get whether opengl render system is ready, subclass must implement this method. More... | |
virtual void | end () |
Force destroying EGL view, subclass must implement this method. More... | |
local | end () |
Force destroying EGL view, subclass must implement this method. More... | |
virtual void | swapBuffers () |
Exchanges the front and back buffers, subclass must implement this method. More... | |
var | swapBuffers () |
Exchanges the front and back buffers, subclass must implement this method. More... | |
local | swapBuffers () |
Exchanges the front and back buffers, subclass must implement this method. More... | |
virtual void | setFrameSize (float width, float height) |
Set the frame size of EGL view. More... | |
local | setFrameSize ( local width, local height) |
Set the frame size of EGL view. More... | |
virtual void | setIMEKeyboardState (bool bOpen) |
Open or close IME keyboard , subclass must implement this method. More... | |
var | setIMEKeyboardState ( var bOpen) |
Open or close IME keyboard , subclass must implement this method. More... | |
local | setIMEKeyboardState ( local bOpen) |
Open or close IME keyboard , subclass must implement this method. More... | |
bool | init (const char *viewName, float width, float height, float frameZoomFactor=1.0f) |
var | init ( var viewName, var width, var height, var 0f) |
local | init ( local viewName, local width, local height, local 0f) |
float | getFrameZoomFactor () |
void | setAccelerometerKeyHook (LPFN_ACCELEROMETER_KEYHOOK lpfnAccelerometerKeyHook) |
local | setAccelerometerKeyHook ( local lpfnAccelerometerKeyHook) |
virtual void | setViewPortInPoints (float x, float y, float w, float h) |
Set opengl view port rectangle with points. More... | |
virtual void | setScissorInPoints (float x, float y, float w, float h) |
Set Scissor rectangle with points. More... | |
local | setScissorInPoints ( local x, local y, local w, local h) |
Set Scissor rectangle with points. More... | |
bool | windowShouldClose () |
void | pollEvents () |
GLFWwindow * | getWindow () const |
var | getWindow () |
local | getWindow () |
![]() | |
EGLViewProtocol () | |
virtual | ~EGLViewProtocol () |
virtual void | pollInputEvents () |
Polls input events. More... | |
virtual const Size & | getFrameSize () const |
Get the frame size of EGL view. More... | |
virtual Size | getVisibleSize () const |
Get the visible area size of opengl viewport. More... | |
virtual Point | getVisibleOrigin () const |
Get the visible origin point of opengl viewport. More... | |
local | getVisibleOrigin () |
Get the visible origin point of opengl viewport. More... | |
virtual void | setDesignResolutionSize (float width, float height, ResolutionPolicy resolutionPolicy) |
Set the design resolution size. More... | |
local | setDesignResolutionSize ( local width, local height, local resolutionPolicy) |
Set the design resolution size. More... | |
virtual const Size & | getDesignResolutionSize () const |
Get design resolution size. More... | |
virtual void | setTouchDelegate (EGLTouchDelegate *pDelegate) |
Set touch delegate. More... | |
local | setTouchDelegate ( local pDelegate) |
Set touch delegate. More... | |
virtual bool | isScissorEnabled () |
Get whether GL_SCISSOR_TEST is enable. More... | |
virtual Rect | getScissorRect () |
Get the current scissor rectangle. More... | |
var | getScissorRect () |
Get the current scissor rectangle. More... | |
local | getScissorRect () |
Get the current scissor rectangle. More... | |
virtual void | setViewName (const char *pszViewName) |
local | setViewName ( local pszViewName) |
const char * | getViewName () |
var | getViewName () |
local | getViewName () |
virtual void | handleTouchesBegin (int num, long ids[], float xs[], float ys[]) |
Touch events are handled by default; if you want to customize your handlers, please override these functions: More... | |
virtual void | handleTouchesMove (int num, long ids[], float xs[], float ys[]) |
local | handleTouchesMove ( local num) |
virtual void | handleTouchesEnd (int num, long ids[], float xs[], float ys[]) |
local | handleTouchesEnd ( local num) |
virtual void | handleTouchesCancel (int num, long ids[], float xs[], float ys[]) |
local | handleTouchesCancel ( local num) |
const Rect & | getViewPortRect () const |
Get the opengl view port rectangle. More... | |
float | getScaleX () const |
Get scale factor of the horizontal direction. More... | |
float | getScaleY () const |
Get scale factor of the vertical direction. More... | |
local | getScaleY () |
Get scale factor of the vertical direction. More... | |
Static Public Member Functions | |
static EGLView * | getInstance () |
get the shared main open gl window More... | |
static CC_DEPRECATED_ATTRIBUTE EGLView * | sharedOpenGLView () |
local | sharedOpenGLView () |
static EGLView * | getInstance () |
returns the singleton More... | |
static CC_DEPRECATED_ATTRIBUTE EGLView * | sharedOpenGLView () |
static EGLView * | getInstance () |
get the shared main open gl window More... | |
static CC_DEPRECATED_ATTRIBUTE EGLView * | sharedOpenGLView () |
local | sharedOpenGLView () |
static EGLView * | getInstance () |
get the shared main open gl window More... | |
static CC_DEPRECATED_ATTRIBUTE EGLView * | sharedOpenGLView () |
local | sharedOpenGLView () |
static EGLView * | getInstance () |
get the shared main open gl window More... | |
static CC_DEPRECATED_ATTRIBUTE EGLView * | sharedOpenGLView () |
local | sharedOpenGLView () |
Protected Member Functions | |
void | setFrameZoomFactor (float fZoomFactor) |
void | setFrameZoomFactor (float fZoomFactor) |
void | setFrameZoomFactor (float fZoomFactor) |
Additional Inherited Members | |
![]() | |
EGLTouchDelegate * | _delegate |
Size | _screenSize |
var | _screenSize |
local | _screenSize |
Size | _designResolutionSize |
var | _designResolutionSize |
local | _designResolutionSize |
Rect | _viewPortRect |
char | _viewName [50] |
var | _viewName () |
local | _viewName () |
float | _scaleX |
float | _scaleY |
ResolutionPolicy | _resolutionPolicy |
var | _resolutionPolicy |
local | _resolutionPolicy |
typedef void(* LPFN_ACCELEROMETER_KEYHOOK)(UINT message, WPARAM wParam, LPARAM lParam) |
typedef void(* LPFN_ACCELEROMETER_KEYHOOK)(UINT message, WPARAM wParam, LPARAM lParam) |
typedef void(* LPFN_ACCELEROMETER_KEYHOOK)(UINT message, WPARAM wParam, LPARAM lParam) |
EGLView | ( | ) |
var ctor | ( | ) |
local EGLView | ( | ) |
|
virtual |
EGLView | ( | ) |
~EGLView | ( | ) |
EGLView | ( | ) |
var ctor | ( | ) |
local EGLView | ( | ) |
|
virtual |
EGLView | ( | ) |
var ctor | ( | ) |
local EGLView | ( | ) |
|
virtual |
EGLView | ( | ) |
var ctor | ( | ) |
local EGLView | ( | ) |
|
virtual |
|
virtual |
Force destroying EGL view, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Force destroying EGL view, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Force destroying EGL view, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Force destroying EGL view, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Force destroying EGL view, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Force destroying EGL view, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Force destroying EGL view, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Force destroying EGL view, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Force destroying EGL view, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Force destroying EGL view, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Force destroying EGL view, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Force destroying EGL view, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Force destroying EGL view, subclass must implement this method.
Implements EGLViewProtocol.
float getFrameZoomFactor | ( | ) |
var getFrameZoomFactor | ( | ) |
local getFrameZoomFactor | ( | ) |
float getFrameZoomFactor | ( | ) |
var getFrameZoomFactor | ( | ) |
local getFrameZoomFactor | ( | ) |
float getFrameZoomFactor | ( | ) |
var getFrameZoomFactor | ( | ) |
local getFrameZoomFactor | ( | ) |
|
static |
get the shared main open gl window
|
static |
get the shared main open gl window
|
static |
get the shared main open gl window
|
static |
get the shared main open gl window
|
static |
get the shared main open gl window
|
static |
get the shared main open gl window
|
static |
get the shared main open gl window
|
static |
get the shared main open gl window
|
static |
get the shared main open gl window
|
static |
get the shared main open gl window
|
static |
get the shared main open gl window
|
static |
get the shared main open gl window
|
static |
returns the singleton
|
static |
returns the singleton
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool init | ( | const char * | viewName, |
float | width, | ||
float | height, | ||
float | frameZoomFactor = 1.0f |
||
) |
var init | ( | var | viewName, |
var | width, | ||
var | height, | ||
var | frameZoomFactor = 1.0f |
||
) |
local init | ( | local | viewName, |
local | width, | ||
local | height, | ||
local | frameZoomFactor = 1.0f |
||
) |
bool init | ( | const char * | viewName, |
float | width, | ||
float | height, | ||
float | frameZoomFactor = 1.0f |
||
) |
var init | ( | var | viewName, |
var | width, | ||
var | height, | ||
var | frameZoomFactor = 1.0f |
||
) |
local init | ( | local | viewName, |
local | width, | ||
local | height, | ||
local | frameZoomFactor = 1.0f |
||
) |
bool init | ( | const char * | viewName, |
float | width, | ||
float | height, | ||
float | frameZoomFactor = 1.0f |
||
) |
var init | ( | var | viewName, |
var | width, | ||
var | height, | ||
var | frameZoomFactor = 1.0f |
||
) |
local init | ( | local | viewName, |
local | width, | ||
local | height, | ||
local | frameZoomFactor = 1.0f |
||
) |
|
virtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements EGLViewProtocol.
void pollEvents | ( | ) |
var pollEvents | ( | ) |
local pollEvents | ( | ) |
void pollEvents | ( | ) |
var pollEvents | ( | ) |
local pollEvents | ( | ) |
void pollEvents | ( | ) |
var pollEvents | ( | ) |
local pollEvents | ( | ) |
void setAccelerometerKeyHook | ( | LPFN_ACCELEROMETER_KEYHOOK | lpfnAccelerometerKeyHook) |
var setAccelerometerKeyHook | ( | var | lpfnAccelerometerKeyHook) |
local setAccelerometerKeyHook | ( | local | lpfnAccelerometerKeyHook) |
|
virtual |
|
virtual |
Set the frame size of EGL view.
Reimplemented from EGLViewProtocol.
|
virtual |
Set the frame size of EGL view.
Reimplemented from EGLViewProtocol.
|
virtual |
Set the frame size of EGL view.
Reimplemented from EGLViewProtocol.
|
virtual |
Set the frame size of EGL view.
Reimplemented from EGLViewProtocol.
|
virtual |
Set the frame size of EGL view.
Reimplemented from EGLViewProtocol.
|
virtual |
Set the frame size of EGL view.
Reimplemented from EGLViewProtocol.
|
virtual |
Set the frame size of EGL view.
Reimplemented from EGLViewProtocol.
|
virtual |
Set the frame size of EGL view.
Reimplemented from EGLViewProtocol.
|
virtual |
Set the frame size of EGL view.
Reimplemented from EGLViewProtocol.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
virtual |
Open or close IME keyboard , subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Open or close IME keyboard , subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Open or close IME keyboard , subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Open or close IME keyboard , subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Open or close IME keyboard , subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Open or close IME keyboard , subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Open or close IME keyboard , subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Open or close IME keyboard , subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Open or close IME keyboard , subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Open or close IME keyboard , subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Open or close IME keyboard , subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Open or close IME keyboard , subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Open or close IME keyboard , subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Set Scissor rectangle with points.
Reimplemented from EGLViewProtocol.
|
virtual |
Set Scissor rectangle with points.
Reimplemented from EGLViewProtocol.
|
virtual |
Set Scissor rectangle with points.
Reimplemented from EGLViewProtocol.
|
virtual |
Set Scissor rectangle with points.
Reimplemented from EGLViewProtocol.
|
virtual |
Set Scissor rectangle with points.
Reimplemented from EGLViewProtocol.
|
virtual |
Set Scissor rectangle with points.
Reimplemented from EGLViewProtocol.
|
virtual |
Set Scissor rectangle with points.
Reimplemented from EGLViewProtocol.
|
virtual |
Set Scissor rectangle with points.
Reimplemented from EGLViewProtocol.
|
virtual |
Set Scissor rectangle with points.
Reimplemented from EGLViewProtocol.
|
virtual |
Set opengl view port rectangle with points.
Reimplemented from EGLViewProtocol.
|
virtual |
Set opengl view port rectangle with points.
Reimplemented from EGLViewProtocol.
|
virtual |
Set opengl view port rectangle with points.
Reimplemented from EGLViewProtocol.
|
virtual |
Set opengl view port rectangle with points.
Reimplemented from EGLViewProtocol.
|
virtual |
Set opengl view port rectangle with points.
Reimplemented from EGLViewProtocol.
|
virtual |
Set opengl view port rectangle with points.
Reimplemented from EGLViewProtocol.
|
virtual |
Set opengl view port rectangle with points.
Reimplemented from EGLViewProtocol.
|
virtual |
Set opengl view port rectangle with points.
Reimplemented from EGLViewProtocol.
|
virtual |
Set opengl view port rectangle with points.
Reimplemented from EGLViewProtocol.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
virtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements EGLViewProtocol.
|
virtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements EGLViewProtocol.
bool windowShouldClose | ( | ) |
var windowShouldClose | ( | ) |
local windowShouldClose | ( | ) |
bool windowShouldClose | ( | ) |
var windowShouldClose | ( | ) |
local windowShouldClose | ( | ) |
bool windowShouldClose | ( | ) |
var windowShouldClose | ( | ) |
local windowShouldClose | ( | ) |