¡@

Home 

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

iphone Programming Glossary: self.children

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

alloc initWithFile @ bg.png effect self.effect self.player.position GLKVector2Make self.player.contentSize.width 460 self.children NSMutableArray array self.children addObject self.player void glkView GLKView view drawInRect CGRect rect glClearColor.. self.effect self.player.position GLKVector2Make self.player.contentSize.width 460 self.children NSMutableArray array self.children addObject self.player void glkView GLKView view drawInRect CGRect rect glClearColor 1 1 1 1 glClear GL_COLOR_BUFFER_BIT.. GL_FALSE can the data be scaled 2 4 NULL glDrawArrays GL_LINES 0 2 else SGGSprite is another class and self.children is mutable array. for SGGSprite sprite in self.children sprite render render method in SGGSprite class to draw a fish..