Class that represent the OpenGL View. More...
#include <CCGLView.h>
Public Member Functions | |
bool | isOpenGLReady () override |
Get whether opengl render system is ready, subclass must implement this method. More... | |
var | isOpenGLReady () |
Get whether opengl render system is ready, subclass must implement this method. More... | |
local | isOpenGLReady () |
Get whether opengl render system is ready, subclass must implement this method. More... | |
void | end () override |
Force destroying EGL view, subclass must implement this method. More... | |
var | end () |
Force destroying EGL view, subclass must implement this method. More... | |
local | end () |
Force destroying EGL view, subclass must implement this method. More... | |
void | swapBuffers () override |
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... | |
void | setIMEKeyboardState (bool bOpen) override |
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... | |
float | getFrameZoomFactor () |
var | getFrameZoomFactor () |
local | getFrameZoomFactor () |
virtual void | setViewPortInPoints (float x, float y, float w, float h) |
Set opengl view port rectangle with points. More... | |
var | setViewPortInPoints ( var x, var y, var w, var 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... | |
var | setScissorInPoints ( var x, var y, var w, var 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 () |
var | pollEvents () |
local | pollEvents () |
GLFWwindow * | getWindow () const |
local | getWindow () |
virtual bool | isOpenGLReady () override |
Get whether opengl render system is ready, subclass must implement this method. More... | |
var | isOpenGLReady () |
Get whether opengl render system is ready, subclass must implement this method. More... | |
local | isOpenGLReady () |
Get whether opengl render system is ready, subclass must implement this method. More... | |
virtual void | end () override |
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 () override |
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) override |
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) override |
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... | |
void | setFrameZoomFactor (float zoomFactor) |
var | setFrameZoomFactor ( var zoomFactor) |
local | setFrameZoomFactor ( local zoomFactor) |
void | enableRetina (bool enabled) |
Retina support is disabled by default. More... | |
bool | isRetinaEnabled () const |
Check whether retina display is enabled. More... | |
int | getRetinaFactor () const |
Get retina factor. More... | |
var | getRetinaFactor () |
Get retina factor. More... | |
local | getRetinaFactor () |
Get retina factor. More... | |
bool | setContentScaleFactor (float contentScaleFactor) |
sets the content scale factor More... | |
var | setContentScaleFactor ( var contentScaleFactor) |
sets the content scale factor More... | |
local | setContentScaleFactor ( local contentScaleFactor) |
sets the content scale factor More... | |
float | getContentScaleFactor () const |
returns the content scale factor More... | |
var | getContentScaleFactor () |
returns the content scale factor More... | |
local | getContentScaleFactor () |
returns the content scale factor More... | |
bool | isRetinaDisplay () const |
returns whether or not the view is in Retina Display mode More... | |
var | isRetinaDisplay () |
returns whether or not the view is in Retina Display mode More... | |
local | isRetinaDisplay () |
returns whether or not the view is in Retina Display mode More... | |
void * | getEAGLView () const |
returns the objective-c CCEAGLView instance More... | |
var | getEAGLView () |
returns the objective-c CCEAGLView instance More... | |
local | getEAGLView () |
returns the objective-c CCEAGLView instance More... | |
virtual bool | isOpenGLReady () override |
Get whether opengl render system is ready, subclass must implement this method. More... | |
var | isOpenGLReady () |
Get whether opengl render system is ready, subclass must implement this method. More... | |
local | isOpenGLReady () |
Get whether opengl render system is ready, subclass must implement this method. More... | |
virtual void | end () override |
Force destroying EGL view, subclass must implement this method. More... | |
var | 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 () override |
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 | setIMEKeyboardState (bool bOpen) override |
Open or close IME keyboard , subclass must implement this method. More... | |
GLView () | |
GLView () | |
GLView () | |
virtual | ~GLView () |
var | ~GLView () |
local | ~GLView () |
virtual bool | isOpenGLReady () |
Get whether opengl render system is ready, subclass must implement this method. More... | |
local | 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... | |
var | 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... | |
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... | |
void | ShowKeyboard (Windows::Foundation::Rect r) |
var | ShowKeyboard ( var r) |
local | ShowKeyboard ( local r) |
void | HideKeyboard (Windows::Foundation::Rect r) |
var | HideKeyboard ( var r) |
local | HideKeyboard ( local r) |
virtual bool | Create (Windows::UI::Core::CoreWindow^window, Windows::UI::Xaml::Controls::SwapChainBackgroundPanel^panel) |
var | Create ( var window, var panel) |
local | Create ( local window, local panel) |
void | UpdateForWindowSizeChange () |
void | OnRendering () |
var | OnRendering () |
local | OnRendering () |
void | OnSuspending () |
var | OnSuspending () |
local | OnSuspending () |
void | GLView::QueueEvent (std::shared_ptr< InputEvent > &event) |
var | GLView::QueueEvent ( var event) |
local | GLView::QueueEvent ( local event) |
void | OnPointerPressed (Windows::UI::Core::PointerEventArgs^args) |
local | OnPointerPressed ( local args) |
void | OnPointerMoved (Windows::UI::Core::PointerEventArgs^args) |
var | OnPointerMoved ( var args) |
local | OnPointerMoved ( local args) |
void | OnPointerReleased (Windows::UI::Core::PointerEventArgs^args) |
var | OnPointerReleased ( var args) |
local | OnPointerReleased ( local args) |
void | OnPointerPressed (Windows::UI::Core::CoreWindow^sender, Windows::UI::Core::PointerEventArgs^args) |
void | OnBackKeyPress () |
var | OnBackKeyPress () |
local | OnBackKeyPress () |
Windows::UI::Core::CoreWindow | getWindow () |
local | getWindow () |
int | Run () |
var | Run () |
local | Run () |
void | resize (int width, int height) |
var | resize ( var width, var height) |
local | resize ( local width, local height) |
void | setFrameZoomFactor (float fZoomFactor) |
var | setFrameZoomFactor ( var fZoomFactor) |
local | setFrameZoomFactor ( local fZoomFactor) |
float | getFrameZoomFactor () |
var | getFrameZoomFactor () |
local | getFrameZoomFactor () |
void | centerWindow () |
var | centerWindow () |
local | centerWindow () |
virtual bool | isOpenGLReady () |
Get whether opengl render system is ready, subclass must implement this method. More... | |
var | isOpenGLReady () |
Get whether opengl render system is ready, subclass must implement this method. More... | |
local | 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 | setViewPortInPoints (float x, float y, float w, float h) |
Set opengl view port rectangle with points. More... | |
var | setViewPortInPoints ( var x, var y, var w, var 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... | |
var | setScissorInPoints ( var x, var y, var w, var h) |
Set Scissor rectangle with points. More... | |
local | setScissorInPoints ( local x, local y, local w, local h) |
Set Scissor rectangle with points. More... | |
const Mat4 & | getOrientationMatrix () const |
var | getOrientationMatrix () |
local | getOrientationMatrix () |
const Mat4 & | getReverseOrientationMatrix () const |
Windows::Graphics::Display::DisplayOrientations | getDeviceOrientation () |
local | getDeviceOrientation () |
Size | getRenerTargetSize () const |
var | getRenerTargetSize () |
local | getRenerTargetSize () |
virtual void | setIMEKeyboardState (bool 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... | |
void | ShowKeyboard (Windows::Foundation::Rect r) |
void | HideKeyboard (Windows::Foundation::Rect r) |
var | HideKeyboard ( var r) |
local | HideKeyboard ( local r) |
virtual bool | Create (EGLDisplay eglDisplay, EGLContext eglContext, EGLSurface eglSurface, float width, float height, Windows::Graphics::Display::DisplayOrientations orientation) |
local | Create ( local eglDisplay, local eglContext, local eglSurface, local width, local height, local orientation) |
virtual void | UpdateDevice (EGLDisplay eglDisplay, EGLContext eglContext, EGLSurface eglSurface) |
var | UpdateDevice ( var eglDisplay, var eglContext, var eglSurface) |
local | UpdateDevice ( local eglDisplay, local eglContext, local eglSurface) |
void | OnPointerPressed (Windows::UI::Core::PointerEventArgs^args) |
var | OnPointerPressed ( var args) |
local | OnPointerPressed ( local args) |
void | OnPointerMoved (Windows::UI::Core::PointerEventArgs^args) |
var | OnPointerMoved ( var args) |
local | OnPointerMoved ( local args) |
void | OnPointerReleased (Windows::UI::Core::PointerEventArgs^args) |
var | OnPointerReleased ( var args) |
local | OnPointerReleased ( local args) |
void | OnPointerPressed (Windows::UI::Core::CoreWindow^sender, Windows::UI::Core::PointerEventArgs^args) |
void | OnPointerWheelChanged (Windows::UI::Core::CoreWindow^, Windows::UI::Core::PointerEventArgs^args) |
void | OnPointerMoved (Windows::UI::Core::CoreWindow^, Windows::UI::Core::PointerEventArgs^args) |
var | OnPointerMoved ( var args) |
local | OnPointerMoved ( local args) |
void | OnPointerReleased (Windows::UI::Core::CoreWindow^sender, Windows::UI::Core::PointerEventArgs^args) |
local | OnPointerReleased ( local sender, local args) |
void | OnVisibilityChanged (Windows::UI::Core::CoreWindow^sender, Windows::UI::Core::VisibilityChangedEventArgs^args) |
var | OnVisibilityChanged ( var sender, var args) |
local | OnVisibilityChanged ( local sender, local args) |
void | OnWindowClosed (Windows::UI::Core::CoreWindow^sender, Windows::UI::Core::CoreWindowEventArgs^args) |
void | OnResuming (Platform::Object^sender, Platform::Object^args) |
var | OnResuming ( var sender, var args) |
local | OnResuming ( local sender, local args) |
void | OnSuspending (Platform::Object^sender, Windows::ApplicationModel::SuspendingEventArgs^args) |
void | OnBackKeyPress () |
void | QueueBackKeyPress () |
var | QueueBackKeyPress () |
local | QueueBackKeyPress () |
void | QueuePointerEvent (PointerEventType type, Windows::UI::Core::PointerEventArgs^args) |
var | QueuePointerEvent ( var type, var args) |
local | QueuePointerEvent ( local type, local args) |
void | GLView::QueueEvent (std::shared_ptr< InputEvent > &event) |
var | GLView::QueueEvent ( var event) |
local | GLView::QueueEvent ( local event) |
void | SetXamlEventDelegate (PhoneDirect3DXamlAppComponent::Cocos2dEventDelegate^delegate) |
var | SetXamlEventDelegate ( var delegate) |
local | SetXamlEventDelegate ( local delegate) |
void | SetXamlMessageBoxDelegate (PhoneDirect3DXamlAppComponent::Cocos2dMessageBoxDelegate^delegate) |
void | SetXamlEditBoxDelegate (PhoneDirect3DXamlAppComponent::Cocos2dEditBoxDelegate^delegate) |
bool | ShowMessageBox (Platform::String^title, Platform::String^message) |
bool | OpenXamlEditBox (Platform::String^strPlaceHolder, Platform::String^strText, int maxLength, int inputMode, int inputFlag, Windows::Foundation::EventHandler< Platform::String^>^receiveHandler) |
var | OpenXamlEditBox ( var strPlaceHolder, var strText, var maxLength, var inputMode, var inputFlag, var receiveHandler) |
local | OpenXamlEditBox ( local strPlaceHolder, local strText, local maxLength, local inputMode, local inputFlag, local receiveHandler) |
int | Run () |
void | Render () |
var | Render () |
local | Render () |
void | resize (int width, int height) |
var | resize ( var width, var height) |
local | resize ( local width, local height) |
float | getFrameZoomFactor () |
var | getFrameZoomFactor () |
local | getFrameZoomFactor () |
void | centerWindow () |
var | centerWindow () |
local | centerWindow () |
void | UpdateOrientation (Windows::Graphics::Display::DisplayOrientations orientation) |
var | UpdateOrientation ( var orientation) |
local | UpdateOrientation ( local orientation) |
void | UpdateForWindowSizeChange (float width, float height) |
var | UpdateForWindowSizeChange ( var width, var height) |
local | UpdateForWindowSizeChange ( local width, local height) |
void | ProcessEvents () |
var | ProcessEvents () |
local | ProcessEvents () |
void | AddPointerEvent (PointerEventType type, Windows::UI::Core::PointerEventArgs^args) |
local | AddPointerEvent ( local type, local args) |
Public Member Functions inherited from Ref | |
void | retain () |
Retains the ownership. More... | |
void | release () |
Releases the ownership immediately. More... | |
Ref * | autorelease () |
Releases the ownership sometime soon automatically. More... | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. More... | |
virtual | ~Ref () |
Public Member Functions inherited from GLViewProtocol | |
GLViewProtocol () | |
ctor () | |
GLViewProtocol () | |
virtual | ~GLViewProtocol () |
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 Size | getVisibleSize () const |
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... | |
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... | |
local | getDesignResolutionSize () |
Get design resolution size. 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... | |
Static Public Member Functions | |
static GLView * | create (const std::string &viewname) |
static GLView * | createWithRect (const std::string &viewName, Rect rect, float frameZoomFactor=1.0f) |
static GLView * | createWithFullScreen (const std::string &viewName) |
var | createWithFullScreen ( var viewName) |
local | createWithFullScreen ( local viewName) |
static GLView * | create (const std::string &viewName) |
var | create ( var viewName) |
local | create ( local viewName) |
static GLView * | createWithRect (const std::string &viewName, Rect size, float frameZoomFactor=1.0f) |
static GLView * | createWithFullScreen (const std::string &viewName) |
static GLView * | createWithFullScreen (const std::string &viewName, const GLFWvidmode &videoMode, GLFWmonitor *monitor) |
static GLView * | createWithEAGLView (void *eaglview) |
creates a GLView with a objective-c CCEAGLView instance More... | |
static GLView * | create (const std::string &viewName) |
creates a GLView with a title name in fullscreen mode More... | |
local | create ( local viewName) |
creates a GLView with a title name in fullscreen mode More... | |
static GLView * | createWithRect (const std::string &viewName, Rect rect, float frameZoomFactor=1.0f) |
creates a GLView with a title name, a rect and the zoom factor More... | |
local | createWithRect ( local viewName, local rect, local 0f) |
creates a GLView with a title name, a rect and the zoom factor More... | |
static GLView * | createWithFullScreen (const std::string &viewName) |
creates a GLView with a name in fullscreen mode More... | |
local | createWithFullScreen ( local viewName) |
creates a GLView with a name in fullscreen mode More... | |
static GLView * | sharedOpenGLView () |
get the shared main open gl window More... | |
var | sharedOpenGLView () |
get the shared main open gl window More... | |
local | sharedOpenGLView () |
get the shared main open gl window More... | |
static GLView * | create (const std::string &viewName) |
static GLView * | sharedOpenGLView () |
get the shared main open gl window More... | |
local | sharedOpenGLView () |
get the shared main open gl window More... | |
Protected Member Functions | |
GLView () | |
GLView () | |
GLView () | |
virtual | ~GLView () |
var | ~GLView () |
local | ~GLView () |
bool | initWithRect (const std::string &viewName, Rect rect, float frameZoomFactor) |
var | initWithRect ( var viewName, var rect, var frameZoomFactor) |
local | initWithRect ( local viewName, local rect, local frameZoomFactor) |
bool | initWithFullScreen (const std::string &viewName) |
local | initWithFullScreen ( local viewName) |
GLView () | |
GLView () | |
GLView () | |
virtual | ~GLView () |
var | ~GLView () |
local | ~GLView () |
bool | initWithRect (const std::string &viewName, Rect rect, float frameZoomFactor) |
var | initWithRect ( var viewName, var rect, var frameZoomFactor) |
local | initWithRect ( local viewName, local rect, local frameZoomFactor) |
bool | initWithFullScreen (const std::string &viewName) |
var | initWithFullScreen ( var viewName) |
local | initWithFullScreen ( local viewName) |
bool | initWithFullscreen (const std::string &viewname, const GLFWvidmode &videoMode, GLFWmonitor *monitor) |
var | initWithFullscreen ( var viewname, var videoMode, var monitor) |
local | initWithFullscreen ( local viewname, local videoMode, local monitor) |
bool | initGlew () |
void | updateFrameSize () |
var | updateFrameSize () |
local | updateFrameSize () |
void | onGLFWError (int errorID, const char *errorDesc) |
var | onGLFWError ( var errorID, var errorDesc) |
local | onGLFWError ( local errorID, local errorDesc) |
void | onGLFWMouseCallBack (GLFWwindow *window, int button, int action, int modify) |
var | onGLFWMouseCallBack ( var window, var button, var action, var modify) |
local | onGLFWMouseCallBack ( local window, local button, local action, local modify) |
void | onGLFWMouseMoveCallBack (GLFWwindow *window, double x, double y) |
var | onGLFWMouseMoveCallBack ( var window, var x, var y) |
local | onGLFWMouseMoveCallBack ( local window, local x, local y) |
void | onGLFWMouseScrollCallback (GLFWwindow *window, double x, double y) |
var | onGLFWMouseScrollCallback ( var window, var x, var y) |
local | onGLFWMouseScrollCallback ( local window, local x, local y) |
void | onGLFWKeyCallback (GLFWwindow *window, int key, int scancode, int action, int mods) |
var | onGLFWKeyCallback ( var window, var key, var scancode, var action, var mods) |
local | onGLFWKeyCallback ( local window, local key, local scancode, local action, local mods) |
void | onGLFWCharCallback (GLFWwindow *window, unsigned int character) |
void | onGLFWWindowPosCallback (GLFWwindow *windows, int x, int y) |
var | onGLFWWindowPosCallback ( var windows, var x, var y) |
local | onGLFWWindowPosCallback ( local windows, local x, local y) |
void | onGLFWframebuffersize (GLFWwindow *window, int w, int h) |
var | onGLFWframebuffersize ( var window, var w, var h) |
local | onGLFWframebuffersize ( local window, local w, local h) |
void | onGLFWWindowSizeFunCallback (GLFWwindow *window, int width, int height) |
GLView () | |
virtual | ~GLView () |
var | ~GLView () |
local | ~GLView () |
bool | initWithEAGLView (void *eaglview) |
var | initWithEAGLView ( var eaglview) |
local | initWithEAGLView ( local eaglview) |
bool | initWithRect (const std::string &viewName, Rect rect, float frameZoomFactor) |
var | initWithRect ( var viewName, var rect, var frameZoomFactor) |
local | initWithRect ( local viewName, local rect, local frameZoomFactor) |
bool | initWithFullScreen (const std::string &viewName) |
GLView () | |
GLView () | |
GLView () | |
virtual | ~GLView () |
var | ~GLView () |
local | ~GLView () |
bool | initWithRect (const std::string &viewName, Rect rect, float frameZoomFactor) |
var | initWithRect ( var viewName, var rect, var frameZoomFactor) |
local | initWithRect ( local viewName, local rect, local frameZoomFactor) |
bool | initWithFullScreen (const std::string &viewName) |
var | initWithFullScreen ( var viewName) |
local | initWithFullScreen ( local viewName) |
void | setFrameZoomFactor (float zoomFactor) |
var | setFrameZoomFactor ( var zoomFactor) |
local | setFrameZoomFactor ( local zoomFactor) |
bool | isRetina () |
Protected Member Functions inherited from Ref | |
Ref () | |
Constructor. More... | |
Protected Member Functions inherited from GLViewProtocol | |
void | updateDesignResolutionSize () |
local | updateDesignResolutionSize () |
void | handleTouchesOfEndOrCancel (EventTouch::EventCode eventCode, int num, intptr_t ids[], float xs[], float ys[]) |
var | handleTouchesOfEndOrCancel ( var eventCode, var num) |
local | handleTouchesOfEndOrCancel ( local eventCode, local num) |
Friends | |
class | GLFWEventHandler |
Class that represent the OpenGL View.
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
GLView | ( | ) |
var GLView | ( | ) |
local GLView | ( | ) |
|
virtual |
|
virtual |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
void AddPointerEvent | ( | PointerEventType | type, |
Windows::UI::Core::PointerEventArgs^ | args | ||
) |
var AddPointerEvent | ( | var | type, |
var | args | ||
) |
local AddPointerEvent | ( | local | type, |
local | args | ||
) |
void centerWindow | ( | ) |
var centerWindow | ( | ) |
local centerWindow | ( | ) |
void centerWindow | ( | ) |
var centerWindow | ( | ) |
local centerWindow | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
creates a GLView with a title name in fullscreen mode
|
static |
creates a GLView with a title name in fullscreen mode
|
static |
creates a GLView with a title name in fullscreen mode
|
static |
|
static |
|
static |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
static |
creates a GLView with a objective-c CCEAGLView instance
|
static |
creates a GLView with a objective-c CCEAGLView instance
|
static |
creates a GLView with a objective-c CCEAGLView instance
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
creates a GLView with a name in fullscreen mode
|
static |
creates a GLView with a name in fullscreen mode
|
static |
creates a GLView with a name in fullscreen mode
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
creates a GLView with a title name, a rect and the zoom factor
|
static |
creates a GLView with a title name, a rect and the zoom factor
|
static |
creates a GLView with a title name, a rect and the zoom factor
void enableRetina | ( | bool | enabled | ) |
Retina support is disabled by default.
var enableRetina | ( | var | enabled | ) |
Retina support is disabled by default.
local enableRetina | ( | local | enabled | ) |
Retina support is disabled by default.
|
overridevirtual |
Force destroying EGL view, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Force destroying EGL view, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Force destroying EGL view, subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Force destroying EGL view, subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Force destroying EGL view, subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Force destroying EGL view, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Force destroying EGL view, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Force destroying EGL view, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Force destroying EGL view, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Force destroying EGL view, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Force destroying EGL view, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Force destroying EGL view, subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Force destroying EGL view, subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Force destroying EGL view, subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Force destroying EGL view, subclass must implement this method.
Implements GLViewProtocol.
float getContentScaleFactor | ( | ) | const |
returns the content scale factor
var getContentScaleFactor | ( | ) |
returns the content scale factor
local getContentScaleFactor | ( | ) |
returns the content scale factor
|
inline |
|
inline |
|
inline |
|
inline |
returns the objective-c CCEAGLView instance
|
inline |
returns the objective-c CCEAGLView instance
|
inline |
returns the objective-c CCEAGLView instance
float getFrameZoomFactor | ( | ) |
var getFrameZoomFactor | ( | ) |
local getFrameZoomFactor | ( | ) |
float getFrameZoomFactor | ( | ) |
var getFrameZoomFactor | ( | ) |
local getFrameZoomFactor | ( | ) |
float getFrameZoomFactor | ( | ) |
var getFrameZoomFactor | ( | ) |
local getFrameZoomFactor | ( | ) |
const Mat4& getOrientationMatrix | ( | ) | const |
var getOrientationMatrix | ( | ) |
local getOrientationMatrix | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
Get retina factor.
|
inline |
Get retina factor.
|
inline |
Get retina factor.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void GLView::QueueEvent | ( | std::shared_ptr< InputEvent > & | event | ) |
var QueueEvent | ( | var | event | ) |
local QueueEvent | ( | local | event | ) |
void GLView::QueueEvent | ( | std::shared_ptr< InputEvent > & | event | ) |
var QueueEvent | ( | var | event | ) |
local QueueEvent | ( | local | event | ) |
void HideKeyboard | ( | Windows::Foundation::Rect | r | ) |
var HideKeyboard | ( | var | r | ) |
local HideKeyboard | ( | local | r | ) |
void HideKeyboard | ( | Windows::Foundation::Rect | r | ) |
var HideKeyboard | ( | var | r | ) |
local HideKeyboard | ( | local | r | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
overridevirtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Get whether opengl render system is ready, subclass must implement this method.
Implements GLViewProtocol.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
returns whether or not the view is in Retina Display mode
|
inline |
returns whether or not the view is in Retina Display mode
|
inline |
returns whether or not the view is in Retina Display mode
|
inline |
Check whether retina display is enabled.
|
inline |
Check whether retina display is enabled.
|
inline |
Check whether retina display is enabled.
void OnBackKeyPress | ( | ) |
var OnBackKeyPress | ( | ) |
local OnBackKeyPress | ( | ) |
void OnBackKeyPress | ( | ) |
var OnBackKeyPress | ( | ) |
local OnBackKeyPress | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
void OnPointerMoved | ( | Windows::UI::Core::PointerEventArgs^ | args | ) |
var OnPointerMoved | ( | var | args | ) |
local OnPointerMoved | ( | local | args | ) |
void OnPointerMoved | ( | Windows::UI::Core::CoreWindow^ | , |
Windows::UI::Core::PointerEventArgs^ | args | ||
) |
var OnPointerMoved | ( | var | , |
var | args | ||
) |
local OnPointerMoved | ( | local | , |
local | args | ||
) |
void OnPointerMoved | ( | Windows::UI::Core::PointerEventArgs^ | args | ) |
var OnPointerMoved | ( | var | args | ) |
local OnPointerMoved | ( | local | args | ) |
void OnPointerPressed | ( | Windows::UI::Core::PointerEventArgs^ | args | ) |
var OnPointerPressed | ( | var | args | ) |
local OnPointerPressed | ( | local | args | ) |
void OnPointerPressed | ( | Windows::UI::Core::CoreWindow^ | sender, |
Windows::UI::Core::PointerEventArgs^ | args | ||
) |
var OnPointerPressed | ( | var | sender, |
var | args | ||
) |
local OnPointerPressed | ( | local | sender, |
local | args | ||
) |
void OnPointerPressed | ( | Windows::UI::Core::PointerEventArgs^ | args | ) |
var OnPointerPressed | ( | var | args | ) |
local OnPointerPressed | ( | local | args | ) |
void OnPointerPressed | ( | Windows::UI::Core::CoreWindow^ | sender, |
Windows::UI::Core::PointerEventArgs^ | args | ||
) |
var OnPointerPressed | ( | var | sender, |
var | args | ||
) |
local OnPointerPressed | ( | local | sender, |
local | args | ||
) |
void OnPointerReleased | ( | Windows::UI::Core::PointerEventArgs^ | args | ) |
var OnPointerReleased | ( | var | args | ) |
local OnPointerReleased | ( | local | args | ) |
void OnPointerReleased | ( | Windows::UI::Core::CoreWindow^ | sender, |
Windows::UI::Core::PointerEventArgs^ | args | ||
) |
var OnPointerReleased | ( | var | sender, |
var | args | ||
) |
local OnPointerReleased | ( | local | sender, |
local | args | ||
) |
void OnPointerReleased | ( | Windows::UI::Core::PointerEventArgs^ | args | ) |
var OnPointerReleased | ( | var | args | ) |
local OnPointerReleased | ( | local | args | ) |
void OnPointerWheelChanged | ( | Windows::UI::Core::CoreWindow^ | , |
Windows::UI::Core::PointerEventArgs^ | args | ||
) |
var OnPointerWheelChanged | ( | var | , |
var | args | ||
) |
local OnPointerWheelChanged | ( | local | , |
local | args | ||
) |
void OnRendering | ( | ) |
var OnRendering | ( | ) |
local OnRendering | ( | ) |
void OnResuming | ( | Platform::Object^ | sender, |
Platform::Object^ | args | ||
) |
var OnResuming | ( | var | sender, |
var | args | ||
) |
local OnResuming | ( | local | sender, |
local | args | ||
) |
void OnSuspending | ( | Platform::Object^ | sender, |
Windows::ApplicationModel::SuspendingEventArgs^ | args | ||
) |
var OnSuspending | ( | var | sender, |
var | args | ||
) |
local OnSuspending | ( | local | sender, |
local | args | ||
) |
void OnSuspending | ( | ) |
var OnSuspending | ( | ) |
local OnSuspending | ( | ) |
void OnVisibilityChanged | ( | Windows::UI::Core::CoreWindow^ | sender, |
Windows::UI::Core::VisibilityChangedEventArgs^ | args | ||
) |
var OnVisibilityChanged | ( | var | sender, |
var | args | ||
) |
local OnVisibilityChanged | ( | local | sender, |
local | args | ||
) |
void OnWindowClosed | ( | Windows::UI::Core::CoreWindow^ | sender, |
Windows::UI::Core::CoreWindowEventArgs^ | args | ||
) |
var OnWindowClosed | ( | var | sender, |
var | args | ||
) |
local OnWindowClosed | ( | local | sender, |
local | args | ||
) |
bool OpenXamlEditBox | ( | Platform::String^ | strPlaceHolder, |
Platform::String^ | strText, | ||
int | maxLength, | ||
int | inputMode, | ||
int | inputFlag, | ||
Windows::Foundation::EventHandler< Platform::String^>^ | receiveHandler | ||
) |
var OpenXamlEditBox | ( | var | strPlaceHolder, |
var | strText, | ||
var | maxLength, | ||
var | inputMode, | ||
var | inputFlag, | ||
var | receiveHandler | ||
) |
local OpenXamlEditBox | ( | local | strPlaceHolder, |
local | strText, | ||
local | maxLength, | ||
local | inputMode, | ||
local | inputFlag, | ||
local | receiveHandler | ||
) |
void pollEvents | ( | ) |
var pollEvents | ( | ) |
local pollEvents | ( | ) |
void ProcessEvents | ( | ) |
var ProcessEvents | ( | ) |
local ProcessEvents | ( | ) |
void QueueBackKeyPress | ( | ) |
var QueueBackKeyPress | ( | ) |
local QueueBackKeyPress | ( | ) |
void QueuePointerEvent | ( | PointerEventType | type, |
Windows::UI::Core::PointerEventArgs^ | args | ||
) |
var QueuePointerEvent | ( | var | type, |
var | args | ||
) |
local QueuePointerEvent | ( | local | type, |
local | args | ||
) |
void Render | ( | ) |
var Render | ( | ) |
local Render | ( | ) |
void resize | ( | int | width, |
int | height | ||
) |
var resize | ( | var | width, |
var | height | ||
) |
local resize | ( | local | width, |
local | height | ||
) |
void resize | ( | int | width, |
int | height | ||
) |
var resize | ( | var | width, |
var | height | ||
) |
local resize | ( | local | width, |
local | height | ||
) |
int Run | ( | ) |
var Run | ( | ) |
local Run | ( | ) |
int Run | ( | ) |
var Run | ( | ) |
local Run | ( | ) |
bool setContentScaleFactor | ( | float | contentScaleFactor | ) |
sets the content scale factor
var setContentScaleFactor | ( | var | contentScaleFactor | ) |
sets the content scale factor
local setContentScaleFactor | ( | local | contentScaleFactor | ) |
sets the content scale factor
|
overridevirtual |
Set the frame size of EGL view.
Reimplemented from GLViewProtocol.
|
overridevirtual |
Set the frame size of EGL view.
Reimplemented from GLViewProtocol.
|
overridevirtual |
Set the frame size of EGL view.
Reimplemented from GLViewProtocol.
|
virtual |
Set the frame size of EGL view.
Reimplemented from GLViewProtocol.
|
virtual |
Set the frame size of EGL view.
Reimplemented from GLViewProtocol.
|
virtual |
Set the frame size of EGL view.
Reimplemented from GLViewProtocol.
void setFrameZoomFactor | ( | float | zoomFactor | ) |
var setFrameZoomFactor | ( | var | zoomFactor | ) |
local setFrameZoomFactor | ( | local | zoomFactor | ) |
|
protected |
|
protected |
|
protected |
void setFrameZoomFactor | ( | float | fZoomFactor | ) |
var setFrameZoomFactor | ( | var | fZoomFactor | ) |
local setFrameZoomFactor | ( | local | fZoomFactor | ) |
|
overridevirtual |
Open or close IME keyboard , subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Open or close IME keyboard , subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Open or close IME keyboard , subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Open or close IME keyboard , subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Open or close IME keyboard , subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Open or close IME keyboard , subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Open or close IME keyboard , subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Open or close IME keyboard , subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Open or close IME keyboard , subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Open or close IME keyboard , subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Open or close IME keyboard , subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Open or close IME keyboard , subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Open or close IME keyboard , subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Open or close IME keyboard , subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Open or close IME keyboard , subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Set Scissor rectangle with points.
Reimplemented from GLViewProtocol.
|
virtual |
Set Scissor rectangle with points.
Reimplemented from GLViewProtocol.
|
virtual |
Set Scissor rectangle with points.
Reimplemented from GLViewProtocol.
|
virtual |
Set Scissor rectangle with points.
Reimplemented from GLViewProtocol.
|
virtual |
Set Scissor rectangle with points.
Reimplemented from GLViewProtocol.
|
virtual |
Set Scissor rectangle with points.
Reimplemented from GLViewProtocol.
|
virtual |
Set opengl view port rectangle with points.
Reimplemented from GLViewProtocol.
|
virtual |
Set opengl view port rectangle with points.
Reimplemented from GLViewProtocol.
|
virtual |
Set opengl view port rectangle with points.
Reimplemented from GLViewProtocol.
|
virtual |
Set opengl view port rectangle with points.
Reimplemented from GLViewProtocol.
|
virtual |
Set opengl view port rectangle with points.
Reimplemented from GLViewProtocol.
|
virtual |
Set opengl view port rectangle with points.
Reimplemented from GLViewProtocol.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
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
void ShowKeyboard | ( | Windows::Foundation::Rect | r | ) |
var ShowKeyboard | ( | var | r | ) |
local ShowKeyboard | ( | local | r | ) |
void ShowKeyboard | ( | Windows::Foundation::Rect | r | ) |
var ShowKeyboard | ( | var | r | ) |
local ShowKeyboard | ( | local | r | ) |
bool ShowMessageBox | ( | Platform::String^ | title, |
Platform::String^ | message | ||
) |
var ShowMessageBox | ( | var | title, |
var | message | ||
) |
local ShowMessageBox | ( | local | title, |
local | message | ||
) |
|
overridevirtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements GLViewProtocol.
|
overridevirtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
Exchanges the front and back buffers, subclass must implement this method.
Implements GLViewProtocol.
|
virtual |
|
virtual |
|
virtual |
void UpdateForWindowSizeChange | ( | float | width, |
float | height | ||
) |
var UpdateForWindowSizeChange | ( | var | width, |
var | height | ||
) |
local UpdateForWindowSizeChange | ( | local | width, |
local | height | ||
) |
void UpdateForWindowSizeChange | ( | ) |
var UpdateForWindowSizeChange | ( | ) |
local UpdateForWindowSizeChange | ( | ) |
|
protected |
|
protected |
|
protected |
void UpdateOrientation | ( | Windows::Graphics::Display::DisplayOrientations | orientation | ) |
var UpdateOrientation | ( | var | orientation | ) |
local UpdateOrientation | ( | local | orientation | ) |
bool windowShouldClose | ( | ) |
var windowShouldClose | ( | ) |
local windowShouldClose | ( | ) |
|
friend |
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |