MBMContextMode.h 892 B

1234567891011121314151617181920212223
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. /**
  4. * Describes the map context mode.
  5. * We can make some optimizations if we know that the drawing context is not shared with other code.
  6. */
  7. // NOLINTNEXTLINE(modernize-use-using)
  8. typedef NS_ENUM(NSInteger, MBMContextMode)
  9. {
  10. /**
  11. * Unique context mode: in OpenGL, the GL context is not shared, thus we can retain knowledge about the GL state
  12. * from a previous render pass. It also enables clearing the screen using glClear for the bottommost background
  13. * layer when no pattern is applied to that layer.
  14. */
  15. MBMContextModeUnique,
  16. /**
  17. * Shared context mode: in OpenGL, the GL context is shared with other renderers, thus we cannot rely on the GL
  18. * state set from a previous render pass.
  19. */
  20. MBMContextModeShared
  21. } NS_SWIFT_NAME(ContextMode);