aboutsummaryrefslogtreecommitdiff
path: root/iosApp/WhirlyGlobe.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobe.framework/Headers/MaplyVertexAttribute.h
diff options
context:
space:
mode:
Diffstat (limited to 'iosApp/WhirlyGlobe.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobe.framework/Headers/MaplyVertexAttribute.h')
-rw-r--r--iosApp/WhirlyGlobe.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobe.framework/Headers/MaplyVertexAttribute.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/iosApp/WhirlyGlobe.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobe.framework/Headers/MaplyVertexAttribute.h b/iosApp/WhirlyGlobe.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobe.framework/Headers/MaplyVertexAttribute.h
new file mode 100644
index 0000000..07e220a
--- /dev/null
+++ b/iosApp/WhirlyGlobe.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobe.framework/Headers/MaplyVertexAttribute.h
@@ -0,0 +1,49 @@
+/*
+ * MaplyVertexAttribute.h
+ * WhirlyGlobe-MaplyComponent
+ *
+ * Created by Steve Gifford on 11/29/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 <UIKit/UIKit.h>
+
+/**
+ Vertex Attributes are passed all the way though on objects to shaders.
+
+ If you have your own custom shader, you often need a way to feed it data. The toolkit will set up the standard data, like vertices, texture coordinates and normals, but sometimes you need something custom.
+
+ Vertex attributes are the mechanism you use to pass that custom data all the way down to the shader.
+
+ How the vertex attributes are used depends on the data type, so consult the appropriate object.
+ */
+@interface MaplyVertexAttribute : NSObject
+
+/// Construct a vertex attribute as a single float
+- (nonnull instancetype)initWithName:(NSString * __nonnull)name slot:(int)slot float:(float)val;
+
+/// Construct a vertex attribute as two floats
+- (nonnull instancetype)initWithName:(NSString * __nonnull)name slot:(int)slot floatX:(float)x y:(float)y;
+
+/// Construct a vertex attribute as three flaots
+- (nonnull instancetype)initWithName:(NSString * __nonnull)name slot:(int)slot floatX:(float)x y:(float)y z:(float)z;
+
+/// Construct a vertex attribute as an RGBA value
+- (nonnull instancetype)initWithName:(NSString * __nonnull)name slot:(int)slot color:(UIColor * __nonnull)color;
+
+/// Construct a vertex attribute as an int
+- (nonnull instancetype)initWithName:(NSString * __nonnull)name slot:(int)slot int:(int)val;
+
+@end