From 3913ab898f2c2ecc3b638eca4681957b1cf74330 Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Sat, 5 Feb 2022 19:17:10 -0600 Subject: Removed SwiftUIFlowLayout dependency and updated WhirlyGlobe-Maply to latest develop version --- .../WhirlyGlobe.framework/Headers/MaplyBillboard.h | 74 ++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 iosApp/WhirlyGlobe.xcframework/ios-arm64/WhirlyGlobe.framework/Headers/MaplyBillboard.h (limited to 'iosApp/WhirlyGlobe.xcframework/ios-arm64/WhirlyGlobe.framework/Headers/MaplyBillboard.h') diff --git a/iosApp/WhirlyGlobe.xcframework/ios-arm64/WhirlyGlobe.framework/Headers/MaplyBillboard.h b/iosApp/WhirlyGlobe.xcframework/ios-arm64/WhirlyGlobe.framework/Headers/MaplyBillboard.h new file mode 100644 index 0000000..f29eb87 --- /dev/null +++ b/iosApp/WhirlyGlobe.xcframework/ios-arm64/WhirlyGlobe.framework/Headers/MaplyBillboard.h @@ -0,0 +1,74 @@ +/* + * MaplyBillboard.h + * WhirlyGlobeComponent + * + * Created by Steve Gifford on 10/28/13. + * Copyright 2011-2022 mousebird consulting + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#import +#import +#import + +/** + A billboard is tied to a specific point, but rotates to face the user. + + The billboard object represents a rectangle which is rooted at a specific point, but will rotate to face the user. These are typically used in 3D, when the globe or map has a tilt. They make little sense in 2D. + */ +@interface MaplyBillboard : NSObject + +/** + The point this billboard is rooted at. + + The x and y coordinates are radians. The z coordinate is in meters. + */ +@property (nonatomic) MaplyCoordinate3d center; + +/// Set if you want to select these +@property (nonatomic) bool selectable; + +/// The 2D polygonal description of what the billboard should be +@property (nonatomic,strong) MaplyScreenObject * __nullable screenObj; + +/** + Vertex attributes to apply to this billboard. + + MaplyVertexAttribute objects are passed all the way to the shader. Read that page for details on what they do. + + The array of vertex attributes provided here will be copied onto all the vertices we create for the shader. This means you can use these to do things for a single billboard in your shader. + */ +@property (nonatomic,strong) NSArray * __nullable vertexAttributes; + +/** + User data object for selection + + When the user selects a feature and the developer gets it in their delegate, this is an object they can use to figure out what the screen label means to them. + */ +@property (nonatomic,strong) id __nullable userObject; + +/** + Initialize with a single image, a given background and a size. + + This will create a simple billboard with a single image pasted on it. + + @param texture This can either be a UIImage or a MaplyTexture. + + @param color Color for the polygon that makes up the billboard. + + @param size Size of the billboard in display space. + */ +- (nullable instancetype)initWithImage:(id __nonnull)texture color:(UIColor * __nonnull)color size:(CGSize)size; + +@end -- cgit v1.2.3