// // ActivityView.h // Wxl // // Created by wxl on 11-10-9. // Copyright 2011 hna. All rights reserved. // #import #import #import #import #import #import /* 这里可以自定义的各种配置 */ #define sizeRate 2.0 //大小 #define mySize CGSizeMake(37* sizeRate, 37* sizeRate) //内半径 #define INRADIUS 8.0* sizeRate //外半径 #define OUTRADIUS 17.0* sizeRate //线宽 #define LINEWIDTH 2.5 //转动动画颜色 0.9 0.6 0.3 #define BeginR 0.9 #define BeginG 0.6 #define BeginB 0.3 //背景动画颜色 1.0 1.0 1.0 #define EndR 0.9 #define EndG 0.9 #define EndB 0.9 /*------------------------------------------------*/ @interface ActivityView : UIView { @private // The pixel dimensions of the backbuffer GLint backingWidth; GLint backingHeight; EAGLContext *context; // OpenGL names for the renderbuffer and framebuffers used to render to this view GLuint viewRenderbuffer, viewFramebuffer; // OpenGL name for the depth buffer that is attached to viewFramebuffer, if it exists (0 if it does not exist) GLuint depthRenderbuffer; CADisplayLink * displayLink; NSInteger animationFrameInterval; GLfloat * allLineVertexs; GLfloat * allLineColors; BOOL isAnimationRunning; BOOL hidesWhenStopped; } @property BOOL hidesWhenStopped; -(void)startAnimating; -(void)stopAnimating; -(BOOL)isAnimating; @end