¡@

Home 

2014/10/15 ¤U¤È 10:12:51

iphone Programming Glossary: preparetodraw

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.context view.drawableDepthFormat GLKViewDrawableDepthFormat24 self.effect GLKBaseEffect alloc init self.effect prepareToDraw const GLfloat line 0.0f 0.5f 3.0f 1.0f GLuint bufferObjectNameArray glGenBuffers 1 bufferObjectNameArray glBindBuffer.. self.effect.texture2d0.enabled YES self.effect.transform.modelviewMatrix self.modelMatrix self.effect prepareToDraw long offset long _quad glEnableVertexAttribArray GLKVertexAttribPosition glEnableVertexAttribArray GLKVertexAttribTexCoord0.. self.context view.drawableDepthFormat GLKViewDrawableDepthFormat24 self.effect GLKBaseEffect alloc init self.effect prepareToDraw const GLfloat line 0.0f 0.5f 3.0f 1.0f GLuint bufferObjectNameArray glGenBuffers 1 bufferObjectNameArray glBindBuffer GL_ARRAY_BUFFER..

Draw a straight line using OpenGL ES in iPhone?

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

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 1.0f point B Create an handle for a buffer object array GLuint bufferObjectNameArray..