¡@

Home 

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

iphone Programming Glossary: renderlinefrompoint

Erase using brush in GLPaint

http://stackoverflow.com/questions/4048811/erase-using-brush-in-glpaint

select an eraser button and erase the painted area just as painting. I am trying have a conditional statement within renderLineFromPoint CGPoint start toPoint CGPoint end method so that I could check whether the stroke is for painting or erasing. For erasing.. iphone share improve this question Along the same vein as Erase using brush in GLPaint you could reuse the void renderLineFromPoint CGPoint start toPoint CGPoint end method by having the condition if isEraserBrushType glBlendFunc GL_ONE GL_ZERO glColor4f..

Save OpenGL Drawn item as a Image

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

touch previousLocationInView self previousLocation.y bounds.size.height previousLocation.y Render the stroke self renderLineFromPoint previousLocation toPoint location Handles the end of a touch event when the touch is a tap. void touchesEnded NSSet touches.. NO previousLocation touch previousLocationInView self previousLocation.y bounds.size.height previousLocation.y self renderLineFromPoint previousLocation toPoint location Drawings a line onscreen based on where the user touches void renderLineFromPoint CGPoint.. renderLineFromPoint previousLocation toPoint location Drawings a line onscreen based on where the user touches void renderLineFromPoint CGPoint start toPoint CGPoint end static GLfloat vertexBuffer NULL static NSUInteger vertexMax 64 NSUInteger vertexCount..

Record the drawing as a m4v video file - OpenGL

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

touch previousLocationInView self previousLocation.y bounds.size.height previousLocation.y Render the stroke self renderLineFromPoint previousLocation toPoint location Handles the end of a touch event when the touch is a tap. void touchesEnded NSSet touches.. NO previousLocation touch previousLocationInView self previousLocation.y bounds.size.height previousLocation.y self renderLineFromPoint previousLocation toPoint location Drawings a line onscreen based on where the user touches void renderLineFromPoint CGPoint.. renderLineFromPoint previousLocation toPoint location Drawings a line onscreen based on where the user touches void renderLineFromPoint CGPoint start toPoint CGPoint end static GLfloat vertexBuffer NULL static NSUInteger vertexMax 64 NSUInteger vertexCount..