![]() |
KudanAR - Android
1.6.0
|
Inherited by ARTexture2D, ARTexture3D, and ARTextureOES.
Public Member Functions | |
ARTexture () | |
void | finalize () |
void | createTexture () |
void | bindTexture (int unit) |
void | loadData () |
void | prepareRenderer (int unit) |
int | getTextureID () |
void | setTextureID (int textureID) |
int | getWidth () |
int | getHeight () |
Protected Attributes | |
long | mNativeMem |
int | mTextureID |
An ARTexture is a class representing a texture. Textures cannot exceed 2048x2048 pixels in size.
ARTexture.ARTexture | ( | ) |
Initialise an empty texture that can be loaded with an image later.
void ARTexture.bindTexture | ( | int | unit | ) |
Binds ARTexture in OpenGL.
unit |
Reimplemented in ARTexture2D, ARTexture3D, and ARTextureOES.
void ARTexture.createTexture | ( | ) |
Creates ARTexture in OpenGL.
void ARTexture.finalize | ( | ) |
Clears native ARTexture object.
int ARTexture.getHeight | ( | ) |
Returns the height of the texture, in pixels.
Reimplemented in ARVideoTexture.
int ARTexture.getTextureID | ( | ) |
Returns ARTexture's ID in OpenGL.
int ARTexture.getWidth | ( | ) |
Returns the width of the texture, in pixels.
Reimplemented in ARVideoTexture.
void ARTexture.loadData | ( | ) |
Loads ARTexture data.
Reimplemented in ARVideoTexture, ARTexture2D, and ARTexture3D.
void ARTexture.prepareRenderer | ( | int | unit | ) |
Prepares renderer for drawing texture.
unit |
Reimplemented in ARVideoTexture, ARTexture2D, ARTexture3D, and ARTextureOES.
void ARTexture.setTextureID | ( | int | textureID | ) |
Sets ARTexture's ID.
textureID |