Class SCNGeometrySource

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class SCNGeometrySource
extends NSObject
implements NSSecureCoding
  • Constructor Details

    • SCNGeometrySource

      public SCNGeometrySource()
    • SCNGeometrySource

      protected SCNGeometrySource​(NSObject.Handle h, long handle)
    • SCNGeometrySource

      protected SCNGeometrySource​(NSObject.SkipInit skipInit)
    • SCNGeometrySource

      public SCNGeometrySource​(NSCoder coder)
  • Method Details

    • getData

      public NSData getData()
    • getSemantic

      public SCNGeometrySourceSemantic getSemantic()
    • getVectorCount

      public long getVectorCount()
    • usesFloatComponents

      public boolean usesFloatComponents()
    • getComponentsPerVector

      public long getComponentsPerVector()
    • getBytesPerComponent

      public long getBytesPerComponent()
    • getDataOffset

      public long getDataOffset()
    • getDataStride

      public long getDataStride()
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • createWithData

      public static SCNGeometrySource createWithData​(NSData data, SCNGeometrySourceSemantic semantic, long vectorCount, boolean floatComponents, long componentsPerVector, long bytesPerComponent, long offset, long stride)
    • createWithVertices

      public static SCNGeometrySource createWithVertices​(SCNVector3 vertices, long count)
    • createWithNormals

      public static SCNGeometrySource createWithNormals​(SCNVector3 normals, long count)
    • createWithTextureCoordinates

      public static SCNGeometrySource createWithTextureCoordinates​(CGPoint texcoord, long count)
    • createWithBuffer

      public static SCNGeometrySource createWithBuffer​(MTLBuffer buffer, MTLVertexFormat vertexFormat, String semantic, long vertexCount, long offset, long stride)
      Since:
      Available in iOS 9.0 and later.
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • init

      protected long init​(NSCoder coder)