![]() |
KudanAR - Android
|
Inheritance diagram for ARTexture2D:
Collaboration diagram for ARTexture2D:Public Member Functions | |
| void | loadFromAsset (String assetName) |
| void | loadFromPath (String path) |
| ARTexture2D (int textureID) | |
| ARTexture2D () | |
| void | bindTexture (int unit) |
| void | loadData () |
| void | prepareRenderer (int unit) |
Public Member Functions inherited from ARTexture | |
| 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 () |
Additional Inherited Members | |
Protected Attributes inherited from ARTexture | |
| int | mNativeMem |
| int | mTextureID |
An extension of ARTexture used for applying an texture image to a material.
|
inline |
Initialises an empty ARTexture2D with the id of an OpenGL texture.
| textureID |
|
inline |
Initialises an empty ARTexture2D with values to be set later.
|
inline |
Binds texture in OpenGL and sets the textureID.
| unit |
|
inline |
Loads texture data.
|
inline |
Loads the ARTexture2D with a bundled image.
Example of use:
texture.loadFromAsset("example.jpg");
| assetName | The name of the asset to load into the texture, including file extension. |
|
inline |
Loads the ARTexture2D with an image from a file path.
Example of use:
texture.loadFromPath("/mnt/sdcard/images/example.jpg");
| path | The full file path to the image to load into the texture, including all folders and extension. |
|
inline |
Prepares renderer to draw ARTexture2D.
| unit |