![]() ![]() ![]() GlEnable GL_LINE_SMOOTH glLineWidth 2.0f glVertexPointer 2 GL_FLOAT 0 points glEnableClientState GL_VERTEX_ARRAY glDrawArrays GL_LINE_STRIP 0 num_points glDisableClientState GL_VERTEX_ARRAY It looks good in the iPhone simulator but on the iPhone. OpenGL ES iPhone - drawing anti aliased lines question In DrawingPrimitives.m change this in drawCricle glDrawArrays GL_LINE_STRIP 0 segs additionalSegment to glDrawArrays GL_TRIANGLE_FAN 0 segs additionalSegment You can read more about opengl primitives here http articles article.aspx.ĭrawing into OpenGL ES framebuffer and getting UIImage from it on iPhoneĭo this glEnableClientState GL_VERTEX_ARRAY glVertexPointer 2 GL_FLOAT 0 line glColor4f 1.0 0.0 0.0 1.0 glLineWidth 10 glDrawArrays GL_LINES 0 2 draw line with two points m圜ontext presentRenderbuffer GL_RENDERBUFFER_OES and this then I grab image from. Opengl es cocos2d iphone circle share improve this question In DrawingPrimitives.m change this in drawCricle glDrawArrays GL_LINE_STRIP 0 segs additionalSegment to glDrawArrays GL_TRIANGLE_FAN 0 segs additionalSegment You can read more about. How to draw a solid circle with cocos2d for iPhone Iphone Programming Glossary: gldrawarrays CubicPower-iphone Programming Glossary: gldrawarrays ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |