DOUEAGLView.h 784 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* vim: set ft=objc fenc=utf-8 sw=2 ts=2 et: */
  2. /*
  3. * DOUAudioStreamer - A Core Audio based streaming audio player for iOS/Mac:
  4. *
  5. * https://github.com/douban/DOUAudioStreamer
  6. *
  7. * Copyright 2013-2016 Douban Inc. All rights reserved.
  8. *
  9. * Use and distribution licensed under the BSD license. See
  10. * the LICENSE file for full text.
  11. *
  12. * Authors:
  13. * Chongyu Zhu <i@lembacon.com>
  14. *
  15. */
  16. #if TARGET_OS_IPHONE
  17. #import <UIKit/UIKit.h>
  18. #import <OpenGLES/EAGL.h>
  19. #import <OpenGLES/ES1/gl.h>
  20. #import <OpenGLES/ES1/glext.h>
  21. @interface DOUEAGLView : UIView
  22. @property (nonatomic, getter=isPaused) BOOL paused;
  23. @property (nonatomic, assign) NSInteger frameInterval;
  24. - (void)prepare;
  25. - (void)cleanup;
  26. - (void)reshape;
  27. - (void)render;
  28. @end
  29. #endif /* TARGET_OS_IPHONE */