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

Class that represent the OpenGL View. More...

#include <CCGLView.h>

Inheritance diagram for GLView:
Ref GLViewProtocol Ref GLViewProtocol Ref GLViewProtocol GLViewProtocol Ref GLViewProtocol Ref

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 Mat4getOrientationMatrix () const
var getOrientationMatrix ()
local getOrientationMatrix ()
const Mat4getReverseOrientationMatrix () 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...
 
Refautorelease ()
 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 SizegetFrameSize () 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 SizegetDesignResolutionSize () 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 RectgetViewPortRect () 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 GLViewcreate (const std::string &viewname)
static GLViewcreateWithRect (const std::string &viewName, Rect rect, float frameZoomFactor=1.0f)
static GLViewcreateWithFullScreen (const std::string &viewName)
var createWithFullScreen ( var viewName)
local createWithFullScreen ( local viewName)
static GLViewcreate (const std::string &viewName)
var create ( var viewName)
local create ( local viewName)
static GLViewcreateWithRect (const std::string &viewName, Rect size, float frameZoomFactor=1.0f)
static GLViewcreateWithFullScreen (const std::string &viewName)
static GLViewcreateWithFullScreen (const std::string &viewName, const GLFWvidmode &videoMode, GLFWmonitor *monitor)
static GLViewcreateWithEAGLView (void *eaglview)
 creates a GLView with a objective-c CCEAGLView instance More...
 
static GLViewcreate (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 GLViewcreateWithRect (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 GLViewcreateWithFullScreen (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 GLViewsharedOpenGLView ()
 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 GLViewcreate (const std::string &viewName)
static GLViewsharedOpenGLView ()
 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)

Protected Attributes

bool _captured
var _captured
local _captured
bool _supportTouch
var _supportTouch
local _supportTouch
bool _isInRetinaMonitor
var _isInRetinaMonitor
local _isInRetinaMonitor
bool _isRetinaEnabled
var _isRetinaEnabled
local _isRetinaEnabled
int _retinaFactor
var _retinaFactor
local _retinaFactor
float _frameZoomFactor
var _frameZoomFactor
local _frameZoomFactor
GLFWwindow * _mainWindow
var _mainWindow
local _mainWindow
GLFWmonitor * _monitor
var _monitor
local _monitor
float _mouseX
var _mouseX
local _mouseX
float _mouseY
var _mouseY
local _mouseY
void * _eaglview
local _eaglview
bool _isRetina
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 
- Protected Attributes inherited from GLViewProtocol
Size _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

Friends

class GLFWEventHandler

Detailed Description

Class that represent the OpenGL View.

Constructor & Destructor Documentation

GLView ( )
protected
var GLView ( )
protected
local GLView ( )
protected
virtual ~GLView ( )
protectedvirtual
var ~GLView ( )
protectedvirtual
local ~GLView ( )
protectedvirtual
GLView ( )
protected
var GLView ( )
protected
local GLView ( )
protected
virtual ~GLView ( )
protectedvirtual
var ~GLView ( )
protectedvirtual
local ~GLView ( )
protectedvirtual
GLView ( )
protected
var GLView ( )
protected
local GLView ( )
protected
virtual ~GLView ( )
protectedvirtual
var ~GLView ( )
protectedvirtual
local ~GLView ( )
protectedvirtual
GLView ( )
var GLView ( )
local GLView ( )
virtual ~GLView ( )
virtual
var ~GLView ( )
virtual
local ~GLView ( )
virtual
GLView ( )
protected
var GLView ( )
protected
local GLView ( )
protected
virtual ~GLView ( )
protectedvirtual
var ~GLView ( )
protectedvirtual
local ~GLView ( )
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 ( )
static GLView* create ( const std::string &  viewName)
static
var create ( var  viewName)
static
local create ( local  viewName)
static
static GLView* create ( const std::string &  viewname)
static
var create ( var  viewname)
static
local create ( local  viewname)
static
static GLView* create ( const std::string &  viewName)
static

creates a GLView with a title name in fullscreen mode

var create ( var  viewName)
static

creates a GLView with a title name in fullscreen mode

local create ( local  viewName)
static

creates a GLView with a title name in fullscreen mode

static GLView* create ( const std::string &  viewName)
static
var create ( var  viewName)
static
local create ( local  viewName)
static
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 GLView* createWithEAGLView ( void *  eaglview)
static

creates a GLView with a objective-c CCEAGLView instance

var createWithEAGLView ( var  eaglview)
static

creates a GLView with a objective-c CCEAGLView instance

local createWithEAGLView ( local  eaglview)
static

creates a GLView with a objective-c CCEAGLView instance

static GLView* createWithFullScreen ( const std::string &  viewName)
static
var createWithFullScreen ( var  viewName)
static
local createWithFullScreen ( local  viewName)
static
static GLView* 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 GLView* createWithFullScreen ( const std::string &  viewName)
static
var createWithFullScreen ( var  viewName)
static
local createWithFullScreen ( local  viewName)
static
static GLView* createWithFullScreen ( const std::string &  viewName)
static

creates a GLView with a name in fullscreen mode

var createWithFullScreen ( var  viewName)
static

creates a GLView with a name in fullscreen mode

local createWithFullScreen ( local  viewName)
static

creates a GLView with a name in fullscreen mode

static GLView* 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
static GLView* 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 GLView* createWithRect ( const std::string &  viewName,
Rect  rect,
float  frameZoomFactor = 1.0f 
)
static

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

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

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

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

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

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 GLViewProtocol.

var end ( )
overridevirtual

Force destroying EGL view, subclass must implement this method.

Implements GLViewProtocol.

local end ( )
overridevirtual

Force destroying EGL view, subclass must implement this method.

Implements GLViewProtocol.

virtual void end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements GLViewProtocol.

var end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements GLViewProtocol.

local end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements GLViewProtocol.

virtual void end ( )
overridevirtual

Force destroying EGL view, subclass must implement this method.

Implements GLViewProtocol.

var end ( )
overridevirtual

Force destroying EGL view, subclass must implement this method.

Implements GLViewProtocol.

local end ( )
overridevirtual

Force destroying EGL view, subclass must implement this method.

Implements GLViewProtocol.

virtual void end ( )
overridevirtual

Force destroying EGL view, subclass must implement this method.

Implements GLViewProtocol.

var end ( )
overridevirtual

Force destroying EGL view, subclass must implement this method.

Implements GLViewProtocol.

local end ( )
overridevirtual

Force destroying EGL view, subclass must implement this method.

Implements GLViewProtocol.

virtual void end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements GLViewProtocol.

var end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements GLViewProtocol.

local end ( )
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

Windows::Graphics::Display::DisplayOrientations
getDeviceOrientation
( )
inline
var getDeviceOrientation ( )
inline
local getDeviceOrientation ( )
inline
void* getEAGLView ( ) const
inline

returns the objective-c CCEAGLView instance

var getEAGLView ( )
inline

returns the objective-c CCEAGLView instance

local getEAGLView ( )
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 ( )
Size getRenerTargetSize ( ) const
inline
var getRenerTargetSize ( )
inline
local getRenerTargetSize ( )
inline
int getRetinaFactor ( ) const
inline

Get retina factor.

var getRetinaFactor ( )
inline

Get retina factor.

local getRetinaFactor ( )
inline

Get retina factor.

const Mat4&
getReverseOrientationMatrix
( ) const
inline
var getReverseOrientationMatrix ( )
inline
local getReverseOrientationMatrix ( )
inline
GLFWwindow* getWindow ( ) const
inline
var getWindow ( )
inline
local getWindow ( )
inline
Windows::UI::Core::CoreWindow
getWindow
( )
inline
var getWindow ( )
inline
local getWindow ( )
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)
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 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 GLViewProtocol.

var isOpenGLReady ( )
overridevirtual

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

Implements GLViewProtocol.

local isOpenGLReady ( )
overridevirtual

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

Implements GLViewProtocol.

virtual bool isOpenGLReady ( )
virtual

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

Implements GLViewProtocol.

var isOpenGLReady ( )
virtual

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

Implements GLViewProtocol.

local isOpenGLReady ( )
virtual

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

Implements GLViewProtocol.

virtual bool isOpenGLReady ( )
overridevirtual

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

Implements GLViewProtocol.

var isOpenGLReady ( )
overridevirtual

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

Implements GLViewProtocol.

local isOpenGLReady ( )
overridevirtual

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

Implements GLViewProtocol.

virtual bool isOpenGLReady ( )
overridevirtual

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

Implements GLViewProtocol.

var isOpenGLReady ( )
overridevirtual

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

Implements GLViewProtocol.

local isOpenGLReady ( )
overridevirtual

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

Implements GLViewProtocol.

virtual bool isOpenGLReady ( )
virtual

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

Implements GLViewProtocol.

var isOpenGLReady ( )
virtual

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

Implements GLViewProtocol.

local isOpenGLReady ( )
virtual

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

Implements GLViewProtocol.

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

returns whether or not the view is in Retina Display mode

var isRetinaDisplay ( )
inline

returns whether or not the view is in Retina Display mode

local isRetinaDisplay ( )
inline

returns whether or not the view is in Retina Display mode

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 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 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 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

virtual void setFrameSize ( float  width,
float  height 
)
overridevirtual

Set the frame size of EGL view.

Reimplemented from GLViewProtocol.

var setFrameSize ( var  width,
var  height 
)
overridevirtual

Set the frame size of EGL view.

Reimplemented from GLViewProtocol.

local setFrameSize ( local  width,
local  height 
)
overridevirtual

Set the frame size of EGL view.

Reimplemented from GLViewProtocol.

virtual void setFrameSize ( float  width,
float  height 
)
virtual

Set the frame size of EGL view.

Reimplemented from GLViewProtocol.

var setFrameSize ( var  width,
var  height 
)
virtual

Set the frame size of EGL view.

Reimplemented from GLViewProtocol.

local setFrameSize ( local  width,
local  height 
)
virtual

Set the frame size of EGL view.

Reimplemented from GLViewProtocol.

void setFrameZoomFactor ( float  zoomFactor)
var setFrameZoomFactor ( var  zoomFactor)
local setFrameZoomFactor ( local  zoomFactor)
void setFrameZoomFactor ( float  zoomFactor)
protected
var setFrameZoomFactor ( var  zoomFactor)
protected
local setFrameZoomFactor ( local  zoomFactor)
protected
void setFrameZoomFactor ( float  fZoomFactor)
var setFrameZoomFactor ( var  fZoomFactor)
local setFrameZoomFactor ( local  fZoomFactor)
void setIMEKeyboardState ( bool  open)
overridevirtual

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

Implements GLViewProtocol.

var setIMEKeyboardState ( var  open)
overridevirtual

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

Implements GLViewProtocol.

local setIMEKeyboardState ( local  open)
overridevirtual

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

Implements GLViewProtocol.

virtual void setIMEKeyboardState ( bool  open)
overridevirtual

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

Implements GLViewProtocol.

var setIMEKeyboardState ( var  open)
overridevirtual

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

Implements GLViewProtocol.

local setIMEKeyboardState ( local  open)
overridevirtual

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

Implements GLViewProtocol.

virtual void setIMEKeyboardState ( bool  open)
virtual

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

Implements GLViewProtocol.

var setIMEKeyboardState ( var  open)
virtual

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

Implements GLViewProtocol.

local setIMEKeyboardState ( local  open)
virtual

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

Implements GLViewProtocol.

virtual void setIMEKeyboardState ( bool  open)
overridevirtual

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

Implements GLViewProtocol.

var setIMEKeyboardState ( var  open)
overridevirtual

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

Implements GLViewProtocol.

local setIMEKeyboardState ( local  open)
overridevirtual

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

Implements GLViewProtocol.

virtual void setIMEKeyboardState ( bool  open)
virtual

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

Implements GLViewProtocol.

var setIMEKeyboardState ( var  open)
virtual

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

Implements GLViewProtocol.

local setIMEKeyboardState ( local  open)
virtual

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

Implements GLViewProtocol.

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

Set Scissor rectangle with points.

Reimplemented from GLViewProtocol.

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

Set Scissor rectangle with points.

Reimplemented from GLViewProtocol.

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

Set Scissor rectangle with points.

Reimplemented from GLViewProtocol.

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

Set Scissor rectangle with points.

Reimplemented from GLViewProtocol.

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

Set Scissor rectangle with points.

Reimplemented from GLViewProtocol.

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

Set Scissor rectangle with points.

Reimplemented from GLViewProtocol.

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

Set opengl view port rectangle with points.

Reimplemented from GLViewProtocol.

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

Set opengl view port rectangle with points.

Reimplemented from GLViewProtocol.

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

Set opengl view port rectangle with points.

Reimplemented from GLViewProtocol.

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

Set opengl view port rectangle with points.

Reimplemented from GLViewProtocol.

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

Set opengl view port rectangle with points.

Reimplemented from GLViewProtocol.

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

Set opengl view port rectangle with points.

Reimplemented from GLViewProtocol.

void SetXamlEditBoxDelegate ( PhoneDirect3DXamlAppComponent::Cocos2dEditBoxDelegate^  delegate)
inline
var SetXamlEditBoxDelegate ( var  delegate)
inline
local SetXamlEditBoxDelegate ( local  delegate)
inline
void SetXamlEventDelegate ( PhoneDirect3DXamlAppComponent::Cocos2dEventDelegate^  delegate)
inline
var SetXamlEventDelegate ( var  delegate)
inline
local SetXamlEventDelegate ( local  delegate)
inline
void SetXamlMessageBoxDelegate ( PhoneDirect3DXamlAppComponent::Cocos2dMessageBoxDelegate^  delegate)
inline
var SetXamlMessageBoxDelegate ( var  delegate)
inline
local SetXamlMessageBoxDelegate ( local  delegate)
inline
static GLView* 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 GLView* 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 
)
void swapBuffers ( )
overridevirtual

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

Implements GLViewProtocol.

var swapBuffers ( )
overridevirtual

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

Implements GLViewProtocol.

local swapBuffers ( )
overridevirtual

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

Implements GLViewProtocol.

virtual void swapBuffers ( )
virtual

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

Implements GLViewProtocol.

var swapBuffers ( )
virtual

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

Implements GLViewProtocol.

local swapBuffers ( )
virtual

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

Implements GLViewProtocol.

virtual void swapBuffers ( )
overridevirtual

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

Implements GLViewProtocol.

var swapBuffers ( )
overridevirtual

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

Implements GLViewProtocol.

local swapBuffers ( )
overridevirtual

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

Implements GLViewProtocol.

virtual void swapBuffers ( )
overridevirtual

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

Implements GLViewProtocol.

var swapBuffers ( )
overridevirtual

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

Implements GLViewProtocol.

local swapBuffers ( )
overridevirtual

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

Implements GLViewProtocol.

virtual void swapBuffers ( )
virtual

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

Implements GLViewProtocol.

var swapBuffers ( )
virtual

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

Implements GLViewProtocol.

local swapBuffers ( )
virtual

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

Implements GLViewProtocol.

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 ( )
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)
bool windowShouldClose ( )
var windowShouldClose ( )
local windowShouldClose ( )

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
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
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 file: