GPUImageCrosshairGenerator.h 734 B

1234567891011121314151617
  1. #import "GPUImageFilter.h"
  2. @interface GPUImageCrosshairGenerator : GPUImageFilter
  3. {
  4. GLint crosshairWidthUniform, crosshairColorUniform;
  5. }
  6. // The width of the displayed crosshairs, in pixels. Currently this only works well for odd widths. The default is 5.
  7. @property(readwrite, nonatomic) CGFloat crosshairWidth;
  8. // The color of the crosshairs is specified using individual red, green, and blue components (normalized to 1.0). The default is green: (0.0, 1.0, 0.0).
  9. - (void)setCrosshairColorRed:(GLfloat)redComponent green:(GLfloat)greenComponent blue:(GLfloat)blueComponent;
  10. // Rendering
  11. - (void)renderCrosshairsFromArray:(GLfloat *)crosshairCoordinates count:(NSUInteger)numberOfCrosshairs frameTime:(CMTime)frameTime;
  12. @end