MBMCustomLayerRenderConfiguration.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. /**
  4. * Note! This is an experimental feature. It can be changed or removed in future versions.
  5. *
  6. * CustomLayerHost declares, by returning this from CustomLayerHost's prerender, what kind of rendering it intends to do in the very next frame.
  7. * If there is need for rendering to tile textures, declare if all tiles need to be re-rendered because e.g. underlying data changed.
  8. */
  9. NS_SWIFT_NAME(CustomLayerRenderConfiguration)
  10. __attribute__((visibility ("default")))
  11. @interface MBMCustomLayerRenderConfiguration : NSObject
  12. - (nonnull instancetype)init;
  13. - (nonnull instancetype)initWithIsRenderToTileSupported:(BOOL)isRenderToTileSupported
  14. shouldRerenderTiles:(BOOL)shouldRerenderTiles;
  15. /**
  16. * If this value is true and there's need for draping (globe or terrain are enabled), then renderToTile will be called to enable
  17. * the rendering of the custom layer into the texture of a tile.
  18. * If this value is set, and terrain or globe are active, only render to tile render call for this layer is called,
  19. * and "immediate mode" render is not called. A custom layer is, at one frame, either rendered to tile or rendered
  20. * directly.
  21. */
  22. @property (nonatomic, readonly, getter=isIsRenderToTileSupported) BOOL isRenderToTileSupported;
  23. /**
  24. * Set to true only for frame when content has changed - when set to true,
  25. * all the terrain render cache would get invalidated and redrawn, causing a drop in performance if invoked on every frame.
  26. */
  27. @property (nonatomic, readonly, getter=isShouldRerenderTiles) BOOL shouldRerenderTiles;
  28. @end