cocos2d-x  2.2.3
•All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCEGLView Class Reference

#include <CCEGLView.h>

Inheritance diagram for CCEGLView:
CCEGLViewProtocol CCEGLViewProtocol CCEGLViewProtocol CCEGLViewProtocol CCEGLViewProtocol CCEGLViewProtocol CCEGLViewProtocol CCEGLViewProtocol CCEGLViewProtocol CCEGLViewProtocol CCEGLViewProtocol CCEGLViewProtocol

Classes

class  EventHandler
 

Public Types

typedef void(* LPFN_ACCELEROMETER_KEYHOOK )(UINT message, WPARAM wParam, LPARAM lParam)

Public Member Functions

 CCEGLView ()
virtual ~CCEGLView ()
bool isOpenGLReady ()
 Get whether opengl render system is ready, subclass must implement this method. More...
 
void end ()
 Force destroying EGL view, subclass must implement this method. More...
 
void swapBuffers ()
 Exchanges the front and back buffers, subclass must implement this method. More...
 
void setIMEKeyboardState (bool bOpen)
 Open or close IME keyboard , subclass must implement this method. More...
 
 CCEGLView ()
virtual ~CCEGLView ()
bool isOpenGLReady ()
 Get whether opengl render system is ready, subclass must implement this method. More...
 
void setEventHandler (EventHandler *pHandler)
const char * getWindowGroupId () const
void end ()
 Force destroying EGL view, subclass must implement this method. More...
 
void swapBuffers ()
 Exchanges the front and back buffers, subclass must implement this method. More...
 
void setIMEKeyboardState (bool bOpen)
 Open or close IME keyboard , subclass must implement this method. More...
 
bool handleEvents ()
screen_display_t getScreenDisplay () const
 CCEGLView ()
virtual ~CCEGLView ()
bool isOpenGLReady ()
 Get whether opengl render system is ready, subclass must implement this method. More...
 
const char * getWindowGroupId () const
void end ()
 Force destroying EGL view, subclass must implement this method. More...
 
void swapBuffers ()
 Exchanges the front and back buffers, subclass must implement this method. More...
 
void setIMEKeyboardState (bool bOpen)
 Open or close IME keyboard , subclass must implement this method. More...
 
bool handleEvents ()
 CCEGLView ()
 ~CCEGLView ()
virtual bool isOpenGLReady ()
 Get whether opengl render system is ready, subclass must implement this method. More...
 
virtual bool setContentScaleFactor (float contentScaleFactor)
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 setIMEKeyboardState (bool bOpen)
 Open or close IME keyboard , subclass must implement this method. More...
 
 CCEGLView ()
virtual ~CCEGLView ()
virtual void setFrameSize (float width, float height)
 iPixelWidth, height: the window's size iWidth ,height: the point size, which may scale. More...
 
virtual void setViewPortInPoints (float x, float y, float w, float 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...
 
void setFrameZoomFactor (float fZoomFactor)
float getFrameZoomFactor ()
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 setIMEKeyboardState (bool bOpen)
 Open or close IME keyboard , subclass must implement this method. More...
 
virtual ~CCEGLView (void)
virtual bool isOpenGLReady (void)
 Get whether opengl render system is ready, subclass must implement this method. More...
 
virtual bool setContentScaleFactor (float contentScaleFactor)
virtual void end ()
 Force destroying EGL view, subclass must implement this method. More...
 
virtual void swapBuffers (void)
 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...
 
virtual void setScissorInPoints (float x, float y, float w, float h)
 Set Scissor rectangle with points. More...
 
virtual void setIMEKeyboardState (bool bOpen)
 Open or close IME keyboard , subclass must implement this method. More...
 
virtual void setMultiTouchMask (bool mask)
 CCEGLView ()
virtual ~CCEGLView ()
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 setIMEKeyboardState (bool bOpen)
 Open or close IME keyboard , subclass must implement this method. More...
 
 CCEGLView ()
virtual ~CCEGLView ()
virtual void setFrameSize (float width, float height)
 iPixelWidth, height: the window's size iWidth ,height: the point size, which may scale. More...
 
virtual void setViewPortInPoints (float x, float y, float w, float 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...
 
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 setIMEKeyboardState (bool bOpen)
 Open or close IME keyboard , subclass must implement this method. More...
 
void addEvent ()
void ProcessEventQueue ()
void AddEvent (const pp::InputEvent &event)
 CCEGLView ()
virtual ~CCEGLView ()
bool isOpenGLReady ()
 Get whether opengl render system is ready, subclass must implement this method. More...
 
Tizen::Base::Runtime::Timer * getTimer ()
void cleanup ()
void end ()
 Force destroying EGL view, subclass must implement this method. More...
 
void swapBuffers ()
 Exchanges the front and back buffers, subclass must implement this method. More...
 
void setIMEKeyboardState (bool bOpen)
 Open or close IME keyboard , subclass must implement this method. More...
 
virtual void OnTimerExpired (Tizen::Base::Runtime::Timer &timer)
 CCEGLView ()
virtual ~CCEGLView ()
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 setFrameSize (float width, float height)
 Set the frame size of EGL view. More...
 
virtual void setEditorFrameSize (float width, float height, HWND hWnd)
virtual void setIMEKeyboardState (bool bOpen)
 Open or close IME keyboard , subclass must implement this method. More...
 
void setMenuResource (LPCWSTR menu)
void setWndProc (CUSTOM_WND_PROC proc)
bool initGL ()
void destroyGL ()
virtual LRESULT WindowProc (UINT message, WPARAM wParam, LPARAM lParam)
void setHWnd (HWND hWnd)
HWND getHWnd ()
virtual void resize (int width, int height)
void setFrameZoomFactor (float fZoomFactor)
float getFrameZoomFactor ()
virtual void centerWindow ()
void setAccelerometerKeyHook (LPFN_ACCELEROMETER_KEYHOOK lpfnAccelerometerKeyHook)
virtual void setViewPortInPoints (float x, float y, float w, float 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...
 
 CCEGLView ()
virtual ~CCEGLView ()
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 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...
 
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 ()
Windows::UI::Core::CoreWindow getWindow ()
int Run ()
void resize (int width, int height)
void setFrameZoomFactor (float fZoomFactor)
float getFrameZoomFactor ()
void centerWindow ()
 CCEGLView ()
virtual ~CCEGLView ()
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...
 
virtual void setScissorInPoints (float x, float y, float w, float h)
 Set Scissor rectangle with points. More...
 
kmMat4 * getOrientationMatrix ()
kmMat4 * getReverseOrientationMatrix ()
Windows::Graphics::Display::DisplayOrientations getDeviceOrientation ()
virtual void setIMEKeyboardState (bool 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)
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 OnOrientationChanged ()
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)
Windows::UI::Core::CoreWindow getWindow ()
int Run ()
void Render ()
void resize (int width, int height)
void setFrameZoomFactor (float fZoomFactor)
float getFrameZoomFactor ()
void centerWindow ()
void UpdateOrientation (Windows::Graphics::Display::DisplayOrientations orientation)
void UpdateForWindowSizeChange (float width, float height)
- Public Member Functions inherited from CCEGLViewProtocol
 CCEGLViewProtocol ()
virtual ~CCEGLViewProtocol ()
virtual const CCSizegetFrameSize () const
 Get the frame size of EGL view. More...
 
virtual CCSize getVisibleSize () const
 Get the visible area size of opengl viewport. More...
 
virtual CCPoint getVisibleOrigin () const
 Get the visible origin point of opengl viewport. More...
 
virtual void setDesignResolutionSize (float width, float height, ResolutionPolicy resolutionPolicy)
 Set the design resolution size. More...
 
virtual const CCSizegetDesignResolutionSize () const
 Get design resolution size. More...
 
virtual void setTouchDelegate (EGLTouchDelegate *pDelegate)
 Set touch delegate. More...
 
virtual bool isScissorEnabled ()
 Get whether GL_SCISSOR_TEST is enable. More...
 
virtual CCRect getScissorRect ()
 Get the current scissor rectangle. More...
 
virtual void setViewName (const char *pszViewName)
const char * getViewName ()
virtual void handleTouchesBegin (int num, int 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, int ids[], float xs[], float ys[])
virtual void handleTouchesEnd (int num, int ids[], float xs[], float ys[])
virtual void handleTouchesCancel (int num, int ids[], float xs[], float ys[])
const CCRectgetViewPortRect () const
 Get the opengl view port rectangle. More...
 
float getScaleX () const
 Get scale factor of the horizontal direction. More...
 
float getScaleY () const
 Get scale factor of the vertical direction. More...
 

Static Public Member Functions

static CCEGLViewsharedOpenGLView ()
 get the shared main open gl window More...
 
static CCEGLViewsharedOpenGLView ()
 get the shared main open gl window More...
 
static CCEGLViewsharedOpenGLView ()
 get the shared main open gl window More...
 
static CCEGLViewsharedOpenGLView ()
static CCEGLViewsharedOpenGLView ()
 get the shared main open gl window More...
 
static CCEGLViewsharedOpenGLView (void)
static CCEGLViewsharedOpenGLView ()
 get the shared main open gl window More...
 
static CCEGLViewsharedOpenGLView ()
 get the shared main open gl window More...
 
static CCEGLViewsharedOpenGLView ()
 get the shared main open gl window More...
 
static CCEGLViewsharedOpenGLView ()
 get the shared main open gl window More...
 
static CCEGLViewsharedOpenGLView ()
 get the shared main open gl window More...
 
static CCEGLViewsharedOpenGLView ()
 get the shared main open gl window More...
 

Static Public Attributes

static CocosPepperInstanceg_instance

Protected Member Functions

virtual bool Create ()

Protected Attributes

HWND m_hWnd
HDC m_hDC
HGLRC m_hRC
LPFN_ACCELEROMETER_KEYHOOK m_lpfnAccelerometerKeyHook
bool m_bSupportTouch
LPCWSTR m_menu
CUSTOM_WND_PROC m_wndproc
- Protected Attributes inherited from CCEGLViewProtocol
EGLTouchDelegatem_pDelegate
CCSize m_obScreenSize
CCSize m_obDesignResolutionSize
CCRect m_obViewPortRect
char m_szViewName [50]
float m_fScaleX
float m_fScaleY
ResolutionPolicy m_eResolutionPolicy

Static Protected Attributes

static CCEGLViews_pEglView

Friends

void keyEventHandle (int, int)
void mouseButtonEventHandle (int, int)
void mousePosEventHandle (int, int)
void charEventHandle (int, int)

Member Typedef Documentation

typedef void(*
LPFN_ACCELEROMETER_KEYHOOK)(UINT
message, WPARAM wParam, LPARAM
lParam)

Constructor & Destructor Documentation

CCEGLView ( )
virtual ~CCEGLView ( )
virtual
CCEGLView ( )
virtual ~CCEGLView ( )
virtual
CCEGLView ( )
virtual ~CCEGLView ( )
virtual
CCEGLView ( )
~CCEGLView ( )
CCEGLView ( )
virtual ~CCEGLView ( )
virtual
virtual ~CCEGLView ( void  )
virtual
CCEGLView ( )
virtual ~CCEGLView ( )
virtual
CCEGLView ( )
virtual ~CCEGLView ( )
virtual
CCEGLView ( )
virtual ~CCEGLView ( )
virtual
CCEGLView ( )
virtual ~CCEGLView ( )
virtual
CCEGLView ( )
virtual ~CCEGLView ( )
virtual
CCEGLView ( )
virtual ~CCEGLView ( )
virtual

Member Function Documentation

void addEvent ( )
void AddEvent ( const pp::InputEvent &  event)
virtual void centerWindow ( )
virtual
void centerWindow ( )
void centerWindow ( )
void cleanup ( )
virtual bool Create ( )
protectedvirtual
virtual bool Create ( Windows::UI::Core::CoreWindow^  window)
virtual
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
void destroyGL ( )
void end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements CCEGLViewProtocol.

virtual void end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements CCEGLViewProtocol.

virtual void end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements CCEGLViewProtocol.

virtual void end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements CCEGLViewProtocol.

virtual void end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements CCEGLViewProtocol.

void end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements CCEGLViewProtocol.

virtual void end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements CCEGLViewProtocol.

void end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements CCEGLViewProtocol.

void end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements CCEGLViewProtocol.

virtual void end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements CCEGLViewProtocol.

virtual void end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements CCEGLViewProtocol.

virtual void end ( )
virtual

Force destroying EGL view, subclass must implement this method.

Implements CCEGLViewProtocol.

Windows::Graphics::Display::DisplayOrientations
getDeviceOrientation
( )
inline
float getFrameZoomFactor ( )
float getFrameZoomFactor ( )
float getFrameZoomFactor ( )
float getFrameZoomFactor ( )
HWND getHWnd ( )
kmMat4* getOrientationMatrix ( )
inline
kmMat4* getReverseOrientationMatrix ( )
inline
screen_display_t getScreenDisplay ( ) const
Tizen::Base::Runtime::Timer*
getTimer
( )
Windows::UI::Core::CoreWindow
getWindow
( )
inline
Windows::UI::Core::CoreWindow
getWindow
( )
inline
const char* getWindowGroupId ( ) const
const char* getWindowGroupId ( ) const
bool handleEvents ( )
bool handleEvents ( )
void HideKeyboard ( Windows::Foundation::Rect  r)
void HideKeyboard ( Windows::Foundation::Rect  r)
bool initGL ( )
bool isOpenGLReady ( )
virtual

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

Implements CCEGLViewProtocol.

virtual bool isOpenGLReady ( )
virtual

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

Implements CCEGLViewProtocol.

virtual bool isOpenGLReady ( )
virtual

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

Implements CCEGLViewProtocol.

bool isOpenGLReady ( )
virtual

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

Implements CCEGLViewProtocol.

virtual bool isOpenGLReady ( )
virtual

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

Implements CCEGLViewProtocol.

bool isOpenGLReady ( )
virtual

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

Implements CCEGLViewProtocol.

virtual bool isOpenGLReady ( void  )
virtual

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

Implements CCEGLViewProtocol.

virtual bool isOpenGLReady ( )
virtual

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

Implements CCEGLViewProtocol.

bool isOpenGLReady ( )
virtual

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

Implements CCEGLViewProtocol.

virtual bool isOpenGLReady ( )
virtual

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

Implements CCEGLViewProtocol.

virtual bool isOpenGLReady ( )
virtual

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

Implements CCEGLViewProtocol.

virtual bool isOpenGLReady ( )
virtual

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

Implements CCEGLViewProtocol.

void OnOrientationChanged ( )
void OnPointerMoved ( Windows::UI::Core::PointerEventArgs^  args)
void OnPointerMoved ( Windows::UI::Core::CoreWindow^  ,
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 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 ( )
virtual void OnTimerExpired ( Tizen::Base::Runtime::Timer &  timer)
virtual
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 ProcessEventQueue ( )
void Render ( )
virtual void resize ( int  width,
int  height 
)
virtual
void resize ( int  width,
int  height 
)
void resize ( int  width,
int  height 
)
int Run ( )
int Run ( )
void setAccelerometerKeyHook ( LPFN_ACCELEROMETER_KEYHOOK  lpfnAccelerometerKeyHook)
virtual bool setContentScaleFactor ( float  contentScaleFactor)
virtual
virtual bool setContentScaleFactor ( float  contentScaleFactor)
virtual
virtual void setEditorFrameSize ( float  width,
float  height,
HWND  hWnd 
)
virtual
void setEventHandler ( EventHandler pHandler)
virtual void setFrameSize ( float  width,
float  height 
)
virtual

iPixelWidth, height: the window's size iWidth ,height: the point size, which may scale.

iDepth is not the buffer depth of opengl, it indicate how may bits for a pixel

Reimplemented from CCEGLViewProtocol.

virtual void setFrameSize ( float  width,
float  height 
)
virtual

Set the frame size of EGL view.

Reimplemented from CCEGLViewProtocol.

virtual void setFrameSize ( float  width,
float  height 
)
virtual

iPixelWidth, height: the window's size iWidth ,height: the point size, which may scale.

iDepth is not the buffer depth of opengl, it indicate how may bits for a pixel

Reimplemented from CCEGLViewProtocol.

virtual void setFrameSize ( float  width,
float  height 
)
virtual

Set the frame size of EGL view.

Reimplemented from CCEGLViewProtocol.

void setFrameZoomFactor ( float  fZoomFactor)
void setFrameZoomFactor ( float  fZoomFactor)
void setFrameZoomFactor ( float  fZoomFactor)
void setFrameZoomFactor ( float  fZoomFactor)
void setHWnd ( HWND  hWnd)
void setIMEKeyboardState ( bool  bOpen)
virtual

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

Implements CCEGLViewProtocol.

virtual void setIMEKeyboardState ( bool  bOpen)
virtual

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

Implements CCEGLViewProtocol.

virtual void setIMEKeyboardState ( bool  bOpen)
virtual

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

Implements CCEGLViewProtocol.

virtual void setIMEKeyboardState ( bool  bOpen)
virtual

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

Implements CCEGLViewProtocol.

void setIMEKeyboardState ( bool  bOpen)
virtual

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

Implements CCEGLViewProtocol.

void setIMEKeyboardState ( bool  bOpen)
virtual

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

Implements CCEGLViewProtocol.

virtual void setIMEKeyboardState ( bool  bOpen)
virtual

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

Implements CCEGLViewProtocol.

virtual void setIMEKeyboardState ( bool  bOpen)
virtual

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

Implements CCEGLViewProtocol.

void setIMEKeyboardState ( bool  bOpen)
virtual

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

Implements CCEGLViewProtocol.

virtual void setIMEKeyboardState ( bool  bOpen)
virtual

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

Implements CCEGLViewProtocol.

virtual void setIMEKeyboardState ( bool  bOpen)
virtual

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

Implements CCEGLViewProtocol.

virtual void setIMEKeyboardState ( bool  bOpen)
virtual

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

Implements CCEGLViewProtocol.

void setMenuResource ( LPCWSTR  menu)
virtual void setMultiTouchMask ( bool  mask)
virtual
virtual void setScissorInPoints ( float  x,
float  y,
float  w,
float  h 
)
virtual

Set Scissor rectangle with points.

Reimplemented from CCEGLViewProtocol.

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

Set Scissor rectangle with points.

Reimplemented from CCEGLViewProtocol.

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

Set Scissor rectangle with points.

Reimplemented from CCEGLViewProtocol.

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

Set Scissor rectangle with points.

Reimplemented from CCEGLViewProtocol.

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

Set Scissor rectangle with points.

Reimplemented from CCEGLViewProtocol.

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

Set opengl view port rectangle with points.

Reimplemented from CCEGLViewProtocol.

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

Set opengl view port rectangle with points.

Reimplemented from CCEGLViewProtocol.

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

Set opengl view port rectangle with points.

Reimplemented from CCEGLViewProtocol.

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

Set opengl view port rectangle with points.

Reimplemented from CCEGLViewProtocol.

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

Set opengl view port rectangle with points.

Reimplemented from CCEGLViewProtocol.

void setWndProc ( CUSTOM_WND_PROC  proc)
void SetXamlEditBoxDelegate ( PhoneDirect3DXamlAppComponent::Cocos2dEditBoxDelegate^  delegate)
inline
void SetXamlEventDelegate ( PhoneDirect3DXamlAppComponent::Cocos2dEventDelegate^  delegate)
inline
void SetXamlMessageBoxDelegate ( PhoneDirect3DXamlAppComponent::Cocos2dMessageBoxDelegate^  delegate)
inline
static CCEGLView* sharedOpenGLView ( void  )
static
static CCEGLView* sharedOpenGLView ( )
static

get the shared main open gl window

static CCEGLView* sharedOpenGLView ( )
static
static CCEGLView* sharedOpenGLView ( )
static

get the shared main open gl window

static CCEGLView* sharedOpenGLView ( )
static

get the shared main open gl window

static CCEGLView* sharedOpenGLView ( )
static

get the shared main open gl window

static CCEGLView* sharedOpenGLView ( )
static

get the shared main open gl window

static CCEGLView* sharedOpenGLView ( )
static

get the shared main open gl window

static CCEGLView* sharedOpenGLView ( )
static

get the shared main open gl window

static CCEGLView* sharedOpenGLView ( )
static

get the shared main open gl window

static CCEGLView* sharedOpenGLView ( )
static

get the shared main open gl window

static CCEGLView* 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 ( )
virtual

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

Implements CCEGLViewProtocol.

virtual void swapBuffers ( )
virtual

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

Implements CCEGLViewProtocol.

virtual void swapBuffers ( )
virtual

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

Implements CCEGLViewProtocol.

virtual void swapBuffers ( )
virtual

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

Implements CCEGLViewProtocol.

virtual void swapBuffers ( void  )
virtual

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

Implements CCEGLViewProtocol.

virtual void swapBuffers ( )
virtual

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

Implements CCEGLViewProtocol.

void swapBuffers ( )
virtual

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

Implements CCEGLViewProtocol.

void swapBuffers ( )
virtual

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

Implements CCEGLViewProtocol.

void swapBuffers ( )
virtual

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

Implements CCEGLViewProtocol.

virtual void swapBuffers ( )
virtual

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

Implements CCEGLViewProtocol.

virtual void swapBuffers ( )
virtual

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

Implements CCEGLViewProtocol.

virtual void swapBuffers ( )
virtual

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

Implements CCEGLViewProtocol.

virtual void UpdateDevice ( EGLDisplay  eglDisplay,
EGLContext  eglContext,
EGLSurface  eglSurface 
)
virtual
void UpdateForWindowSizeChange ( )
void UpdateForWindowSizeChange ( float  width,
float  height 
)
void UpdateOrientation ( Windows::Graphics::Display::DisplayOrientations  orientation)
virtual LRESULT WindowProc ( UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)
virtual

Friends And Related Function Documentation

void charEventHandle ( int  ,
int   
)
friend
void keyEventHandle ( int  ,
int   
)
friend
void mouseButtonEventHandle ( int  ,
int   
)
friend
void mousePosEventHandle ( int  ,
int   
)
friend

Member Data Documentation

CocosPepperInstance* g_instance
static
bool m_bSupportTouch
protected
HDC m_hDC
protected
HGLRC m_hRC
protected
HWND m_hWnd
protected
LPFN_ACCELEROMETER_KEYHOOK
m_lpfnAccelerometerKeyHook
protected
LPCWSTR m_menu
protected
CUSTOM_WND_PROC m_wndproc
protected
CCEGLView* s_pEglView
staticprotected

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