GPUImageLineGenerator.h 674 B

123456789101112131415161718
  1. #import "GPUImageFilter.h"
  2. @interface GPUImageLineGenerator : GPUImageFilter
  3. {
  4. GLint lineWidthUniform, lineColorUniform;
  5. GLfloat *lineCoordinates;
  6. }
  7. // The width of the displayed lines, in pixels. The default is 1.
  8. @property(readwrite, nonatomic) CGFloat lineWidth;
  9. // The color of the lines is specified using individual red, green, and blue components (normalized to 1.0). The default is green: (0.0, 1.0, 0.0).
  10. - (void)setLineColorRed:(GLfloat)redComponent green:(GLfloat)greenComponent blue:(GLfloat)blueComponent;
  11. // Rendering
  12. - (void)renderLinesFromArray:(GLfloat *)lineSlopeAndIntercepts count:(NSUInteger)numberOfLines frameTime:(CMTime)frameTime;
  13. @end