|
| GLViewProtocol () |
| ctor () |
| GLViewProtocol () |
virtual | ~GLViewProtocol () |
virtual void | end ()=0 |
| Force destroying EGL view, subclass must implement this method. More...
|
|
local | end () |
| Force destroying EGL view, subclass must implement this method. More...
|
|
virtual bool | isOpenGLReady ()=0 |
| Get whether opengl render system is ready, subclass must implement this method. More...
|
|
virtual void | swapBuffers ()=0 |
| Exchanges the front and back buffers, subclass must implement this method. More...
|
|
virtual void | setIMEKeyboardState (bool open)=0 |
| Open or close IME keyboard , subclass must implement this method. More...
|
|
local | setIMEKeyboardState ( local open) |
| Open or close IME keyboard , subclass must implement this method. More...
|
|
virtual void | pollInputEvents () |
| Polls input events. More...
|
|
local | pollInputEvents () |
| Polls input events. More...
|
|
virtual const Size & | getFrameSize () const |
| Get the frame size of EGL view. More...
|
|
virtual void | setFrameSize (float width, float height) |
| Set the frame size of EGL view. More...
|
|
var | setFrameSize ( var width, var height) |
| Set the frame size of EGL view. More...
|
|
local | setFrameSize ( local width, local height) |
| Set the frame size of EGL view. More...
|
|
virtual Size | getVisibleSize () const |
| Get the visible area size of opengl viewport. More...
|
|
var | getVisibleSize () |
| Get the visible area size of opengl viewport. More...
|
|
local | getVisibleSize () |
| Get the visible area size of opengl viewport. More...
|
|
virtual Vec2 | getVisibleOrigin () const |
| Get the visible origin point of opengl viewport. More...
|
|
local | getVisibleOrigin () |
| Get the visible origin point of opengl viewport. More...
|
|
virtual Rect | getVisibleRect () const |
| Get the visible rectangle of opengl viewport. More...
|
|
var | getVisibleRect () |
| Get the visible rectangle of opengl viewport. More...
|
|
local | getVisibleRect () |
| Get the visible rectangle 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...
|
|
var | getDesignResolutionSize () |
| Get design resolution size. More...
|
|
local | getDesignResolutionSize () |
| Get design resolution size. More...
|
|
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...
|
|
virtual bool | isScissorEnabled () |
| Get whether GL_SCISSOR_TEST is enable. More...
|
|
virtual Rect | getScissorRect () const |
| Get the current scissor rectangle. More...
|
|
local | getScissorRect () |
| Get the current scissor rectangle. More...
|
|
virtual void | setViewName (const std::string &viewname) |
var | setViewName ( var viewname) |
local | setViewName ( local viewname) |
const std::string & | getViewName () const |
local | getViewName () |
virtual void | handleTouchesBegin (int num, intptr_t 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, intptr_t ids[], float xs[], float ys[]) |
local | handleTouchesMove ( local num) |
virtual void | handleTouchesEnd (int num, intptr_t ids[], float xs[], float ys[]) |
local | handleTouchesEnd ( local num) |
virtual void | handleTouchesCancel (int num, intptr_t ids[], float xs[], float ys[]) |
local | handleTouchesCancel ( local num) |
const Rect & | getViewPortRect () const |
| Get the opengl view port rectangle. More...
|
|
var | getViewPortRect () |
| Get the opengl view port rectangle. More...
|
|
local | getViewPortRect () |
| Get the opengl view port rectangle. More...
|
|
float | getScaleX () const |
| Get scale factor of the horizontal direction. More...
|
|
local | getScaleX () |
| 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...
|
|
ResolutionPolicy | getResolutionPolicy () const |
| returns the current Resolution policy More...
|
|
local | getResolutionPolicy () |
| returns the current Resolution policy More...
|
|