cocos2d-x 3.0
- 首页 - 相关页面 - 模块 - 命名空间 - - 文件 -
Public 成员函数 - 图1 Public 成员函数 - 图2)
- 类列表 - 类索引 - 类继承关系 - 类成员

全部)) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义)))

Public 成员函数 | 静态 Public 成员函数 | Protected 成员函数 | Protected 属性 | 友元 | 所有成员列表

GLView类 参考

Class that represent the OpenGL View. 更多…

#include

类 GLView 继承关系图:

Public 成员函数 - 图3 Ref GLViewProtocol Ref GLViewProtocol Ref GLViewProtocol GLViewProtocol Ref GLViewProtocol Ref

## Public 成员函数
bool isOpenGLReady () override
获取OpenGL渲染系统是否就绪,子类必须实现这个方法 更多…
void end () override
强制销毁EGL视图,子类必须实现这个方法 更多…
void swapBuffers () override
交换前后缓冲区,子类必须实现这个方法 更多…
void setIMEKeyboardState (bool bOpen) override
开启或者关闭键盘,子类必须实现这个方法 更多…
float getFrameZoomFactor ()
virtual void setViewPortInPoints (float x, float y, float w, float h)
通过点来设置OpenGL视口的矩形。 更多…
virtual void setScissorInPoints (float x, float y, float w, float h)
通过点来设置裁剪矩形。 更多…
bool windowShouldClose ()
void pollEvents ()
GLFWwindow getWindow () const
virtual bool isOpenGLReady () override
获取OpenGL渲染系统是否就绪,子类必须实现这个方法 更多…
virtual void end () override
强制销毁EGL视图,子类必须实现这个方法 更多…
virtual void swapBuffers () override
交换前后缓冲区,子类必须实现这个方法 更多…
virtual void setFrameSize (float width, float height) override
设置EGL 视图的框架尺寸 更多…
virtual void setIMEKeyboardState (bool bOpen) override
开启或者关闭键盘,子类必须实现这个方法 更多…
void setFrameZoomFactor (float zoomFactor)
void enableRetina (bool enabled)
默认情况下Retina支持是不可用的 更多…
bool isRetinaEnabled ()
检查是否支持retina display 更多…
bool setContentScaleFactor (float contentScaleFactor)
sets the content scale factor 更多…
float getContentScaleFactor () const
returns the content scale factor 更多…
bool isRetinaDisplay () const
returns whether or not the view is in Retina Display mode 更多…
void getEAGLView () const
returns the objective-c CCEAGLView instance 更多…
virtual bool isOpenGLReady () override
获取OpenGL渲染系统是否就绪,子类必须实现这个方法 更多…
virtual void end () override
强制销毁EGL视图,子类必须实现这个方法 更多…
virtual void swapBuffers () override
交换前后缓冲区,子类必须实现这个方法 更多…
virtual void setIMEKeyboardState (bool bOpen) override
开启或者关闭键盘,子类必须实现这个方法 更多…
GLView ()
virtual ~GLView ()
virtual bool isOpenGLReady ()
获取OpenGL渲染系统是否就绪,子类必须实现这个方法 更多…
virtual void end ()
强制销毁EGL视图,子类必须实现这个方法 更多…
virtual void swapBuffers ()
交换前后缓冲区,子类必须实现这个方法 更多…
virtual void setFrameSize (float width, float height)
设置EGL 视图的框架尺寸 更多…
virtual void setIMEKeyboardState (bool bOpen)
开启或者关闭键盘,子类必须实现这个方法 更多…
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)
void UpdateForWindowSizeChange ()
void OnRendering ()
void OnSuspending ()
void GLView::QueueEvent (std::shared_ptr< InputEvent > &event)
void OnPointerPressed (Windows::UI::Core::PointerEventArgs^args)
void OnPointerMoved (Windows::UI::Core::PointerEventArgs^args)
void OnPointerReleased (Windows::UI::Core::PointerEventArgs^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)
void setFrameZoomFactor (float fZoomFactor)
float getFrameZoomFactor ()
void centerWindow ()
virtual bool isOpenGLReady ()
获取OpenGL渲染系统是否就绪,子类必须实现这个方法 更多…
virtual void end ()
强制销毁EGL视图,子类必须实现这个方法 更多…
virtual void swapBuffers ()
交换前后缓冲区,子类必须实现这个方法 更多…
virtual void setViewPortInPoints (float x, float y, float w, float h)
通过点来设置OpenGL视口的矩形。 更多…
virtual void setScissorInPoints (float x, float y, float w, float h)
通过点来设置裁剪矩形。 更多…
const Matrix & getOrientationMatrix () const
const Matrix & getReverseOrientationMatrix () const
Windows::Graphics::Display::DisplayOrientations getDeviceOrientation ()
virtual void setIMEKeyboardState (bool bOpen)
开启或者关闭键盘,子类必须实现这个方法 更多…
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)
virtual void UpdateDevice (EGLDisplay eglDisplay, EGLContext eglContext, EGLSurface eglSurface)
void OnPointerPressed (Windows::UI::Core::PointerEventArgs^args)
void OnPointerMoved (Windows::UI::Core::PointerEventArgs^args)
void OnPointerReleased (Windows::UI::Core::PointerEventArgs^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 GLView::QueueEvent (std::shared_ptr< InputEvent > &event)
void SetXamlEventDelegate (PhoneDirect3DXamlAppComponent::Cocos2dEventDelegate^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)
int Run ()
void Render ()
void resize (int width, int height)
float getFrameZoomFactor ()
void centerWindow ()
void UpdateOrientation (Windows::Graphics::Display::DisplayOrientations orientation)
void UpdateForWindowSizeChange (float width, float height)
void ProcessEvents ()
void AddPointerEvent (PointerEventType type, Windows::UI::Core::PointerEventArgs^args)
- Public 成员函数 继承自 Ref
void retain ()
保留所有权. 更多…
void release ()
立即释放所有权. 更多…
Ref * autorelease ()
自动释放所有权在不久的将来. 更多…
unsigned int getReferenceCount () const
返回Ref对象当前的引用计数. 更多…
virtual ~Ref ()
NA NA 更多…
- Public 成员函数 继承自 GLViewProtocol
GLViewProtocol ()
ctor 更多…
virtual ~GLViewProtocol ()
NA NA 更多…
virtual void pollInputEvents ()
轮询输入事件。如果平台没有提供事件回调函数,子类必须实现这个方法 更多…
virtual const Size & getFrameSize () const
获取EGL视图的框架尺寸 一般情况下,因为EGL视图是全屏视图,所以它会返回屏幕的尺寸 更多…
virtual Size getVisibleSize () const
Get the visible area size of opengl viewport. 更多…
virtual Vec2 getVisibleOrigin () const
获取OpenGL视口的可视原点 更多…
virtual Rect getVisibleRect () const
获取OpenGL视口的可视矩形 更多…
virtual void setDesignResolutionSize (float width, float height, ResolutionPolicy resolutionPolicy)
设置设计分辨率尺寸 更多…
virtual const Size & getDesignResolutionSize () const
获得设计分辨率的尺寸。 默认的分辨率尺寸和 'getFrameSize'一样。 更多…
virtual bool isScissorEnabled ()
获取GL_SCISSOR_TEST 是否可用 更多…
virtual Rect getScissorRect () const
获取当前的裁剪矩形。 更多…
virtual void setViewName (const std::string &viewname)
const std::string & getViewName () const
virtual void handleTouchesBegin (int num, intptr_t ids[], float xs[], float ys[])
通过默认的方式处理触摸事件; 如果你想自定义处理程序,可以重载下面的这些函数: 更多…
virtual void handleTouchesMove (int num, intptr_t ids[], float xs[], float ys[])
virtual void handleTouchesEnd (int num, intptr_t ids[], float xs[], float ys[])
virtual void handleTouchesCancel (int num, intptr_t ids[], float xs[], float ys[])
const Rect & getViewPortRect () const
获取OpenGL视口矩形。 更多…
float getScaleX () const
获取水平方向的缩放因子 更多…
float getScaleY () const
获取垂直方向的缩放因子 更多…
ResolutionPolicy getResolutionPolicy () const
返回当前的分辨率适配规则 更多…
## 静态 Public 成员函数
static GLView create (const std::string &viewname)
static GLView createWithRect (const std::string &viewName, Rect rect, float frameZoomFactor=1.0f)
static GLView createWithFullScreen (const std::string &viewName)
static GLView create (const std::string &viewName)
static GLView createWithRect (const std::string &viewName, Rect size, float frameZoomFactor=1.0f)
static GLView createWithFullScreen (const std::string &viewName)
static GLView createWithFullScreen (const std::string &viewName, const GLFWvidmode &videoMode, GLFWmonitor monitor)
static GLView createWithEAGLView (void eaglview)
creates a GLView with a objective-c CCEAGLView instance 更多…
static GLView create (const std::string &viewName)
creates a GLView with a title name in fullscreen mode 更多…
static GLView createWithRect (const std::string &viewName, Rect rect, float frameZoomFactor=1.0f)
creates a GLView with a title name, a rect and the zoom factor 更多…
static GLView createWithFullScreen (const std::string &viewName)
creates a GLView with a name in fullscreen mode 更多…
static GLView sharedOpenGLView ()
get the shared main open gl window 更多…
static GLView create (const std::string &viewName)
static GLView sharedOpenGLView ()
get the shared main open gl window 更多…
## Protected 成员函数
GLView ()
virtual ~GLView ()
bool initWithRect (const std::string &viewName, Rect rect, float frameZoomFactor)
bool initWithFullScreen (const std::string &viewName)
GLView ()
virtual ~GLView ()
bool initWithRect (const std::string &viewName, Rect rect, float frameZoomFactor)
bool initWithFullScreen (const std::string &viewName)
bool initWithFullscreen (const std::string &viewname, const GLFWvidmode &videoMode, GLFWmonitor monitor)
bool initGlew ()
void updateFrameSize ()
void onGLFWError (int errorID, const char errorDesc)
void onGLFWMouseCallBack (GLFWwindow window, int button, int action, int modify)
void onGLFWMouseMoveCallBack (GLFWwindow window, double x, double y)
void onGLFWMouseScrollCallback (GLFWwindow window, double x, double y)
void onGLFWKeyCallback (GLFWwindow window, int key, int scancode, int action, int mods)
void onGLFWCharCallback (GLFWwindow window, unsigned int character)
void onGLFWWindowPosCallback (GLFWwindow windows, int x, int y)
void onGLFWframebuffersize (GLFWwindow window, int w, int h)
void onGLFWWindowSizeFunCallback (GLFWwindow window, int width, int height)
GLView ()
virtual ~GLView ()
bool initWithEAGLView (void *eaglview)
bool initWithRect (const std::string &viewName, Rect rect, float frameZoomFactor)
bool initWithFullScreen (const std::string &viewName)
GLView ()
virtual ~GLView ()
bool initWithRect (const std::string &viewName, Rect rect, float frameZoomFactor)
bool initWithFullScreen (const std::string &viewName)
void setFrameZoomFactor (float zoomFactor)
bool isRetina ()
- Protected 成员函数 继承自 Ref
Ref ()
构造函数 更多…
- Protected 成员函数 继承自 GLViewProtocol
void updateDesignResolutionSize ()
void handleTouchesOfEndOrCancel (EventTouch::EventCode eventCode, int num, intptr_t ids[], float xs[], float ys[])
## Protected 属性
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 属性 继承自 Ref
unsigned int _referenceCount
引用计数 更多…
- Protected 属性 继承自 GLViewProtocol
Size _screenSize
Size _designResolutionSize
Rect _viewPortRect
std::string _viewName
float _scaleX
float _scaleY
ResolutionPolicy _resolutionPolicy
## 友元
class GLFWEventHandler

详细描述

Class that represent the OpenGL View.

构造及析构函数说明

GLView ( )

protected

virtual ~GLView ( )

protectedvirtual

GLView ( )

protected

virtual ~GLView ( )

protectedvirtual

GLView ( )

protected

virtual ~GLView ( )

protectedvirtual

GLView ( )

virtual ~GLView ( )

virtual

GLView ( )

protected

virtual ~GLView ( )

protectedvirtual

成员函数说明

void AddPointerEvent ( PointerEventType type,
Windows::UI::Core::PointerEventArgs^ args
)

void centerWindow ( )

void centerWindow ( )

static GLView* create ( const std::string & viewName)

static

static GLView* create ( const std::string & viewname)

static

static GLView* create ( const std::string & viewName)

static

creates a GLView with a title name in fullscreen mode

static GLView* create ( const std::string & viewName)

static

virtual bool Create ( EGLDisplay eglDisplay,
EGLContext eglContext,
EGLSurface eglSurface,
float width,
float height
)

virtual

virtual bool Create ( Windows::UI::Core::CoreWindow^ window,
Windows::UI::Xaml::Controls::SwapChainBackgroundPanel^ panel
)

virtual

static GLView createWithEAGLView ( void eaglview)

static

creates a GLView with a objective-c CCEAGLView instance

static GLView* createWithFullScreen ( const std::string & viewName)

static

static GLView createWithFullScreen ( const std::string & viewName,
const GLFWvidmode & videoMode,
GLFWmonitor monitor
)

static

static GLView* createWithFullScreen ( const std::string & viewName)

static

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

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

void enableRetina ( bool enabled)

默认情况下Retina支持是不可用的

  • 注解
  • 这个函数只能在Mac平台上使用.

void end ( )

overridevirtual

强制销毁EGL视图,子类必须实现这个方法

实现了 GLViewProtocol.

virtual void end ( )

virtual

强制销毁EGL视图,子类必须实现这个方法

实现了 GLViewProtocol.

virtual void end ( )

overridevirtual

强制销毁EGL视图,子类必须实现这个方法

实现了 GLViewProtocol.

virtual void end ( )

overridevirtual

强制销毁EGL视图,子类必须实现这个方法

实现了 GLViewProtocol.

virtual void end ( )

virtual

强制销毁EGL视图,子类必须实现这个方法

实现了 GLViewProtocol.

float getContentScaleFactor ( ) const

returns the content scale factor

Windows::Graphics::Display::DisplayOrientations getDeviceOrientation ( )

inline

void* getEAGLView ( ) const

inline

returns the objective-c CCEAGLView instance

float getFrameZoomFactor ( )

float getFrameZoomFactor ( )

float getFrameZoomFactor ( )

const Matrix& getOrientationMatrix ( ) const

const Matrix& getReverseOrientationMatrix ( ) const

inline

GLFWwindow* getWindow ( ) const

inline

Windows::UI::Core::CoreWindow getWindow ( )

inline

void GLView::QueueEvent ( std::shared_ptr< InputEvent > & event)

void GLView::QueueEvent ( std::shared_ptr< InputEvent > & event)

void HideKeyboard ( Windows::Foundation::Rect r)

void HideKeyboard ( Windows::Foundation::Rect r)

bool initGlew ( )

protected

bool initWithEAGLView ( void * eaglview)

protected

bool initWithFullScreen ( const std::string & viewName)

protected

bool initWithFullScreen ( const std::string & viewName)

protected

bool initWithFullScreen ( const std::string & viewName)

protected

bool initWithFullscreen ( const std::string & viewname,
const GLFWvidmode & videoMode,
GLFWmonitor * monitor
)

protected

bool initWithFullScreen ( const std::string & viewName)

protected

bool initWithRect ( const std::string & viewName,
Rect rect,
float frameZoomFactor
)

protected

bool initWithRect ( const std::string & viewName,
Rect rect,
float frameZoomFactor
)

protected

bool initWithRect ( const std::string & viewName,
Rect rect,
float frameZoomFactor
)

protected

bool initWithRect ( const std::string & viewName,
Rect rect,
float frameZoomFactor
)

protected

bool isOpenGLReady ( )

overridevirtual

获取OpenGL渲染系统是否就绪,子类必须实现这个方法

实现了 GLViewProtocol.

virtual bool isOpenGLReady ( )

virtual

获取OpenGL渲染系统是否就绪,子类必须实现这个方法

实现了 GLViewProtocol.

virtual bool isOpenGLReady ( )

overridevirtual

获取OpenGL渲染系统是否就绪,子类必须实现这个方法

实现了 GLViewProtocol.

virtual bool isOpenGLReady ( )

overridevirtual

获取OpenGL渲染系统是否就绪,子类必须实现这个方法

实现了 GLViewProtocol.

virtual bool isOpenGLReady ( )

virtual

获取OpenGL渲染系统是否就绪,子类必须实现这个方法

实现了 GLViewProtocol.

bool isRetina ( )

inlineprotected

bool isRetinaDisplay ( ) const

inline

returns whether or not the view is in Retina Display mode

bool isRetinaEnabled ( )

inline

检查是否支持retina display

void OnBackKeyPress ( )

void OnBackKeyPress ( )

void onGLFWCharCallback ( GLFWwindow * window,
unsigned int character
)

protected

void onGLFWError ( int errorID,
const char * errorDesc
)

protected

void onGLFWframebuffersize ( GLFWwindow * window,
int w,
int h
)

protected

void onGLFWKeyCallback ( GLFWwindow * window,
int key,
int scancode,
int action,
int mods
)

protected

void onGLFWMouseCallBack ( GLFWwindow * window,
int button,
int action,
int modify
)

protected

void onGLFWMouseMoveCallBack ( GLFWwindow * window,
double x,
double y
)

protected

void onGLFWMouseScrollCallback ( GLFWwindow * window,
double x,
double y
)

protected

void onGLFWWindowPosCallback ( GLFWwindow * windows,
int x,
int y
)

protected

void onGLFWWindowSizeFunCallback ( GLFWwindow * window,
int width,
int height
)

protected

void OnPointerMoved ( Windows::UI::Core::PointerEventArgs^ args)

void OnPointerMoved ( Windows::UI::Core::CoreWindow^ ,
Windows::UI::Core::PointerEventArgs^ args
)

void OnPointerMoved ( Windows::UI::Core::PointerEventArgs^ args)

void OnPointerPressed ( Windows::UI::Core::PointerEventArgs^ args)

void OnPointerPressed ( Windows::UI::Core::CoreWindow^ sender,
Windows::UI::Core::PointerEventArgs^ args
)

void OnPointerPressed ( Windows::UI::Core::PointerEventArgs^ args)

void OnPointerPressed ( Windows::UI::Core::CoreWindow^ sender,
Windows::UI::Core::PointerEventArgs^ args
)

void OnPointerReleased ( Windows::UI::Core::PointerEventArgs^ args)

void OnPointerReleased ( Windows::UI::Core::CoreWindow^ sender,
Windows::UI::Core::PointerEventArgs^ args
)

void OnPointerReleased ( Windows::UI::Core::PointerEventArgs^ args)

void OnPointerWheelChanged ( Windows::UI::Core::CoreWindow^ ,
Windows::UI::Core::PointerEventArgs^ args
)

void OnRendering ( )

void OnResuming ( Platform::Object^ sender,
Platform::Object^ args
)

void OnSuspending ( Platform::Object^ sender,
Windows::ApplicationModel::SuspendingEventArgs^ args
)

void OnSuspending ( )

void OnVisibilityChanged ( Windows::UI::Core::CoreWindow^ sender,
Windows::UI::Core::VisibilityChangedEventArgs^ args
)

void OnWindowClosed ( Windows::UI::Core::CoreWindow^ sender,
Windows::UI::Core::CoreWindowEventArgs^ args
)

bool OpenXamlEditBox ( Platform::String^ strPlaceHolder,
Platform::String^ strText,
int maxLength,
int inputMode,
int inputFlag,
Windows::Foundation::EventHandler< Platform::String^>^ receiveHandler
)

void pollEvents ( )

void ProcessEvents ( )

void QueueBackKeyPress ( )

void QueuePointerEvent ( PointerEventType type,
Windows::UI::Core::PointerEventArgs^ args
)

void Render ( )

void resize ( int width,
int height
)

void resize ( int width,
int height
)

int Run ( )

int Run ( )

bool setContentScaleFactor ( float contentScaleFactor)

sets the content scale factor

virtual void setFrameSize ( float width,
float height
)

overridevirtual

设置EGL 视图的框架尺寸

重载 GLViewProtocol .

virtual void setFrameSize ( float width,
float height
)

virtual

设置EGL 视图的框架尺寸

重载 GLViewProtocol .

void setFrameZoomFactor ( float zoomFactor)

void setFrameZoomFactor ( float zoomFactor)

protected

void setFrameZoomFactor ( float fZoomFactor)

void setIMEKeyboardState ( bool open)

overridevirtual

开启或者关闭键盘,子类必须实现这个方法

实现了 GLViewProtocol.

virtual void setIMEKeyboardState ( bool open)

overridevirtual

开启或者关闭键盘,子类必须实现这个方法

实现了 GLViewProtocol.

virtual void setIMEKeyboardState ( bool open)

virtual

开启或者关闭键盘,子类必须实现这个方法

实现了 GLViewProtocol.

virtual void setIMEKeyboardState ( bool open)

overridevirtual

开启或者关闭键盘,子类必须实现这个方法

实现了 GLViewProtocol.

virtual void setIMEKeyboardState ( bool open)

virtual

开启或者关闭键盘,子类必须实现这个方法

实现了 GLViewProtocol.

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

virtual

通过点来设置裁剪矩形。

重载 GLViewProtocol .

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

virtual

通过点来设置裁剪矩形。

重载 GLViewProtocol .

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

virtual

通过点来设置OpenGL视口的矩形。

重载 GLViewProtocol .

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

virtual

通过点来设置OpenGL视口的矩形。

重载 GLViewProtocol .

void SetXamlEditBoxDelegate ( PhoneDirect3DXamlAppComponent::Cocos2dEditBoxDelegate^ delegate)

inline

void SetXamlEventDelegate ( PhoneDirect3DXamlAppComponent::Cocos2dEventDelegate^ delegate)

inline

void SetXamlMessageBoxDelegate ( PhoneDirect3DXamlAppComponent::Cocos2dMessageBoxDelegate^ delegate)

inline

static GLView* sharedOpenGLView ( )

static

get the shared main open gl window

static GLView* sharedOpenGLView ( )

static

get the shared main open gl window

void ShowKeyboard ( Windows::Foundation::Rect r)

void ShowKeyboard ( Windows::Foundation::Rect r)

bool ShowMessageBox ( Platform::String^ title,
Platform::String^ message
)

void swapBuffers ( )

overridevirtual

交换前后缓冲区,子类必须实现这个方法

实现了 GLViewProtocol.

virtual void swapBuffers ( )

virtual

交换前后缓冲区,子类必须实现这个方法

实现了 GLViewProtocol.

virtual void swapBuffers ( )

overridevirtual

交换前后缓冲区,子类必须实现这个方法

实现了 GLViewProtocol.

virtual void swapBuffers ( )

overridevirtual

交换前后缓冲区,子类必须实现这个方法

实现了 GLViewProtocol.

virtual void swapBuffers ( )

virtual

交换前后缓冲区,子类必须实现这个方法

实现了 GLViewProtocol.

virtual void UpdateDevice ( EGLDisplay eglDisplay,
EGLContext eglContext,
EGLSurface eglSurface
)

virtual

void UpdateForWindowSizeChange ( float width,
float height
)

void UpdateForWindowSizeChange ( )

void updateFrameSize ( )

protected

void UpdateOrientation ( Windows::Graphics::Display::DisplayOrientations orientation)

bool windowShouldClose ( )

友元及相关函数文档

friend class GLFWEventHandler

friend

类成员变量说明

bool _captured

protected

void* _eaglview

protected

float _frameZoomFactor

protected

bool _isInRetinaMonitor

protected

bool _isRetina

protected

bool _isRetinaEnabled

protected

GLFWwindow* _mainWindow

protected

GLFWmonitor* _monitor

protected

float _mouseX

protected

float _mouseY

protected

int _retinaFactor

protected

bool _supportTouch

protected


该类的文档由以下文件生成:

  • /Users/zeroyang/Documents/github/cocos2d-x/cocos/2d/platform/android/CCGLView.h
  • cocos2d
  • GLView
  • 生成于 2014年 五月 29日 星期四 09:41:46 , 为 cocos2d-x使用 doxygen 1.8.6