|
|
int | mNativeMem |
| |
|
int | mTextureID |
| |
An ARTexture3D is a texture representing a cube for use in environment mapping.
| ARTexture3D |
( |
String |
posX, |
|
|
String |
negX, |
|
|
String |
posY, |
|
|
String |
negY, |
|
|
String |
posZ, |
|
|
String |
negZ |
|
) |
| |
|
inline |
Initialise an ARTexture3D with the names of 6 images to be loaded from assets. The images must be in the correct order for the mapping to work properly. The order of images cannot be altered once initialised.
Example of use:
String rightImage = "rightImage.jpg";
String leftImage = "leftImage.jpg"
String topImage = "topImage.jpg";
String bottomImage = "bottomImage.jpg";
String frontImage = "frontImage.jpg";
String backImage = "backImage.jpg";
ARTexture3D cubeMap = new ARTexture3D(rightImage, leftImage, topImage, bottomImage, frontImage, backImage);
- Parameters
-
| posX | The name of the image to use for the right face of the cube. |
| negX | The name of the image to use for the left face of the cube. |
| posY | The name of the image to use for the top face of the cube. |
| negY | The name of the image to use for the bottom face of the cube. |
| posZ | The name of the image to use for the front face of the cube. |
| negZ | The name of the image to use for the back face of the cube. |
| void bindTexture |
( |
int |
unit | ) |
|
|
inline |
Binds cube map in OpenGL.
- Parameters
-
Loads the cube's texture data.
| void prepareRenderer |
( |
int |
unit | ) |
|
|
inline |
Prepares renderer to draw texture cube.
- Parameters
-
The documentation for this class was generated from the following file: