Merge pull request #7733 from huangshiwu/v3_glviewfix

CCGLView modefy
This commit is contained in:
minggo 2014-08-12 09:51:27 +08:00
commit bed1ccf0f3
1 changed files with 6 additions and 1 deletions

View File

@ -117,11 +117,16 @@ public:
*/ */
virtual void setFrameSize(float width, float height); virtual void setFrameSize(float width, float height);
/** Set and get zoom factor for frame. This two methods are for
debugging big resolution (e.g.new ipad) app on desktop.*/
virtual void setFrameZoomFactor(float zoomFactor) {}
virtual float getFrameZoomFactor() const { return 1.0; } virtual float getFrameZoomFactor() const { return 1.0; }
/** Get retina factor */ /** Get retina factor */
virtual int getRetinaFactor() const { return 1; } virtual int getRetinaFactor() const { return 1; }
/** only works on ios platform*/
virtual bool setContentScaleFactor(float scaleFactor) { return false; }
virtual float getContentScaleFactor() const { return 1.0; } virtual float getContentScaleFactor() const { return 1.0; }
/** returns whether or not the view is in Retina Display mode */ /** returns whether or not the view is in Retina Display mode */