¡@

Home 

2014/10/15 ¤U¤È 10:09:44

iphone Programming Glossary: gl_color_buffer_bit

How to draw a line inside the fish movement (OpenGLES in iPhone)?

http://stackoverflow.com/questions/10499077/how-to-draw-a-line-inside-the-fish-movement-opengles-in-iphone

self.children addObject self.player void glkView GLKView view drawInRect CGRect rect glClearColor 1 1 1 1 glClear GL_COLOR_BUFFER_BIT glBlendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA glEnable GL_BLEND Condition satisfied to draw a line code given below otherwise.. GLKVector2Make actualVelocity 0 void glkView GLKView view drawInRect CGRect rect glClearColor 1 1 1 1 glClear GL_COLOR_BUFFER_BIT glBlendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA glEnable GL_BLEND Condition satisfied to draw a line code given below otherwise.. sprite update self.timeSinceLastUpdate void glkView GLKView view drawInRect CGRect rect glClearColor 1 1 1 1 glClear GL_COLOR_BUFFER_BIT glBlendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA glEnable GL_BLEND Condition satisfied to draw a line code given below otherwise..

Drawing into OpenGL ES framebuffer and getting UIImage from it on iPhone

http://stackoverflow.com/questions/10936157/drawing-into-opengl-es-framebuffer-and-getting-uiimage-from-it-on-iphone

setCurrentContext myContext glEnable GL_DEPTH_TEST clear color cyan glClearColor 0.0f 1.0f 1.0f 1.0f glClear GL_COLOR_BUFFER_BIT GL_DEPTH_BUFFER_BIT trying to draw some primitive red line float line 0.5f 0.5f 0.5f 0.5f glBindRenderbufferOES GL_RENDERBUFFER_OES..

How do I blend two textures with different co-ordinates in OpenGL ES 2.0 on iPhone?

http://stackoverflow.com/questions/12242443/how-do-i-blend-two-textures-with-different-co-ordinates-in-opengl-es-2-0-on-ipho

glVertexAttribPointer inputTextureCoordinate 2 GL_FLOAT 0 0 textureCoordinates glClearColor 0.0 0.0 0.0 0.0 glClear GL_COLOR_BUFFER_BIT glDrawArrays GL_TRIANGLE_STRIP 0 4 glBindRenderbuffer GL_RENDERBUFFER viewRenderbuffer context presentRenderbuffer GL_RENDERBUFFER..

OpenGL ES render to texture, then draw texture

http://stackoverflow.com/questions/1649222/opengl-es-render-to-texture-then-draw-texture

GL_FRAMEBUFFER_OES oldFBO Now if I simply draw my scene to the screen as usual it works fine glClear GL_COLOR_BUFFER_BIT GL_DEPTH_BUFFER_BIT draw some triangles complete with vertex normals contentDelegate draw self swapBuffers But if I render.. glGetIntegerv GL_FRAMEBUFFER_BINDING_OES oldFBO glBindFramebufferOES GL_FRAMEBUFFER_OES textureFrameBuffer glClear GL_COLOR_BUFFER_BIT GL_DEPTH_BUFFER_BIT draw some polygons contentDelegate draw glBindFramebufferOES GL_FRAMEBUFFER_OES oldFBO glClear GL_COLOR_BUFFER_BIT.. GL_DEPTH_BUFFER_BIT draw some polygons contentDelegate draw glBindFramebufferOES GL_FRAMEBUFFER_OES oldFBO glClear GL_COLOR_BUFFER_BIT GL_DEPTH_BUFFER_BIT glEnableClientState GL_TEXTURE_COORD_ARRAY glEnable GL_TEXTURE_2D glColor4f 1 1 1 1 texture drawInRect..

Draw to offscreen renderbuffer in OpenGL ES (iPhone)

http://stackoverflow.com/questions/1853551/draw-to-offscreen-renderbuffer-in-opengl-es-iphone

GL_TEXTURE_2D GL_TEXTURE_MAG_FILTER GL_LINEAR glClearColor 1.0 1.0 1.0 1.0 glViewport 0 0 512 512 glClear GL_COLOR_BUFFER_BIT setTargetToTexture function glBindFramebufferOES GL_FRAMEBUFFER_OES tbuffer glBindTexture GL_TEXTURE_2D allbrushes glViewport..

Can example “GLImageProcessing” work with multi filters

http://stackoverflow.com/questions/4375479/can-example-glimageprocessing-work-with-multi-filters

fbo glBindFramebufferOES GL_FRAMEBUFFER_OES resultFBO glViewport 0 0 result.wide result.s result.high result.t glClear GL_COLOR_BUFFER_BIT glDisable GL_BLEND process 1 adjust brightness float t 1.2 glVertexPointer 2 GL_FLOAT sizeof V2fT2f flipquad 0 .x glTexCoordPointer..

Displaying an EAGLView with transparent background on a UIImageView

http://stackoverflow.com/questions/5283670/displaying-an-eaglview-with-transparent-background-on-a-uiimageview

How can I crop an Image with mask and combine it with another image (background) on iPhone? (OpenGL ES 1.1 is preferred)

http://stackoverflow.com/questions/5299452/how-can-i-crop-an-image-with-mask-and-combine-it-with-another-image-background

Enable alpha blending. We'll learn more about this later glEnable GL_BLEND glEnable GL_TEXTURE_2D void draw glClear GL_COLOR_BUFFER_BIT GL_DEPTH_BUFFER_BIT glColor3f 1.0 1.0 1.0 renderMask renderTextures void reshape int width int height glViewport 0 0 width..

Use of VAO around VBO in Open ES iPhone app Causes EXC_BAD_ACCESS When Call to glDrawElements

http://stackoverflow.com/questions/6240863/use-of-vao-around-vbo-in-open-es-iphone-app-causes-exc-bad-access-when-call-to-g

and then use it like this void render CADisplayLink displayLink glClearColor 0 104.0 255.0 55.0 255.0 1.0 glClear GL_COLOR_BUFFER_BIT GL_DEPTH_BUFFER_BIT glViewport 0 0 backingWidth backingHeight directProgram use glBindVertexArrayOES directArrayObject glDisable..

OpenGL ES: Undo in a Pixel Painting App

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

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 render for NSData point in self.vertexBuffers..

iOS CVImageBuffer distorted from AVCaptureSessionDataOutput with AVCaptureSessionPresetPhoto

http://stackoverflow.com/questions/6540710/ios-cvimagebuffer-distorted-from-avcapturesessiondataoutput-with-avcapturesessio

0 int bufferHeight CVPixelBufferGetHeight cameraFrame int bufferWidth CVPixelBufferGetWidth cameraFrame glClear GL_COLOR_BUFFER_BIT glGenTextures 1 videoFrameTexture_ glBindTexture GL_TEXTURE_2D videoFrameTexture_ glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER..

Save OpenGL Drawn item as a Image

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

context Clear the buffer glBindFramebufferOES GL_FRAMEBUFFER_OES viewFramebuffer glClearColor 0.0 0.0 0.0 0.0 glClear GL_COLOR_BUFFER_BIT Display the buffer glBindRenderbufferOES GL_RENDERBUFFER_OES viewRenderbuffer context presentRenderbuffer GL_RENDERBUFFER_OES..

Record the drawing as a m4v video file - OpenGL

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

context Clear the buffer glBindFramebufferOES GL_FRAMEBUFFER_OES viewFramebuffer glClearColor 0.0 0.0 0.0 0.0 glClear GL_COLOR_BUFFER_BIT Display the buffer glBindRenderbufferOES GL_RENDERBUFFER_OES viewRenderbuffer context presentRenderbuffer GL_RENDERBUFFER_OES..

Draw a straight line using OpenGL ES in iPhone?

http://stackoverflow.com/questions/9736887/draw-a-straight-line-using-opengl-es-in-iphone

setCurrentContext self.context This method is calling multiple times.... glClearColor 0.65f 0.65f 0.65f 1.0f glClear GL_COLOR_BUFFER_BIT GL_DEPTH_BUFFER_BIT const GLfloat line 0.5f 0.5f point A 0.5f 0.5f point B glVertexPointer 2 GL_FLOAT 0 line glEnableClientState.. drawInRect function void glkView GLKView view drawInRect CGRect rect glClearColor 0.65f 0.65f 0.65f 1.0f glClear GL_COLOR_BUFFER_BIT GL_DEPTH_BUFFER_BIT Prepare the effect for rendering self.effect prepareToDraw const GLfloat line 1.0f 1.5f point A 1.5f..