cocos2d-x  3.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GLViewImpl Class Reference

Class that represent the OpenGL View. More...

#include <CCGLViewImpl-wp8.h>

Inheritance diagram for GLViewImpl:
GLView GLView GLView GLView GLView GLView Ref Ref Ref Ref Ref Ref

Public Member Functions

bool isOpenGLReady () override
 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...
 
void swapBuffers () override
 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 () const
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 ()
virtual bool isOpenGLReady () override
 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...
 
virtual void swapBuffers () override
 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)
 Set and get zoom factor for frame. More...
 
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...
 
HWND getWin32Window ()
id getCocoaWindow ()
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...
 
bool isRetinaDisplay () const
 returns whether or not the view is in Retina Display mode More...
 
void * getEAGLView () const
 returns the objective-c CCEAGLView instance More...
 
virtual bool isOpenGLReady () override
 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...
 
virtual void swapBuffers () override
 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...
 
local setIMEKeyboardState ( local bOpen)
 Open or close IME keyboard , subclass must implement this method. More...
 
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...
 
virtual void 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...
 
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...
 
Windows::Graphics::Display::DisplayOrientations getDeviceOrientation ()
Size getRenerTargetSize () const
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...
 
virtual void setIMEKeyboardState (bool bOpen, std::string str)
local setIMEKeyboardState ( local bOpen, local str)
virtual bool Create (float width, float height, float dpi, Windows::Graphics::Display::DisplayOrientations orientation)
local Create ( local width, local height, local dpi, local orientation)
void setDispatcher (Windows::UI::Core::CoreDispatcher^dispatcher)
Windows::UI::Core::CoreDispatcher getDispatcher ()
local getDispatcher ()
void setPanel (Windows::UI::Xaml::Controls::Panel^panel)
Windows::UI::Xaml::Controls::Panel getPanel ()
local getPanel ()
void OnPointerPressed (Windows::UI::Core::PointerEventArgs^args)
var OnPointerPressed ( var args)
local OnPointerPressed ( local args)
void OnPointerMoved (Windows::UI::Core::PointerEventArgs^args)
void OnPointerReleased (Windows::UI::Core::PointerEventArgs^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)
void OnPointerReleased (Windows::UI::Core::CoreWindow^sender, Windows::UI::Core::PointerEventArgs^args)
void OnVisibilityChanged (Windows::UI::Core::CoreWindow^sender, Windows::UI::Core::VisibilityChangedEventArgs^args)
void OnWindowClosed (Windows::UI::Core::CoreWindow^sender, Windows::UI::Core::CoreWindowEventArgs^args)
void OnResuming (Platform::Object^sender, Platform::Object^args)
void OnSuspending (Platform::Object^sender, Windows::ApplicationModel::SuspendingEventArgs^args)
void OnBackKeyPress ()
void QueueBackKeyPress ()
void QueuePointerEvent (PointerEventType type, Windows::UI::Core::PointerEventArgs^args)
void QueueEvent (std::shared_ptr< InputEvent > &event)
bool ShowMessageBox (Platform::String^title, Platform::String^message)
int Run ()
void Render ()
void resize (int width, int height)
local resize ( local width, local height)
float getFrameZoomFactor ()
void centerWindow ()
void UpdateOrientation (Windows::Graphics::Display::DisplayOrientations orientation)
void UpdateForWindowSizeChange (float width, float height)
void SetDPI (float dpi)
float GetDPI ()
void ProcessEvents ()
 GLViewImpl ()
virtual ~GLViewImpl ()
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...
 
virtual void 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...
 
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)
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 ()
void OnSuspending ()
void GLViewImpl::QueueEvent (std::shared_ptr< InputEvent > &event)
var GLViewImpl::QueueEvent ( var event)
local GLViewImpl::QueueEvent ( local event)
void OnPointerPressed (Windows::UI::Core::PointerEventArgs^args)
void OnPointerMoved (Windows::UI::Core::PointerEventArgs^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 ()
Windows::UI::Core::CoreWindow getWindow ()
int Run ()
void resize (int width, int height)
local resize ( local width, local height)
void setFrameZoomFactor (float fZoomFactor)
 Set and get zoom factor for frame. More...
 
var setFrameZoomFactor ( var fZoomFactor)
 Set and get zoom factor for frame. More...
 
local setFrameZoomFactor ( local fZoomFactor)
 Set and get zoom factor for frame. More...
 
float getFrameZoomFactor ()
void centerWindow ()
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...
 
virtual void 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...
 
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...
 
const Mat4getOrientationMatrix () const
const Mat4getReverseOrientationMatrix () const
var getReverseOrientationMatrix ()
local getReverseOrientationMatrix ()
Windows::Graphics::Display::DisplayOrientations getDeviceOrientation ()
Size getRenerTargetSize () const
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...
 
virtual void setIMEKeyboardState (bool bOpen, std::string str)
local setIMEKeyboardState ( local bOpen, local str)
Platform::String stringToPlatformString (std::string strSrc)
void ShowKeyboard (Windows::Foundation::Rect r)
void HideKeyboard (Windows::Foundation::Rect 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)
void OnPointerMoved (Windows::UI::Core::PointerEventArgs^args)
void OnPointerReleased (Windows::UI::Core::PointerEventArgs^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)
void OnPointerReleased (Windows::UI::Core::CoreWindow^sender, Windows::UI::Core::PointerEventArgs^args)
void OnVisibilityChanged (Windows::UI::Core::CoreWindow^sender, Windows::UI::Core::VisibilityChangedEventArgs^args)
void OnWindowClosed (Windows::UI::Core::CoreWindow^sender, Windows::UI::Core::CoreWindowEventArgs^args)
void OnResuming (Platform::Object^sender, Platform::Object^args)
void OnSuspending (Platform::Object^sender, Windows::ApplicationModel::SuspendingEventArgs^args)
void OnBackKeyPress ()
void QueueBackKeyPress ()
void QueuePointerEvent (PointerEventType type, Windows::UI::Core::PointerEventArgs^args)
void GLViewImpl::QueueEvent (std::shared_ptr< InputEvent > &event)
void SetXamlEventDelegate (Cocos2dEventDelegate^delegate)
void SetXamlMessageBoxDelegate (Cocos2dMessageBoxDelegate^delegate)
void SetXamlEditBoxDelegate (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)
int Run ()
void Render ()
void resize (int width, int height)
local resize ( local width, local height)
float getFrameZoomFactor ()
void centerWindow ()
void UpdateOrientation (Windows::Graphics::Display::DisplayOrientations orientation)
void UpdateForWindowSizeChange (float width, float height)
local UpdateForWindowSizeChange ( local width, local height)
void ProcessEvents ()
void AddPointerEvent (PointerEventType type, Windows::UI::Core::PointerEventArgs^args)
- Public Member Functions inherited from GLView
 GLView ()
 ctor ()
 GLView ()
virtual ~GLView ()
virtual void pollInputEvents ()
 Polls input events. More...
 
var pollInputEvents ()
 Polls input events. More...
 
local pollInputEvents ()
 Polls input events. More...
 
virtual const SizegetFrameSize () const
 Get the frame size of EGL view. More...
 
var getFrameSize ()
 Get the frame size of EGL view. More...
 
local getFrameSize ()
 Get 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 SizegetDesignResolutionSize () const
 Get design resolution size. More...
 
var getDesignResolutionSize ()
 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...
 
var getScissorRect ()
 Get the current scissor rectangle. More...
 
local getScissorRect ()
 Get the current scissor rectangle. More...
 
virtual void setViewName (const std::string &viewname)
local setViewName ( local viewname)
const std::string & getViewName () const
var getViewName ()
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[])
var handleTouchesMove ( var num)
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[])
var handleTouchesCancel ( var num)
local handleTouchesCancel ( local num)
const RectgetViewPortRect () const
 Get the opengl view port rectangle. More...
 
std::vector< Touch * > getAllTouches () const
 Get list of all active touches. More...
 
float getScaleX () const
 Get scale factor of the horizontal direction. More...
 
var getScaleX ()
 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...
 
var getScaleY ()
 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...
 
var getResolutionPolicy ()
 returns the current Resolution policy More...
 
local getResolutionPolicy ()
 returns the current Resolution policy More...
 
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
Refautorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()

Static Public Member Functions

static GLViewImplcreate (const std::string &viewname)
static GLViewImplcreateWithRect (const std::string &viewName, Rect rect, float frameZoomFactor=1.0f)
local createWithRect ( local viewName, local rect, local 0f)
static GLViewImplcreateWithFullScreen (const std::string &viewName)
local createWithFullScreen ( local viewName)
static GLViewImplcreate (const std::string &viewName)
static GLViewImplcreateWithRect (const std::string &viewName, Rect size, float frameZoomFactor=1.0f)
var createWithRect ( var viewName, var size, var 0f)
local createWithRect ( local viewName, local size, local 0f)
static GLViewImplcreateWithFullScreen (const std::string &viewName)
static GLViewImplcreateWithFullScreen (const std::string &viewName, const GLFWvidmode &videoMode, GLFWmonitor *monitor)
static GLViewImplcreateWithEAGLView (void *eaGLView)
 creates a GLViewImpl with a objective-c CCEAGLViewImpl instance More...
 
static GLViewImplcreate (const std::string &viewName)
 creates a GLViewImpl with a title name in fullscreen mode More...
 
static GLViewImplcreateWithRect (const std::string &viewName, Rect rect, float frameZoomFactor=1.0f)
 creates a GLViewImpl with a title name, a rect and the zoom factor More...
 
static GLViewImplcreateWithFullScreen (const std::string &viewName)
 creates a GLViewImpl with a name in fullscreen mode More...
 
static void convertAttrs ()
static GLViewImplcreate (const std::string &viewName)
var create ( var viewName)
local create ( local viewName)
static GLViewImplsharedOpenGLView ()
 get the shared main open gl window More...
 
static GLViewImplsharedOpenGLView ()
 get the shared main open gl window More...
 
static GLViewImplcreate (const std::string &viewName)
local create ( local viewName)
static GLViewImplsharedOpenGLView ()
 get the shared main open gl window More...
 
- Static Public Member Functions inherited from GLView
static void setGLContextAttrs (GLContextAttrs &glContextAttrs)
local setGLContextAttrs ( local glContextAttrs)
static GLContextAttrs getGLContextAttrs ()
var getGLContextAttrs ()
local getGLContextAttrs ()

Static Public Attributes

static void * _pixelFormat
static int _depthFormat
var _depthFormat
local _depthFormat
- Static Public Attributes inherited from GLView
static GLContextAttrs _glContextAttrs
var _glContextAttrs
local _glContextAttrs

Protected Member Functions

 GLViewImpl ()
virtual ~GLViewImpl ()
local ~GLViewImpl ()
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)
 GLViewImpl ()
virtual ~GLViewImpl ()
bool initWithRect (const std::string &viewName, Rect rect, float frameZoomFactor)
local initWithRect ( local viewName, local rect, local frameZoomFactor)
bool initWithFullScreen (const std::string &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 ()
void onGLFWError (int errorID, const char *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)
local onGLFWMouseMoveCallBack ( local window, local x, local y)
void onGLFWMouseScrollCallback (GLFWwindow *window, double x, double 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)
local onGLFWWindowPosCallback ( local windows, local x, local y)
void onGLFWframebuffersize (GLFWwindow *window, int w, int h)
void onGLFWWindowSizeFunCallback (GLFWwindow *window, int width, int height)
void onGLFWWindowIconifyCallback (GLFWwindow *window, int iconified)
 GLViewImpl ()
virtual ~GLViewImpl ()
bool initWithEAGLView (void *eaGLView)
bool initWithRect (const std::string &viewName, Rect rect, float frameZoomFactor)
bool initWithFullScreen (const std::string &viewName)
 GLViewImpl ()
virtual ~GLViewImpl ()
bool initWithRect (const std::string &viewName, Rect rect, float frameZoomFactor)
local initWithRect ( local viewName, local rect, local frameZoomFactor)
bool initWithFullScreen (const std::string &viewName)
void setFrameZoomFactor (float zoomFactor)
 Set and get zoom factor for frame. More...
 
bool isRetina ()
 GLViewImpl ()
virtual ~GLViewImpl ()
bool initWithRect (const std::string &viewName, Rect rect, float frameZoomFactor)
local initWithRect ( local viewName, local rect, local frameZoomFactor)
bool initWithFullScreen (const std::string &viewName)
void setFrameZoomFactor (float zoomFactor)
 Set and get zoom factor for frame. More...
 
bool isRetina ()
- Protected Member Functions inherited from GLView
void updateDesignResolutionSize ()
var 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)
- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 
 Ref ()
 Constructor. More...
 

Protected Attributes

bool _captured
bool _supportTouch
bool _isInRetinaMonitor
bool _isRetinaEnabled
int _retinaFactor
float _frameZoomFactor
GLFWwindow * _mainWindow
GLFWmonitor * _monitor
float _mouseX
float _mouseY
void * _eaglview
bool _isRetina
- Protected Attributes inherited from GLView
Size _screenSize
var _screenSize
Size _designResolutionSize
var _designResolutionSize
local _designResolutionSize
Rect _viewPortRect
var _viewPortRect
local _viewPortRect
std::string _viewName
var _viewName
local _viewName
float _scaleX
var _scaleX
local _scaleX
float _scaleY
var _scaleY
local _scaleY
ResolutionPolicy _resolutionPolicy
var _resolutionPolicy
local _resolutionPolicy
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 
var _referenceCount
 count of references More...
 
local _referenceCount
 count of references More...
 

Friends

class GLFWEventHandler

Detailed Description

Class that represent the OpenGL View.

Constructor & Destructor Documentation

GLViewImpl ( )
protected
var GLViewImpl ( )
protected
local GLViewImpl ( )
protected
virtual ~GLViewImpl ( )
protectedvirtual
var ~GLViewImpl ( )
protectedvirtual
local ~GLViewImpl ( )
protectedvirtual
GLViewImpl ( )
protected
var GLViewImpl ( )
protected
local GLViewImpl ( )
protected
virtual ~GLViewImpl ( )
protectedvirtual
var ~GLViewImpl ( )
protectedvirtual
local ~GLViewImpl ( )
protectedvirtual
GLViewImpl ( )
protected
var GLViewImpl ( )
protected
local GLViewImpl ( )
protected
virtual ~GLViewImpl ( )
protectedvirtual
var ~GLViewImpl ( )
protectedvirtual
local ~GLViewImpl ( )
protectedvirtual
GLViewImpl ( )
protected
var GLViewImpl ( )
protected
local GLViewImpl ( )
protected
virtual ~GLViewImpl ( )
protectedvirtual
var ~GLViewImpl ( )
protectedvirtual
local ~GLViewImpl ( )
protectedvirtual
var GLViewImpl ( )
local GLViewImpl ( )
virtual ~GLViewImpl ( )
virtual
var ~GLViewImpl ( )
virtual
local ~GLViewImpl ( )
virtual
GLViewImpl ( )
protected
var GLViewImpl ( )
protected
local GLViewImpl ( )
protected
virtual ~GLViewImpl ( )
protectedvirtual
var ~GLViewImpl ( )
protectedvirtual
local ~GLViewImpl ( )
protectedvirtual

Member Function Documentation

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 ( )
void centerWindow ( )
var centerWindow ( )
local centerWindow ( )
static void convertAttrs ( )
static
var convertAttrs ( )
static
local convertAttrs ( )
static
static GLViewImpl* create ( const std::string &  viewname)
static
var create ( var  viewname)
static
local create ( local  viewname)
static
static GLViewImpl* create ( const std::string &  viewName)
static

creates a GLViewImpl with a title name in fullscreen mode

var create ( var  viewName)
static

creates a GLViewImpl with a title name in fullscreen mode

local create ( local  viewName)
static

creates a GLViewImpl with a title name in fullscreen mode

static GLViewImpl* create ( const std::string &  viewName)
static
var create ( var  viewName)
static
local create ( local  viewName)
static
static GLViewImpl* create ( const std::string &  viewName)
static
var create ( var  viewName)
static
local create ( local  viewName)
static
static GLViewImpl* create ( const std::string &  viewName)
static
var create ( var  viewName)
static
local create ( local  viewName)
static
virtual bool Create ( float  width,
float  height,
float  dpi,
Windows::Graphics::Display::DisplayOrientations  orientation 
)
virtual
var Create ( var  width,
var  height,
var  dpi,
var  orientation 
)
virtual
local Create ( local  width,
local  height,
local  dpi,
local  orientation 
)
virtual
virtual bool Create ( EGLDisplay  eglDisplay,
EGLContext  eglContext,
EGLSurface  eglSurface,
float  width,
float  height,
Windows::Graphics::Display::DisplayOrientations  orientation 
)
virtual
var Create ( var  eglDisplay,
var  eglContext,
var  eglSurface,
var  width,
var  height,
var  orientation 
)
virtual
local Create ( local  eglDisplay,
local  eglContext,
local  eglSurface,
local  width,
local  height,
local  orientation 
)
virtual
virtual bool Create ( Windows::UI::Core::CoreWindow^  window,
Windows::UI::Xaml::Controls::SwapChainBackgroundPanel^  panel 
)
virtual
var Create ( var  window,
var  panel 
)
virtual
local Create ( local  window,
local  panel 
)
virtual
static GLViewImpl*
createWithEAGLView
( void *  eaGLView)
static

creates a GLViewImpl with a objective-c CCEAGLViewImpl instance

var createWithEAGLView ( var  eaGLView)
static

creates a GLViewImpl with a objective-c CCEAGLViewImpl instance

local createWithEAGLView ( local  eaGLView)
static

creates a GLViewImpl with a objective-c CCEAGLViewImpl instance

static GLViewImpl*
createWithFullScreen
( const std::string &  viewName)
static
var createWithFullScreen ( var  viewName)
static
local createWithFullScreen ( local  viewName)
static
static GLViewImpl*
createWithFullScreen
( const std::string &  viewName)
static

creates a GLViewImpl with a name in fullscreen mode

var createWithFullScreen ( var  viewName)
static

creates a GLViewImpl with a name in fullscreen mode

local createWithFullScreen ( local  viewName)
static

creates a GLViewImpl with a name in fullscreen mode

static GLViewImpl*
createWithFullScreen
( const std::string &  viewName)
static
var createWithFullScreen ( var  viewName)
static
local createWithFullScreen ( local  viewName)
static
static GLViewImpl*
createWithFullScreen
( const std::string &  viewName,
const GLFWvidmode &  videoMode,
GLFWmonitor *  monitor 
)
static
var createWithFullScreen ( var  viewName,
var  videoMode,
var  monitor 
)
static
local createWithFullScreen ( local  viewName,
local  videoMode,
local  monitor 
)
static
static GLViewImpl* createWithRect ( const std::string &  viewName,
Rect  rect,
float  frameZoomFactor = 1.0f 
)
static
var createWithRect ( var  viewName,
var  rect,
var  frameZoomFactor = 1.0f 
)
static
local createWithRect ( local  viewName,
local  rect,
local  frameZoomFactor = 1.0f 
)
static
static GLViewImpl* createWithRect ( const std::string &  viewName,
Rect  rect,
float  frameZoomFactor = 1.0f 
)
static

creates a GLViewImpl with a title name, a rect and the zoom factor

var createWithRect ( var  viewName,
var  rect,
var  frameZoomFactor = 1.0f 
)
static

creates a GLViewImpl with a title name, a rect and the zoom factor

local createWithRect ( local  viewName,
local  rect,
local  frameZoomFactor = 1.0f 
)
static

creates a GLViewImpl with a title name, a rect and the zoom factor

static GLViewImpl* createWithRect ( const std::string &  viewName,
Rect  size,
float  frameZoomFactor = 1.0f 
)
static
var createWithRect ( var  viewName,
var  size,
var  frameZoomFactor = 1.0f 
)
static
local createWithRect ( local  viewName,
local  size,
local  frameZoomFactor = 1.0f 
)
static
void enableRetina ( bool  enabled)

Retina support is disabled by default.

Note
This method is only available on Mac.
var enableRetina ( var  enabled)

Retina support is disabled by default.

Note
This method is only available on Mac.
local enableRetina ( local  enabled)

Retina support is disabled by default.

Note
This method is only available on Mac.
void end ( )
overridevirtual

Force destroying EGL view, subclass must implement this method.

Implements GLView.

var end ( )
overridevirtual

Force destroying EGL view, subclass must implement this method.

Implements GLView.

local end ( )
overridevirtual

Force destroying EGL view, subclass must implement this method.

Implements GLView.

virtual void end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements GLView.

var end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements GLView.

local end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements GLView.

virtual void end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements GLView.

var end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements GLView.

local end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements GLView.

virtual void end ( )
overridevirtual

Force destroying EGL view, subclass must implement this method.

Implements GLView.

var end ( )
overridevirtual

Force destroying EGL view, subclass must implement this method.

Implements GLView.

local end ( )
overridevirtual

Force destroying EGL view, subclass must implement this method.

Implements GLView.

virtual void end ( )
overridevirtual

Force destroying EGL view, subclass must implement this method.

Implements GLView.

var end ( )
overridevirtual

Force destroying EGL view, subclass must implement this method.

Implements GLView.

local end ( )
overridevirtual

Force destroying EGL view, subclass must implement this method.

Implements GLView.

virtual void end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements GLView.

var end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements GLView.

local end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements GLView.

id getCocoaWindow ( )
inlinevirtual

Implements GLView.

var getCocoaWindow ( )
inlinevirtual

Implements GLView.

local getCocoaWindow ( )
inlinevirtual

Implements GLView.

float getContentScaleFactor ( ) const
virtual

returns the content scale factor

Reimplemented from GLView.

var getContentScaleFactor ( )
virtual

returns the content scale factor

Reimplemented from GLView.

local getContentScaleFactor ( )
virtual

returns the content scale factor

Reimplemented from GLView.

Windows::Graphics::Display::DisplayOrientations
getDeviceOrientation
( )
inline
var getDeviceOrientation ( )
inline
local getDeviceOrientation ( )
inline
Windows::Graphics::Display::DisplayOrientations
getDeviceOrientation
( )
inline
var getDeviceOrientation ( )
inline
local getDeviceOrientation ( )
inline
Windows::UI::Core::CoreDispatcher
getDispatcher
( )
inline
var getDispatcher ( )
inline
local getDispatcher ( )
inline
float GetDPI ( )
inline
var GetDPI ( )
inline
local GetDPI ( )
inline
void* getEAGLView ( ) const
inlinevirtual

returns the objective-c CCEAGLView instance

Reimplemented from GLView.

var getEAGLView ( )
inlinevirtual

returns the objective-c CCEAGLView instance

Reimplemented from GLView.

local getEAGLView ( )
inlinevirtual

returns the objective-c CCEAGLView instance

Reimplemented from GLView.

float getFrameZoomFactor ( ) const
virtual

Reimplemented from GLView.

var getFrameZoomFactor ( )
virtual

Reimplemented from GLView.

local getFrameZoomFactor ( )
virtual

Reimplemented from GLView.

float getFrameZoomFactor ( )
var getFrameZoomFactor ( )
local getFrameZoomFactor ( )
float getFrameZoomFactor ( )
var getFrameZoomFactor ( )
local getFrameZoomFactor ( )
float getFrameZoomFactor ( )
var getFrameZoomFactor ( )
local getFrameZoomFactor ( )
const Mat4& getOrientationMatrix ( ) const
virtual

Implements GLView.

var getOrientationMatrix ( )
virtual

Implements GLView.

local getOrientationMatrix ( )
virtual

Implements GLView.

Windows::UI::Xaml::Controls::Panel
getPanel
( )
inline
var getPanel ( )
inline
local getPanel ( )
inline
Size getRenerTargetSize ( ) const
inlinevirtual

Implements GLView.

var getRenerTargetSize ( )
inlinevirtual

Implements GLView.

local getRenerTargetSize ( )
inlinevirtual

Implements GLView.

Size getRenerTargetSize ( ) const
inlinevirtual

Implements GLView.

var getRenerTargetSize ( )
inlinevirtual

Implements GLView.

local getRenerTargetSize ( )
inlinevirtual

Implements GLView.

int getRetinaFactor ( ) const
inlinevirtual

Get retina factor.

Reimplemented from GLView.

var getRetinaFactor ( )
inlinevirtual

Get retina factor.

Reimplemented from GLView.

local getRetinaFactor ( )
inlinevirtual

Get retina factor.

Reimplemented from GLView.

const Mat4&
getReverseOrientationMatrix
( ) const
inlinevirtual

Implements GLView.

var getReverseOrientationMatrix ( )
inlinevirtual

Implements GLView.

local getReverseOrientationMatrix ( )
inlinevirtual

Implements GLView.

HWND getWin32Window ( )
inlinevirtual

Implements GLView.

var getWin32Window ( )
inlinevirtual

Implements GLView.

local getWin32Window ( )
inlinevirtual

Implements GLView.

GLFWwindow* getWindow ( ) const
inline
var getWindow ( )
inline
local getWindow ( )
inline
Windows::UI::Core::CoreWindow
getWindow
( )
inline
var getWindow ( )
inline
local getWindow ( )
inline
void GLViewImpl::QueueEvent ( std::shared_ptr< InputEvent > &  event)
var QueueEvent ( var  event)
local QueueEvent ( local  event)
void GLViewImpl::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)
bool initGlew ( )
protected
var initGlew ( )
protected
local initGlew ( )
protected
bool initWithEAGLView ( void *  eaGLView)
protected
var initWithEAGLView ( var  eaGLView)
protected
local initWithEAGLView ( local  eaGLView)
protected
bool initWithFullScreen ( const std::string &  viewName)
protected
var initWithFullScreen ( var  viewName)
protected
local initWithFullScreen ( local  viewName)
protected
bool initWithFullScreen ( const std::string &  viewName)
protected
var initWithFullScreen ( var  viewName)
protected
local initWithFullScreen ( local  viewName)
protected
bool initWithFullScreen ( const std::string &  viewName)
protected
var initWithFullScreen ( var  viewName)
protected
local initWithFullScreen ( local  viewName)
protected
bool initWithFullscreen ( const std::string &  viewname,
const GLFWvidmode &  videoMode,
GLFWmonitor *  monitor 
)
protected
var initWithFullscreen ( var  viewname,
var  videoMode,
var  monitor 
)
protected
local initWithFullscreen ( local  viewname,
local  videoMode,
local  monitor 
)
protected
bool initWithFullScreen ( const std::string &  viewName)
protected
var initWithFullScreen ( var  viewName)
protected
local initWithFullScreen ( local  viewName)
protected
bool initWithFullScreen ( const std::string &  viewName)
protected
var initWithFullScreen ( var  viewName)
protected
local initWithFullScreen ( local  viewName)
protected
bool initWithRect ( const std::string &  viewName,
Rect  rect,
float  frameZoomFactor 
)
protected
var initWithRect ( var  viewName,
var  rect,
var  frameZoomFactor 
)
protected
local initWithRect ( local  viewName,
local  rect,
local  frameZoomFactor 
)
protected
bool initWithRect ( const std::string &  viewName,
Rect  rect,
float  frameZoomFactor 
)
protected
var initWithRect ( var  viewName,
var  rect,
var  frameZoomFactor 
)
protected
local initWithRect ( local  viewName,
local  rect,
local  frameZoomFactor 
)
protected
bool initWithRect ( const std::string &  viewName,
Rect  rect,
float  frameZoomFactor 
)
protected
var initWithRect ( var  viewName,
var  rect,
var  frameZoomFactor 
)
protected
local initWithRect ( local  viewName,
local  rect,
local  frameZoomFactor 
)
protected
bool initWithRect ( const std::string &  viewName,
Rect  rect,
float  frameZoomFactor 
)
protected
var initWithRect ( var  viewName,
var  rect,
var  frameZoomFactor 
)
protected
local initWithRect ( local  viewName,
local  rect,
local  frameZoomFactor 
)
protected
bool initWithRect ( const std::string &  viewName,
Rect  rect,
float  frameZoomFactor 
)
protected
var initWithRect ( var  viewName,
var  rect,
var  frameZoomFactor 
)
protected
local initWithRect ( local  viewName,
local  rect,
local  frameZoomFactor 
)
protected
bool isOpenGLReady ( )
overridevirtual

Get whether opengl render system is ready, subclass must implement this method.

Implements GLView.

var isOpenGLReady ( )
overridevirtual

Get whether opengl render system is ready, subclass must implement this method.

Implements GLView.

local isOpenGLReady ( )
overridevirtual

Get whether opengl render system is ready, subclass must implement this method.

Implements GLView.

virtual bool isOpenGLReady ( )
virtual

Get whether opengl render system is ready, subclass must implement this method.

Implements GLView.

var isOpenGLReady ( )
virtual

Get whether opengl render system is ready, subclass must implement this method.

Implements GLView.

local isOpenGLReady ( )
virtual

Get whether opengl render system is ready, subclass must implement this method.

Implements GLView.

virtual bool isOpenGLReady ( )
virtual

Get whether opengl render system is ready, subclass must implement this method.

Implements GLView.

var isOpenGLReady ( )
virtual

Get whether opengl render system is ready, subclass must implement this method.

Implements GLView.

local isOpenGLReady ( )
virtual

Get whether opengl render system is ready, subclass must implement this method.

Implements GLView.

virtual bool isOpenGLReady ( )
overridevirtual

Get whether opengl render system is ready, subclass must implement this method.

Implements GLView.

var isOpenGLReady ( )
overridevirtual

Get whether opengl render system is ready, subclass must implement this method.

Implements GLView.

local isOpenGLReady ( )
overridevirtual

Get whether opengl render system is ready, subclass must implement this method.

Implements GLView.

virtual bool isOpenGLReady ( )
overridevirtual

Get whether opengl render system is ready, subclass must implement this method.

Implements GLView.

var isOpenGLReady ( )
overridevirtual

Get whether opengl render system is ready, subclass must implement this method.

Implements GLView.

local isOpenGLReady ( )
overridevirtual

Get whether opengl render system is ready, subclass must implement this method.

Implements GLView.

virtual bool isOpenGLReady ( )
virtual

Get whether opengl render system is ready, subclass must implement this method.

Implements GLView.

var isOpenGLReady ( )
virtual

Get whether opengl render system is ready, subclass must implement this method.

Implements GLView.

local isOpenGLReady ( )
virtual

Get whether opengl render system is ready, subclass must implement this method.

Implements GLView.

bool isRetina ( )
inlineprotected
var isRetina ( )
inlineprotected
local isRetina ( )
inlineprotected
bool isRetina ( )
inlineprotected
var isRetina ( )
inlineprotected
local isRetina ( )
inlineprotected
bool isRetinaDisplay ( ) const
inlinevirtual

returns whether or not the view is in Retina Display mode

Reimplemented from GLView.

var isRetinaDisplay ( )
inlinevirtual

returns whether or not the view is in Retina Display mode

Reimplemented from GLView.

local isRetinaDisplay ( )
inlinevirtual

returns whether or not the view is in Retina Display mode

Reimplemented from GLView.

bool isRetinaEnabled ( ) const
inline

Check whether retina display is enabled.

var isRetinaEnabled ( )
inline

Check whether retina display is enabled.

local isRetinaEnabled ( )
inline

Check whether retina display is enabled.

void OnBackKeyPress ( )
var OnBackKeyPress ( )
local OnBackKeyPress ( )
void OnBackKeyPress ( )
var OnBackKeyPress ( )
local OnBackKeyPress ( )
void OnBackKeyPress ( )
var OnBackKeyPress ( )
local OnBackKeyPress ( )
void onGLFWCharCallback ( GLFWwindow *  window,
unsigned int  character 
)
protected
var onGLFWCharCallback ( var  window,
var  character 
)
protected
local onGLFWCharCallback ( local  window,
local  character 
)
protected
void onGLFWError ( int  errorID,
const char *  errorDesc 
)
protected
var onGLFWError ( var  errorID,
var  errorDesc 
)
protected
local onGLFWError ( local  errorID,
local  errorDesc 
)
protected
void onGLFWframebuffersize ( GLFWwindow *  window,
int  w,
int  h 
)
protected
var onGLFWframebuffersize ( var  window,
var  w,
var  h 
)
protected
local onGLFWframebuffersize ( local  window,
local  w,
local  h 
)
protected
void onGLFWKeyCallback ( GLFWwindow *  window,
int  key,
int  scancode,
int  action,
int  mods 
)
protected
var onGLFWKeyCallback ( var  window,
var  key,
var  scancode,
var  action,
var  mods 
)
protected
local onGLFWKeyCallback ( local  window,
local  key,
local  scancode,
local  action,
local  mods 
)
protected
void onGLFWMouseCallBack ( GLFWwindow *  window,
int  button,
int  action,
int  modify 
)
protected
var onGLFWMouseCallBack ( var  window,
var  button,
var  action,
var  modify 
)
protected
local onGLFWMouseCallBack ( local  window,
local  button,
local  action,
local  modify 
)
protected
void onGLFWMouseMoveCallBack ( GLFWwindow *  window,
double  x,
double  y 
)
protected
var onGLFWMouseMoveCallBack ( var  window,
var  x,
var  y 
)
protected
local onGLFWMouseMoveCallBack ( local  window,
local  x,
local  y 
)
protected
void onGLFWMouseScrollCallback ( GLFWwindow *  window,
double  x,
double  y 
)
protected
var onGLFWMouseScrollCallback ( var  window,
var  x,
var  y 
)
protected
local onGLFWMouseScrollCallback ( local  window,
local  x,
local  y 
)
protected
void onGLFWWindowIconifyCallback ( GLFWwindow *  window,
int  iconified 
)
protected
var onGLFWWindowIconifyCallback ( var  window,
var  iconified 
)
protected
local onGLFWWindowIconifyCallback ( local  window,
local  iconified 
)
protected
void onGLFWWindowPosCallback ( GLFWwindow *  windows,
int  x,
int  y 
)
protected
var onGLFWWindowPosCallback ( var  windows,
var  x,
var  y 
)
protected
local onGLFWWindowPosCallback ( local  windows,
local  x,
local  y 
)
protected
void onGLFWWindowSizeFunCallback ( GLFWwindow *  window,
int  width,
int  height 
)
protected
var onGLFWWindowSizeFunCallback ( var  window,
var  width,
var  height 
)
protected
local onGLFWWindowSizeFunCallback ( local  window,
local  width,
local  height 
)
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 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 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 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 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 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 ( 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 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 
)
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 ( )
virtual

Reimplemented from GLView.

var pollEvents ( )
virtual

Reimplemented from GLView.

local pollEvents ( )
virtual

Reimplemented from GLView.

void ProcessEvents ( )
var ProcessEvents ( )
local ProcessEvents ( )
void ProcessEvents ( )
var ProcessEvents ( )
local ProcessEvents ( )
void QueueBackKeyPress ( )
var QueueBackKeyPress ( )
local QueueBackKeyPress ( )
void QueueBackKeyPress ( )
var QueueBackKeyPress ( )
local QueueBackKeyPress ( )
void QueueEvent ( std::shared_ptr< InputEvent > &  event)
var QueueEvent ( var  event)
local QueueEvent ( local  event)
void QueuePointerEvent ( PointerEventType  type,
Windows::UI::Core::PointerEventArgs^  args 
)
var QueuePointerEvent ( var  type,
var  args 
)
local QueuePointerEvent ( local  type,
local  args 
)
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 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 
)
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 ( )
int Run ( )
var Run ( )
local Run ( )
bool setContentScaleFactor ( float  contentScaleFactor)
virtual

sets the content scale factor

Reimplemented from GLView.

var setContentScaleFactor ( var  contentScaleFactor)
virtual

sets the content scale factor

Reimplemented from GLView.

local setContentScaleFactor ( local  contentScaleFactor)
virtual

sets the content scale factor

Reimplemented from GLView.

void setDispatcher ( Windows::UI::Core::CoreDispatcher^  dispatcher)
var setDispatcher ( var  dispatcher)
local setDispatcher ( local  dispatcher)
void SetDPI ( float  dpi)
inline
var SetDPI ( var  dpi)
inline
local SetDPI ( local  dpi)
inline
virtual void setFrameSize ( float  width,
float  height 
)
overridevirtual

Set the frame size of EGL view.

Reimplemented from GLView.

var setFrameSize ( var  width,
var  height 
)
overridevirtual

Set the frame size of EGL view.

Reimplemented from GLView.

local setFrameSize ( local  width,
local  height 
)
overridevirtual

Set the frame size of EGL view.

Reimplemented from GLView.

virtual void setFrameSize ( float  width,
float  height 
)
virtual

Set the frame size of EGL view.

Reimplemented from GLView.

var setFrameSize ( var  width,
var  height 
)
virtual

Set the frame size of EGL view.

Reimplemented from GLView.

local setFrameSize ( local  width,
local  height 
)
virtual

Set the frame size of EGL view.

Reimplemented from GLView.

void setFrameZoomFactor ( float  zoomFactor)
virtual

Set and get zoom factor for frame.

This two methods are for debugging big resolution (e.g.new ipad) app on desktop.

Reimplemented from GLView.

var setFrameZoomFactor ( var  zoomFactor)
virtual

Set and get zoom factor for frame.

This two methods are for debugging big resolution (e.g.new ipad) app on desktop.

Reimplemented from GLView.

local setFrameZoomFactor ( local  zoomFactor)
virtual

Set and get zoom factor for frame.

This two methods are for debugging big resolution (e.g.new ipad) app on desktop.

Reimplemented from GLView.

void setFrameZoomFactor ( float  zoomFactor)
protectedvirtual

Set and get zoom factor for frame.

This two methods are for debugging big resolution (e.g.new ipad) app on desktop.

Reimplemented from GLView.

var setFrameZoomFactor ( var  zoomFactor)
protectedvirtual

Set and get zoom factor for frame.

This two methods are for debugging big resolution (e.g.new ipad) app on desktop.

Reimplemented from GLView.

local setFrameZoomFactor ( local  zoomFactor)
protectedvirtual

Set and get zoom factor for frame.

This two methods are for debugging big resolution (e.g.new ipad) app on desktop.

Reimplemented from GLView.

void setFrameZoomFactor ( float  zoomFactor)
protectedvirtual

Set and get zoom factor for frame.

This two methods are for debugging big resolution (e.g.new ipad) app on desktop.

Reimplemented from GLView.

var setFrameZoomFactor ( var  zoomFactor)
protectedvirtual

Set and get zoom factor for frame.

This two methods are for debugging big resolution (e.g.new ipad) app on desktop.

Reimplemented from GLView.

local setFrameZoomFactor ( local  zoomFactor)
protectedvirtual

Set and get zoom factor for frame.

This two methods are for debugging big resolution (e.g.new ipad) app on desktop.

Reimplemented from GLView.

void setFrameZoomFactor ( float  zoomFactor)
virtual

Set and get zoom factor for frame.

This two methods are for debugging big resolution (e.g.new ipad) app on desktop.

Reimplemented from GLView.

var setFrameZoomFactor ( var  zoomFactor)
virtual

Set and get zoom factor for frame.

This two methods are for debugging big resolution (e.g.new ipad) app on desktop.

Reimplemented from GLView.

local setFrameZoomFactor ( local  zoomFactor)
virtual

Set and get zoom factor for frame.

This two methods are for debugging big resolution (e.g.new ipad) app on desktop.

Reimplemented from GLView.

void setIMEKeyboardState ( bool  open)
overridevirtual

Open or close IME keyboard , subclass must implement this method.

Implements GLView.

var setIMEKeyboardState ( var  open)
overridevirtual

Open or close IME keyboard , subclass must implement this method.

Implements GLView.

local setIMEKeyboardState ( local  open)
overridevirtual

Open or close IME keyboard , subclass must implement this method.

Implements GLView.

virtual void setIMEKeyboardState ( bool  open)
virtual

Open or close IME keyboard , subclass must implement this method.

Implements GLView.

var setIMEKeyboardState ( var  open)
virtual

Open or close IME keyboard , subclass must implement this method.

Implements GLView.

local setIMEKeyboardState ( local  open)
virtual

Open or close IME keyboard , subclass must implement this method.

Implements GLView.

virtual void setIMEKeyboardState ( bool  bOpen,
std::string  str 
)
virtual

Implements GLView.

var setIMEKeyboardState ( var  bOpen,
var  str 
)
virtual

Implements GLView.

local setIMEKeyboardState ( local  bOpen,
local  str 
)
virtual

Implements GLView.

virtual void setIMEKeyboardState ( bool  open)
virtual

Open or close IME keyboard , subclass must implement this method.

Implements GLView.

var setIMEKeyboardState ( var  open)
virtual

Open or close IME keyboard , subclass must implement this method.

Implements GLView.

local setIMEKeyboardState ( local  open)
virtual

Open or close IME keyboard , subclass must implement this method.

Implements GLView.

virtual void setIMEKeyboardState ( bool  bOpen,
std::string  str 
)
virtual

Implements GLView.

var setIMEKeyboardState ( var  bOpen,
var  str 
)
virtual

Implements GLView.

local setIMEKeyboardState ( local  bOpen,
local  str 
)
virtual

Implements GLView.

virtual void setIMEKeyboardState ( bool  open)
overridevirtual

Open or close IME keyboard , subclass must implement this method.

Implements GLView.

var setIMEKeyboardState ( var  open)
overridevirtual

Open or close IME keyboard , subclass must implement this method.

Implements GLView.

local setIMEKeyboardState ( local  open)
overridevirtual

Open or close IME keyboard , subclass must implement this method.

Implements GLView.

virtual void setIMEKeyboardState ( bool  open)
overridevirtual

Open or close IME keyboard , subclass must implement this method.

Implements GLView.

var setIMEKeyboardState ( var  open)
overridevirtual

Open or close IME keyboard , subclass must implement this method.

Implements GLView.

local setIMEKeyboardState ( local  open)
overridevirtual

Open or close IME keyboard , subclass must implement this method.

Implements GLView.

virtual void setIMEKeyboardState ( bool  open)
virtual

Open or close IME keyboard , subclass must implement this method.

Implements GLView.

var setIMEKeyboardState ( var  open)
virtual

Open or close IME keyboard , subclass must implement this method.

Implements GLView.

local setIMEKeyboardState ( local  open)
virtual

Open or close IME keyboard , subclass must implement this method.

Implements GLView.

void setPanel ( Windows::UI::Xaml::Controls::Panel^  panel)
var setPanel ( var  panel)
local setPanel ( local  panel)
virtual void setScissorInPoints ( float  x,
float  y,
float  w,
float  h 
)
virtual

Set Scissor rectangle with points.

Reimplemented from GLView.

var setScissorInPoints ( var  x,
var  y,
var  w,
var  h 
)
virtual

Set Scissor rectangle with points.

Reimplemented from GLView.

local setScissorInPoints ( local  x,
local  y,
local  w,
local  h 
)
virtual

Set Scissor rectangle with points.

Reimplemented from GLView.

virtual void setScissorInPoints ( float  x,
float  y,
float  w,
float  h 
)
virtual

Set Scissor rectangle with points.

Reimplemented from GLView.

var setScissorInPoints ( var  x,
var  y,
var  w,
var  h 
)
virtual

Set Scissor rectangle with points.

Reimplemented from GLView.

local setScissorInPoints ( local  x,
local  y,
local  w,
local  h 
)
virtual

Set Scissor rectangle with points.

Reimplemented from GLView.

virtual void setScissorInPoints ( float  x,
float  y,
float  w,
float  h 
)
virtual

Set Scissor rectangle with points.

Reimplemented from GLView.

var setScissorInPoints ( var  x,
var  y,
var  w,
var  h 
)
virtual

Set Scissor rectangle with points.

Reimplemented from GLView.

local setScissorInPoints ( local  x,
local  y,
local  w,
local  h 
)
virtual

Set Scissor rectangle with points.

Reimplemented from GLView.

virtual void setViewPortInPoints ( float  x,
float  y,
float  w,
float  h 
)
virtual

Set opengl view port rectangle with points.

Reimplemented from GLView.

var setViewPortInPoints ( var  x,
var  y,
var  w,
var  h 
)
virtual

Set opengl view port rectangle with points.

Reimplemented from GLView.

local setViewPortInPoints ( local  x,
local  y,
local  w,
local  h 
)
virtual

Set opengl view port rectangle with points.

Reimplemented from GLView.

virtual void setViewPortInPoints ( float  x,
float  y,
float  w,
float  h 
)
virtual

Set opengl view port rectangle with points.

Reimplemented from GLView.

var setViewPortInPoints ( var  x,
var  y,
var  w,
var  h 
)
virtual

Set opengl view port rectangle with points.

Reimplemented from GLView.

local setViewPortInPoints ( local  x,
local  y,
local  w,
local  h 
)
virtual

Set opengl view port rectangle with points.

Reimplemented from GLView.

virtual void setViewPortInPoints ( float  x,
float  y,
float  w,
float  h 
)
virtual

Set opengl view port rectangle with points.

Reimplemented from GLView.

var setViewPortInPoints ( var  x,
var  y,
var  w,
var  h 
)
virtual

Set opengl view port rectangle with points.

Reimplemented from GLView.

local setViewPortInPoints ( local  x,
local  y,
local  w,
local  h 
)
virtual

Set opengl view port rectangle with points.

Reimplemented from GLView.

void SetXamlEditBoxDelegate ( Cocos2dEditBoxDelegate^  delegate)
inline
var SetXamlEditBoxDelegate ( var  delegate)
inline
local SetXamlEditBoxDelegate ( local  delegate)
inline
void SetXamlEventDelegate ( Cocos2dEventDelegate^  delegate)
inline
var SetXamlEventDelegate ( var  delegate)
inline
local SetXamlEventDelegate ( local  delegate)
inline
void SetXamlMessageBoxDelegate ( Cocos2dMessageBoxDelegate^  delegate)
inline
var SetXamlMessageBoxDelegate ( var  delegate)
inline
local SetXamlMessageBoxDelegate ( local  delegate)
inline
static GLViewImpl* sharedOpenGLView ( )
static

get the shared main open gl window

var sharedOpenGLView ( )
static

get the shared main open gl window

local sharedOpenGLView ( )
static

get the shared main open gl window

static GLViewImpl* sharedOpenGLView ( )
static

get the shared main open gl window

var sharedOpenGLView ( )
static

get the shared main open gl window

local sharedOpenGLView ( )
static

get the shared main open gl window

static GLViewImpl* sharedOpenGLView ( )
static

get the shared main open gl window

var sharedOpenGLView ( )
static

get the shared main open gl window

local sharedOpenGLView ( )
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 
)
bool ShowMessageBox ( Platform::String^  title,
Platform::String^  message 
)
var ShowMessageBox ( var  title,
var  message 
)
local ShowMessageBox ( local  title,
local  message 
)
Platform::String
stringToPlatformString
( std::string  strSrc)
var stringToPlatformString ( var  strSrc)
local stringToPlatformString ( local  strSrc)
void swapBuffers ( )
overridevirtual

Exchanges the front and back buffers, subclass must implement this method.

Implements GLView.

var swapBuffers ( )
overridevirtual

Exchanges the front and back buffers, subclass must implement this method.

Implements GLView.

local swapBuffers ( )
overridevirtual

Exchanges the front and back buffers, subclass must implement this method.

Implements GLView.

virtual void swapBuffers ( )
virtual

Exchanges the front and back buffers, subclass must implement this method.

Implements GLView.

var swapBuffers ( )
virtual

Exchanges the front and back buffers, subclass must implement this method.

Implements GLView.

local swapBuffers ( )
virtual

Exchanges the front and back buffers, subclass must implement this method.

Implements GLView.

virtual void swapBuffers ( )
virtual

Exchanges the front and back buffers, subclass must implement this method.

Implements GLView.

var swapBuffers ( )
virtual

Exchanges the front and back buffers, subclass must implement this method.

Implements GLView.

local swapBuffers ( )
virtual

Exchanges the front and back buffers, subclass must implement this method.

Implements GLView.

virtual void swapBuffers ( )
overridevirtual

Exchanges the front and back buffers, subclass must implement this method.

Implements GLView.

var swapBuffers ( )
overridevirtual

Exchanges the front and back buffers, subclass must implement this method.

Implements GLView.

local swapBuffers ( )
overridevirtual

Exchanges the front and back buffers, subclass must implement this method.

Implements GLView.

virtual void swapBuffers ( )
overridevirtual

Exchanges the front and back buffers, subclass must implement this method.

Implements GLView.

var swapBuffers ( )
overridevirtual

Exchanges the front and back buffers, subclass must implement this method.

Implements GLView.

local swapBuffers ( )
overridevirtual

Exchanges the front and back buffers, subclass must implement this method.

Implements GLView.

virtual void swapBuffers ( )
virtual

Exchanges the front and back buffers, subclass must implement this method.

Implements GLView.

var swapBuffers ( )
virtual

Exchanges the front and back buffers, subclass must implement this method.

Implements GLView.

local swapBuffers ( )
virtual

Exchanges the front and back buffers, subclass must implement this method.

Implements GLView.

virtual void UpdateDevice ( EGLDisplay  eglDisplay,
EGLContext  eglContext,
EGLSurface  eglSurface 
)
virtual
var UpdateDevice ( var  eglDisplay,
var  eglContext,
var  eglSurface 
)
virtual
local UpdateDevice ( local  eglDisplay,
local  eglContext,
local  eglSurface 
)
virtual
void UpdateForWindowSizeChange ( float  width,
float  height 
)
var UpdateForWindowSizeChange ( var  width,
var  height 
)
local UpdateForWindowSizeChange ( local  width,
local  height 
)
void UpdateForWindowSizeChange ( float  width,
float  height 
)
var UpdateForWindowSizeChange ( var  width,
var  height 
)
local UpdateForWindowSizeChange ( local  width,
local  height 
)
void UpdateForWindowSizeChange ( )
var UpdateForWindowSizeChange ( )
local UpdateForWindowSizeChange ( )
void updateFrameSize ( )
protected
var updateFrameSize ( )
protected
local updateFrameSize ( )
protected
void UpdateOrientation ( Windows::Graphics::Display::DisplayOrientations  orientation)
var UpdateOrientation ( var  orientation)
local UpdateOrientation ( local  orientation)
void UpdateOrientation ( Windows::Graphics::Display::DisplayOrientations  orientation)
var UpdateOrientation ( var  orientation)
local UpdateOrientation ( local  orientation)
bool windowShouldClose ( )
virtual

Reimplemented from GLView.

var windowShouldClose ( )
virtual

Reimplemented from GLView.

local windowShouldClose ( )
virtual

Reimplemented from GLView.

Friends And Related Function Documentation

friend class GLFWEventHandler
friend
var GLFWEventHandler
friend
local GLFWEventHandler
friend

Member Data Documentation

bool _captured
protected
var _captured
protected
local _captured
protected
int _depthFormat
static
var _depthFormat
static
local _depthFormat
static
void* _eaglview
protected
var _eaglview
protected
local _eaglview
protected
float _frameZoomFactor
protected
var _frameZoomFactor
protected
local _frameZoomFactor
protected
bool _isInRetinaMonitor
protected
var _isInRetinaMonitor
protected
local _isInRetinaMonitor
protected
bool _isRetina
protected
var _isRetina
protected
local _isRetina
protected
bool _isRetinaEnabled
protected
var _isRetinaEnabled
protected
local _isRetinaEnabled
protected
GLFWwindow* _mainWindow
protected
var _mainWindow
protected
local _mainWindow
protected
GLFWmonitor* _monitor
protected
var _monitor
protected
local _monitor
protected
float _mouseX
protected
var _mouseX
protected
local _mouseX
protected
float _mouseY
protected
var _mouseY
protected
local _mouseY
protected
void* _pixelFormat
static
var _pixelFormat
static
local _pixelFormat
static
int _retinaFactor
protected
var _retinaFactor
protected
local _retinaFactor
protected
bool _supportTouch
protected
var _supportTouch
protected
local _supportTouch
protected

The documentation for this class was generated from the following files: