Fork me
BeyondAR
Augmented Reality Framework for Android
 All Classes Functions Variables
com.beyondar.android.opengl.texture.Texture Class Reference

Texture object for rendering using OpenGL. More...

Public Member Functions

 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 Public Attributes

static final float TEMPLATE_VERTICES []
 
static final float TEMPLATE_TEXTURE []
 

Detailed Description

Texture object for rendering using OpenGL.

Constructor & Destructor Documentation

com.beyondar.android.opengl.texture.Texture.Texture ( int  textureReference)

Constructor of a texture with a defined texture reference.

Parameters
textureReferenceLoaded texture reference.

Member Function Documentation

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
width
height
Returns

Member Data Documentation

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: