Inherits ARTexture.
|
|
long | mNativeMem |
| |
|
int | mTextureID |
| |
An extension of ARTexture used for applying an texture image to a material.
◆ ARTexture2D() [1/2]
| ARTexture2D.ARTexture2D |
( |
int |
textureID | ) |
|
Initialises an empty ARTexture2D with the id of an OpenGL texture.
- Parameters
-
◆ ARTexture2D() [2/2]
| ARTexture2D.ARTexture2D |
( |
| ) |
|
Initialises an empty ARTexture2D with values to be set later.
◆ bindTexture()
| void ARTexture2D.bindTexture |
( |
int |
unit | ) |
|
Binds texture in OpenGL and sets the textureID.
- Parameters
-
Reimplemented from ARTexture.
◆ loadData()
| void ARTexture2D.loadData |
( |
| ) |
|
Loads texture data.
Reimplemented from ARTexture.
◆ loadFromAsset()
| void ARTexture2D.loadFromAsset |
( |
String |
assetName | ) |
|
Loads the ARTexture2D with a bundled image.
Example of use:
texture.loadFromAsset("example.jpg");
- Parameters
-
| assetName | The name of the asset to load into the texture, including file extension. |
◆ loadFromPath()
| void ARTexture2D.loadFromPath |
( |
String |
path | ) |
|
Loads the ARTexture2D with an image from a file path.
Example of use:
texture.loadFromPath("/mnt/sdcard/images/example.jpg");
- Parameters
-
| path | The full file path to the image to load into the texture, including all folders and extension. |
◆ prepareRenderer()
| void ARTexture2D.prepareRenderer |
( |
int |
unit | ) |
|
The documentation for this class was generated from the following file: