¡@

Home 

2014/10/15 ¤U¤È 10:13:48

iphone Programming Glossary: self.contentscalefactor

openGL ES retina support

http://stackoverflow.com/questions/4504614/opengl-es-retina-support

CALevelMeter class I've tried the following id initWithCoder NSCoder coder if self super initWithCoder coder CGFloat f self.contentScaleFactor if self respondsToSelector @selector contentScaleFactor self.contentScaleFactor UIScreen mainScreen scale f self.contentScaleFactor.. super initWithCoder coder CGFloat f self.contentScaleFactor if self respondsToSelector @selector contentScaleFactor self.contentScaleFactor UIScreen mainScreen scale f self.contentScaleFactor _showsPeaks YES _channelNumbers NSArray alloc initWithObjects NSNumber.. if self respondsToSelector @selector contentScaleFactor self.contentScaleFactor UIScreen mainScreen scale f self.contentScaleFactor _showsPeaks YES _channelNumbers NSArray alloc initWithObjects NSNumber numberWithInt 0 nil _vertical NO _useGL YES _meterTable..

Changing pen width according writing speed

http://stackoverflow.com/questions/6490057/changing-pen-width-according-writing-speed

context glBindFramebufferOES GL_FRAMEBUFFER_OES viewFramebuffer Convert locations from Points to Pixels CGFloat scale self.contentScaleFactor start.x scale start.y scale end.x scale end.y scale Allocate vertex array buffer if vertexBuffer NULL vertexBuffer malloc..

Undo drawing in Paint Application

http://stackoverflow.com/questions/6689600/undo-drawing-in-paint-application

glBindFramebufferOES GL_FRAMEBUFFER_OES viewFramebuffer Convert locations from Points to Pixels CGFloat scale 1.0 self.contentScaleFactor start.x scale start.y scale end.x scale end.y scale Allocate vertex array buffer if eraseBuffer NULL eraseBuffer malloc..

Save OpenGL Drawn item as a Image

http://stackoverflow.com/questions/9660723/save-opengl-drawn-item-as-a-image

context glBindFramebufferOES GL_FRAMEBUFFER_OES viewFramebuffer Convert locations from Points to Pixels CGFloat scale self.contentScaleFactor start.x scale start.y scale end.x scale end.y scale Allocate vertex array buffer if vertexBuffer NULL vertexBuffer malloc.. GL_UNSIGNED_BYTE brushData Release the image data it's no longer needed free brushData Set the view's scale factor self.contentScaleFactor 1.0 Setup OpenGL states glMatrixMode GL_PROJECTION CGRect frame self.bounds CGFloat scale self.contentScaleFactor Setup.. self.contentScaleFactor 1.0 Setup OpenGL states glMatrixMode GL_PROJECTION CGRect frame self.bounds CGFloat scale self.contentScaleFactor Setup the view port in Pixels glOrthof 0 frame.size.width scale 0 frame.size.height scale 1 1 glViewport 0 0 frame.size.width..

Record the drawing as a m4v video file - OpenGL

http://stackoverflow.com/questions/9661259/record-the-drawing-as-a-m4v-video-file-opengl

context glBindFramebufferOES GL_FRAMEBUFFER_OES viewFramebuffer Convert locations from Points to Pixels CGFloat scale self.contentScaleFactor start.x scale start.y scale end.x scale end.y scale Allocate vertex array buffer if vertexBuffer NULL vertexBuffer malloc.. GL_UNSIGNED_BYTE brushData Release the image data it's no longer needed free brushData Set the view's scale factor self.contentScaleFactor 1.0 Setup OpenGL states glMatrixMode GL_PROJECTION CGRect frame self.bounds CGFloat scale self.contentScaleFactor Setup.. self.contentScaleFactor 1.0 Setup OpenGL states glMatrixMode GL_PROJECTION CGRect frame self.bounds CGFloat scale self.contentScaleFactor Setup the view port in Pixels glOrthof 0 frame.size.width scale 0 frame.size.height scale 1 1 glViewport 0 0 frame.size.width..