![]() |
KudanAR - iOS
|
#import <ARTextureCube.h>
Inheritance diagram for ARTextureCube:
Collaboration diagram for ARTextureCube:Instance Methods | |
| (instancetype) | - initWithUIImages: |
| (instancetype) | - initWithBundledFiles: |
Instance Methods inherited from ARTexture | |
| (instancetype) | - initWithUIImage: |
| (instancetype) | - initWithEmpty |
| (instancetype) | - initWithExistingTextureID: |
| (void) | - generateTexture |
| (void) | - uploadTexture |
| (void) | - loadTextureFromUIImage:reverseLines: |
| (void) | - uploadBGRATexture:width:height: |
| (void) | - uploadBGRATextureSub:width:height: |
| (BOOL) | - preRender |
| (void) | - postRender |
Additional Inherited Members | |
Protected Attributes inherited from ARTexture | |
| NSData * | _rawImage |
Properties inherited from ARTexture | |
| unsigned | textureID |
| unsigned long | width |
| unsigned long | height |
| BOOL | isPowerOfTwo |
| ARTextureFilter | minificationFilter |
| ARTextureFilter | magnificationFilter |
An ARTextureCube is a texture representing a cube for use in environment mapping.
| - (instancetype) initWithBundledFiles: | (NSArray *) | bundledFiles |
Initialise with an array of strings, each of which is a file path relative to the main bundle, pointing to image files. The array must be in the correct order for the mapping to work properly. The order of images cannot be altered once initialised. The correct order of images is as follows: Element 0 - Back. Element 1 - Front. Element 2 - Left. Element 3 - Right. Element 4 - Top. Element 5 - Bottom.
Example of use:
| images | An array of image file names relative to the main bundle. |
| - (instancetype) initWithUIImages: | (NSArray *) | images |
Initialise with an array of UIImage images. The array must be in the correct order for the mapping to work properly. The order of images cannot be altered once initialised. The correct order of images is as follows: Element 0 - Back. Element 1 - Front. Element 2 - Left. Element 3 - Right. Element 4 - Top. Element 5 - Bottom.
Example of use:
| images | An array of UIImage objects to load into the cube map. |