Package apple.glkit

Class GLKMeshBufferAllocator

    • Constructor Detail

      • GLKMeshBufferAllocator

        protected GLKMeshBufferAllocator​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • newBufferType

        public MDLMeshBuffer newBufferType​(long length,
                                           long type)
        Description copied from interface: MDLMeshBufferAllocator
        newBuffer:type: Create a buffer in a default zone
        Specified by:
        newBufferType in interface MDLMeshBufferAllocator
        Parameters:
        length - Size of buffer to be created in bytes
        type - Type of data to be stored in this buffer
      • newBufferFromZoneDataType

        public MDLMeshBuffer newBufferFromZoneDataType​(MDLMeshBufferZone zone,
                                                       NSData data,
                                                       long type)
        Description copied from interface: MDLMeshBufferAllocator
        newBufferFromZone:data:type: Create a buffer from a given zone and fill with data in the supplied NSData object An implementing MDLMeshBufferAllocator object may increase the size of the zone if the buffer could not be allocated with the current zone size. Alternatively the implementation may return nil if the buffer could not be allocated.
        Specified by:
        newBufferFromZoneDataType in interface MDLMeshBufferAllocator
        Parameters:
        zone - Zone from which to allocate the memory
        data - Values with which to fill the buffer
        type - Type of data to be stored in this buffer
        Returns:
        An object conforming to the MDLMeshBuffer protocol. Returns nil the buffer could not be allocated in the given zone
      • newBufferFromZoneLengthType

        public MDLMeshBuffer newBufferFromZoneLengthType​(MDLMeshBufferZone zone,
                                                         long length,
                                                         long type)
        Description copied from interface: MDLMeshBufferAllocator
        newBufferFromZone:length:type: Create a buffer from a given zone with the given length An implementing MDLMeshBufferAllocator object may increase the size of the zone if the buffer could not be allocated with the current zone size. Alternatively the implementation may return nil if the buffer could not be allocated.
        Specified by:
        newBufferFromZoneLengthType in interface MDLMeshBufferAllocator
        Parameters:
        zone - Zone from which to allocate the memory
        type - Type of data to be stored in this buffer
        Returns:
        An object conforming to the MDLMeshBuffer protocol. Returns nil the buffer could not be allocated in the zone given.
      • newBufferWithDataType

        public MDLMeshBuffer newBufferWithDataType​(NSData data,
                                                   long type)
        Description copied from interface: MDLMeshBufferAllocator
        newBufferWithData:type: Create a buffer in a default zone and fill with data in the supplied NSData object
        Specified by:
        newBufferWithDataType in interface MDLMeshBufferAllocator
        Parameters:
        data - Memory to fill the buffer with
        type - Type of data to be stored in this buffer
      • newZone

        public MDLMeshBufferZone newZone​(long capacity)
        Description copied from interface: MDLMeshBufferAllocator
        newZone: Create a zone which can be used to allocate MDLMeshBuffer objects
        Specified by:
        newZone in interface MDLMeshBufferAllocator
        Parameters:
        capacity - Total size in bytes of all buffers which can be created from this zone
      • newZoneForBuffersWithSizeAndType

        public MDLMeshBufferZone newZoneForBuffersWithSizeAndType​(NSArray<? extends NSNumber> sizes,
                                                                  NSArray<? extends NSNumber> types)
        Description copied from interface: MDLMeshBufferAllocator
        newZoneForBuffersWithSize:andType: Create a zone which can be used to allocate MDLMeshBuffer objects Will create a zone from which MDLMeshBuffer objects can be allocated. This will allocate a zone with enough capacity for each of the buffers with sizes and types specified even taking into any alignment restrictions necessary to use these buffers.
        Specified by:
        newZoneForBuffersWithSizeAndType in interface MDLMeshBufferAllocator
        Parameters:
        sizes - Sizes of each buffer to be created in this zone
        types - Type of each buffer to be created in this zone. Values to be of MDLMeshBufferType