¡@

Home 

2014/10/15 ¤U¤È 10:15:50

iphone Programming Glossary: viewframebuffer

How make a game loop on the iPhone without using NSTimer

http://stackoverflow.com/questions/1351234/how-make-a-game-loop-on-the-iphone-without-using-nstimer

nil repeats YES where drawView would look something like void drawView glBindFramebufferOES GL_FRAMEBUFFER_OES viewFramebuffer mFooModel render glBindRenderbufferOES GL_RENDERBUFFER_OES viewRenderbuffer context presentRenderbuffer GL_RENDERBUFFER_OES..

OpenGL ES Simple Undo Last Drawing

http://stackoverflow.com/questions/2708055/opengl-es-simple-undo-last-drawing

draw by first preparing the frame buffer EAGLContext setCurrentContext context glBindFramebufferOES GL_FRAMEBUFFER_OES viewFramebuffer I then prepare the vertex array and draw this way glVertexPointer 2 GL_FLOAT 0 vertexBuffer glDrawArrays GL_POINTS 0 vertexCount..

OpenGL ES: Undo in a Pixel Painting App

http://stackoverflow.com/questions/6281789/opengl-es-undo-in-a-pixel-painting-app

addObject data save every draw point to a array if undo clear old buffer glBindFramebufferOES GL_FRAMEBUFFER_OES viewFramebuffer glClearColor 0.0 0.0 0.0 0.0 glClear GL_COLOR_BUFFER_BIT remove point from array for int i 0 i 50 i self.vertexBuffers removeLastObject..

Changing pen width according writing speed

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

64 NSUInteger vertexCount 0 count i EAGLContext setCurrentContext 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..

Undo drawing in Paint Application

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

64 NSUInteger vertexCount 0 count i EAGLContext setCurrentContext context 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..

Save OpenGL Drawn item as a Image

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

context OpenGL names for the renderbuffer and framebuffers used to render to this view GLuint viewRenderbuffer viewFramebuffer OpenGL name for the depth buffer that is attached to viewFramebuffer if it exists 0 if it does not exist GLuint depthRenderbuffer.. to render to this view GLuint viewRenderbuffer viewFramebuffer OpenGL name for the depth buffer that is attached to viewFramebuffer if it exists 0 if it does not exist GLuint depthRenderbuffer GLuint brushTexture CGPoint location CGPoint previousLocation.. 64 NSUInteger vertexCount 0 count i EAGLContext setCurrentContext 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..

Record the drawing as a m4v video file - OpenGL

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

context OpenGL names for the renderbuffer and framebuffers used to render to this view GLuint viewRenderbuffer viewFramebuffer OpenGL name for the depth buffer that is attached to viewFramebuffer if it exists 0 if it does not exist GLuint depthRenderbuffer.. to render to this view GLuint viewRenderbuffer viewFramebuffer OpenGL name for the depth buffer that is attached to viewFramebuffer if it exists 0 if it does not exist GLuint depthRenderbuffer GLuint brushTexture CGPoint location CGPoint previousLocation.. 64 NSUInteger vertexCount 0 count i EAGLContext setCurrentContext 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..