#import <ARTexture.h>
An ARTexture is a class representing a 2D texture. Textures cannot exceed 2048x2048 pixels in size.
Generates texture names using texure id.
| - (instancetype) initWithEmpty |
|
|
|
Create an empty texture to be loaded with an image later.
Example of use:
| - (instancetype) initWithUIImage: |
|
(UIImage *) |
image |
|
Create a texture from a UIImage.
Example of use:
ARTexture *texture = [[
ARTexture alloc] initWithUIImage:[UIImage imageNamed:
@"example.jpg"]];
- Parameters
-
| image | The UIImage to create the texture from. |
| - (void) loadTextureFromUIImage: |
|
(UIImage *) |
image |
| reverseLines: |
|
(BOOL) |
reverseLines |
|
|
| |
Loads image data into rawimage, sets image width and height, sets pixel format.
- Parameters
-
| image | Image to generate texture from. |
| reverseLines | Whether to read pixels from top(YES) or bottom. |
Method called just after this texture has been used in rendering.
Method called just before this texture is rendered.
- Returns
- BOOL Whether or not to proceed with rendering.
Uploads texture to OpenGL.
The height of the texture, in pixels.
| - (ARTextureFilter) magnificationFilter |
|
readwritenonatomicassign |
The filtering type used for magnification. ARTextureFilterLinear is recommended for less aliasing.
| - (ARTextureFilter) minificationFilter |
|
readwritenonatomicassign |
The filtering type used for minification. ARTextureFilterLinear is recommended for less aliasing.
The width of the texture, in pixels.
The documentation for this class was generated from the following file: