Texture object for rendering using OpenGL.
More...
|
| Texture (int textureReference) |
| Constructor of a texture with a defined texture reference. More...
|
|
| Texture () |
| Constructor of a texture with a no texture reference.
|
|
Texture | setImageSize (int width, int height) |
| Set the image size in pixels. More...
|
|
FloatBuffer | getTextureBuffer () |
|
FloatBuffer | getVerticesBuffer () |
|
float[] | getVertices () |
|
float[] | getTextureMap () |
|
float | getWithRate () |
|
float | getHeightRate () |
|
int | getImageWidth () |
|
int | getImageHeight () |
|
int | getTexturePointer () |
|
Texture | setTexturePointer (int texture) |
|
Texture | setLoaded (boolean isLoaded) |
|
boolean | isLoaded () |
|
Texture | setTimeStamp (double time) |
|
double | getTimeStamp () |
|
Texture | setLoadTryCounter (int counter) |
|
int | getLoadTryCounter () |
|
Texture | clone () |
|
String | toString () |
|
|
static final float | TEMPLATE_VERTICES [] |
|
static final float | TEMPLATE_TEXTURE [] |
|
Texture object for rendering using OpenGL.
com.beyondar.android.opengl.texture.Texture.Texture |
( |
int |
textureReference | ) |
|
Constructor of a texture with a defined texture reference.
- Parameters
-
textureReference | Loaded texture reference. |
Texture com.beyondar.android.opengl.texture.Texture.setImageSize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
Set the image size in pixels.
This method is used to support non power of two images.
- Parameters
-
- Returns
final float com.beyondar.android.opengl.texture.Texture.TEMPLATE_TEXTURE[] |
|
static |
Initial value:= {
0.0f, 1.0f,
0.0f, 0.0f,
1.0f, 1.0f,
1.0f, 0.0f
}
final float com.beyondar.android.opengl.texture.Texture.TEMPLATE_VERTICES[] |
|
static |
Initial value:= {
-1.0f, 0.0f, -1.0f,
-1.0f, 0.0f, 1.0f,
1.0f, 0.0f, -1.0f,
1.0f, 0.0f, 1.0f
}
The documentation for this class was generated from the following file:
- src/com/beyondar/android/opengl/texture/Texture.java