зеркало из https://github.com/microsoft/cocos2d-x.git
Tab -> 4 spaces, remove unused spaces for CCGLView.h
This commit is contained in:
Родитель
ae2f7a4a7d
Коммит
1cfd14f27d
|
@ -45,7 +45,7 @@ public:
|
|||
*/
|
||||
|
||||
//void resize(int width, int height);
|
||||
|
||||
|
||||
float getFrameZoomFactor();
|
||||
//void centerWindow();
|
||||
|
||||
|
@ -68,14 +68,14 @@ public:
|
|||
* Set zoom factor for frame. This method is for debugging big resolution (e.g.new ipad) app on desktop.
|
||||
*/
|
||||
void setFrameZoomFactor(float zoomFactor);
|
||||
|
||||
|
||||
/** Retina support is disabled by default
|
||||
* @note This method is only available on Mac.
|
||||
*/
|
||||
void enableRetina(bool enabled);
|
||||
/** Check whether retina display is enabled. */
|
||||
bool isRetinaEnabled() { return _isRetinaEnabled; };
|
||||
|
||||
|
||||
protected:
|
||||
GLView();
|
||||
virtual ~GLView();
|
||||
|
@ -86,7 +86,7 @@ protected:
|
|||
bool initGlew();
|
||||
|
||||
void updateFrameSize();
|
||||
|
||||
|
||||
// GLFW callbacks
|
||||
void onGLFWError(int errorID, const char* errorDesc);
|
||||
void onGLFWMouseCallBack(GLFWwindow* window, int button, int action, int modify);
|
||||
|
@ -96,16 +96,16 @@ protected:
|
|||
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);
|
||||
|
||||
void onGLFWWindowSizeFunCallback(GLFWwindow *window, int width, int height);
|
||||
|
||||
bool _captured;
|
||||
bool _supportTouch;
|
||||
bool _isInRetinaMonitor;
|
||||
bool _isRetinaEnabled;
|
||||
int _retinaFactor; // Should be 1 or 2
|
||||
|
||||
|
||||
float _frameZoomFactor;
|
||||
|
||||
|
||||
GLFWwindow* _mainWindow;
|
||||
GLFWmonitor* _primaryMonitor;
|
||||
|
||||
|
@ -113,11 +113,11 @@ protected:
|
|||
float _mouseY;
|
||||
|
||||
friend class GLFWEventHandler;
|
||||
|
||||
|
||||
private:
|
||||
CC_DISALLOW_COPY_AND_ASSIGN(GLView);
|
||||
};
|
||||
|
||||
NS_CC_END // end of namespace cocos2d
|
||||
|
||||
#endif // end of __CC_EGLVIEW_DESKTOP_H__
|
||||
#endif // end of __CC_EGLVIEW_DESKTOP_H__
|
||||
|
|
Загрузка…
Ссылка в новой задаче