![]() |
KudanAR - iOS
1.6.0
|
#import <ARAnimatedTexture.h>
Inherits ARPlayableTexture, and <ARRendererDelegate>.
Instance Methods | |
(void) | - addFrameFromImage: |
![]() | |
(void) | - reset |
(void) | - play |
(void) | - pause |
![]() | |
(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 |
![]() | |
(void) | - rendererPreRender |
(void) | - rendererPostRender |
(void) | - rendererDidPause |
(void) | - rendererDidResume |
Properties | |
NSUInteger | numberOfFrames |
![]() | |
ARPlayableTextureState | playState |
float | frameRate |
NSTimeInterval | pauseTolerance |
NSTimeInterval | resetThreshold |
BOOL | lastFramePersist |
id< ARPlayableTextureDelegate > | delegate |
![]() | |
GLuint | textureID |
unsigned long | width |
unsigned long | height |
BOOL | isPowerOfTwo |
ARTextureFilter | minificationFilter |
ARTextureFilter | magnificationFilter |
Additional Inherited Members | |
![]() | |
enum | ARPlayableTextureState { ARPlayableTextureStateUninitialised, ARPlayableTextureStatePaused, ARPlayableTextureStatePlaying, ARPlayableTextureStateFinished } |
![]() | |
enum | ARTextureFilter { ARTextureFilterNearest, ARTextureFilterLinear } |
![]() | |
NSData * | _rawImage |
A texture consisting of a series of frames. Each frame added to this texture is played in sequence when the texture is rendered on a material until it the sequence reaches the end, at which point the default behaviour is to loop back to the first frame and start again. This behaviour can be disabled if need be, so that the last frame in the sequence is continually rendered once the sequence has finished. This is useful for simple 2D animations, akin to a gif or sprite sheet, as transparency is maintained when using .png images.
- (void) addFrameFromImage: | (UIImage *) | image |
Adds a new frame to the end of this texture's sequence.
Example of use:
image | The UIImage containing the texture. It should have the same resolution as any previously added images. If lastFramePersist (Inherited from ARPlayableTexture) is set to YES, this will become the frame that gets continually rendered when the sequence has finished. |
|
readnonatomicassign |
The total number of frames in this texture's sequence.