cocos2d-x  3.0-rc0
 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:
GLViewProtocol Ref GLViewProtocol Ref GLViewProtocol Ref

Public Member Functions

bool isOpenGLReady () override
 Get whether opengl render system is ready, subclass must implement this method. More...
 
void end () override
 Force destroying EGL view, subclass must implement this method. More...
 
void swapBuffers () override
 Exchanges the front and back buffers, subclass must implement this method. More...
 
void setIMEKeyboardState (bool bOpen) override
 Open or close IME keyboard , subclass must implement this method. More...
 
local setIMEKeyboardState ( local bOpen)
 Open or close IME keyboard , subclass must implement this method. More...
 
float getFrameZoomFactor ()
virtual void setViewPortInPoints (float x, float y, float w, float h)
 Set opengl view port rectangle with points. More...
 
local setViewPortInPoints ( local x, local y, local w, local h)
 Set opengl view port rectangle with points. More...
 
virtual void setScissorInPoints (float x, float y, float w, float h)
 Set Scissor rectangle with points. More...
 
local setScissorInPoints ( local x, local y, local w, local h)
 Set Scissor rectangle with points. More...
 
bool windowShouldClose ()
void pollEvents ()
GLFWwindow * getWindow () const
local getWindow ()
virtual bool isOpenGLReady () override
 Get whether opengl render system is ready, subclass must implement this method. More...
 
local isOpenGLReady ()
 Get whether opengl render system is ready, subclass must implement this method. More...
 
virtual void end () override
 Force destroying EGL view, subclass must implement this method. More...
 
virtual void swapBuffers () override
 Exchanges the front and back buffers, subclass must implement this method. More...
 
virtual void setFrameSize (float width, float height) override
 Set the frame size of EGL view. More...
 
var setFrameSize ( var width, var height)
 Set the frame size of EGL view. More...
 
local setFrameSize ( local width, local height)
 Set the frame size of EGL view. More...
 
virtual void setIMEKeyboardState (bool bOpen) 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...
 
void setFrameZoomFactor (float zoomFactor)
void enableRetina (bool enabled)
 Retina support is disabled by default. More...
 
bool isRetinaEnabled ()
 Check whether retina display is enabled. More...
 
bool setContentScaleFactor (float contentScaleFactor)
 sets the content scale factor More...
 
float getContentScaleFactor () const
 returns the content scale factor More...
 
bool isRetinaDisplay () const
 returns whether or not the view is in Retina Display mode More...
 
void * getEAGLView () const
 returns the objective-c CCEAGLView instance More...
 
virtual bool isOpenGLReady () override
 Get whether opengl render system is ready, subclass must implement this method. More...
 
virtual void end () override
 Force destroying EGL view, subclass must implement this method. More...
 
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...
 
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...
 
- Public Member Functions inherited from GLViewProtocol
 GLViewProtocol ()
virtual ~GLViewProtocol ()
virtual void 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...
 
var getVisibleSize ()
 Get the visible area size of opengl viewport. More...
 
local getVisibleSize ()
 Get the visible area size of opengl viewport. More...
 
virtual Point 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...
 
virtual void setViewName (const std::string &viewname)
local setViewName ( local viewname)
const std::string & getViewName () const
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[])
local handleTouchesMove ( local num)
virtual void handleTouchesEnd (int num, int ids[], float xs[], float ys[])
virtual void handleTouchesCancel (int num, int ids[], float xs[], float ys[])
const RectgetViewPortRect () const
 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...
 
float getScaleY () const
 Get scale factor of the vertical direction. More...
 
ResolutionPolicy getResolutionPolicy () const
 returns the current Resolution policy More...
 
var getResolutionPolicy ()
 returns the current Resolution policy More...
 
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Release the ownership immediately. More...
 
Refautorelease ()
 Release the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()

Static Public Member Functions

static GLViewcreate (const std::string &viewname)
local create ( local viewname)
static GLViewcreateWithRect (const std::string &viewName, Rect rect, float frameZoomFactor=1.0f)
local createWithRect ( local viewName, local rect, local 0f)
static GLViewcreateWithFullScreen (const std::string &viewName)
local createWithFullScreen ( local viewName)
static GLViewcreate (const std::string &viewName)
static GLViewcreateWithRect (const std::string &viewName, Rect size, float frameZoomFactor=1.0f)
static GLViewcreateWithFullScreen (const std::string &viewName)
local createWithFullScreen ( local viewName)
static GLViewcreateWithEAGLView (void *eaglview)
 creates a GLView with a objective-c CCEAGLView instance More...
 
local createWithEAGLView ( local 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...
 

Protected Member Functions

 GLView ()
virtual ~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)
 GLView ()
virtual ~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)
bool initGlew ()
void updateFrameSize ()
void onGLFWError (int errorID, const char *errorDesc)
void onGLFWMouseCallBack (GLFWwindow *window, int button, int action, int modify)
var onGLFWMouseCallBack ( var window, var button, var action, var modify)
local onGLFWMouseCallBack ( local window, local button, local action, local modify)
void onGLFWMouseMoveCallBack (GLFWwindow *window, double x, double y)
local onGLFWMouseMoveCallBack ( local window, local x, local y)
void onGLFWMouseScrollCallback (GLFWwindow *window, double x, double y)
void onGLFWKeyCallback (GLFWwindow *window, int key, int scancode, int action, int mods)
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)
local initWithEAGLView ( local eaglview)
bool initWithRect (const std::string &viewName, Rect rect, float frameZoomFactor)
bool initWithFullScreen (const std::string &viewName)
- Protected Member Functions inherited from GLViewProtocol
void updateDesignResolutionSize ()
local updateDesignResolutionSize ()
void handleTouchesOfEndOrCancel (EventTouch::EventCode eventCode, int num, int ids[], float xs[], float ys[])
var handleTouchesOfEndOrCancel ( var eventCode, var num)
local handleTouchesOfEndOrCancel ( local eventCode, local num)
- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 

Protected Attributes

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

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

Member Function Documentation

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* 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)
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 ( )
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.

float getContentScaleFactor ( ) const

returns the content scale factor

var getContentScaleFactor ( )

returns the content scale factor

local getContentScaleFactor ( )

returns the content scale factor

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 ( )
GLFWwindow* getWindow ( ) const
inline
var getWindow ( )
inline
local getWindow ( )
inline
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 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 ( )
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.

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 ( )
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 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 pollEvents ( )
var pollEvents ( )
local pollEvents ( )
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.

void setFrameZoomFactor ( float  zoomFactor)
var setFrameZoomFactor ( var  zoomFactor)
local setFrameZoomFactor ( local  zoomFactor)
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)
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 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.

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 ( )
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.

void updateFrameSize ( )
protected
var updateFrameSize ( )
protected
local updateFrameSize ( )
protected
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
float _frameZoomFactor
protected
var _frameZoomFactor
protected
local _frameZoomFactor
protected
bool _isInRetinaMonitor
protected
var _isInRetinaMonitor
protected
local _isInRetinaMonitor
protected
bool _isRetinaEnabled
protected
var _isRetinaEnabled
protected
local _isRetinaEnabled
protected
GLFWwindow* _mainWindow
protected
var _mainWindow
protected
local _mainWindow
protected
float _mouseX
protected
var _mouseX
protected
local _mouseX
protected
float _mouseY
protected
var _mouseY
protected
local _mouseY
protected
GLFWmonitor* _primaryMonitor
protected
var _primaryMonitor
protected
local _primaryMonitor
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 files: