ArViewer  Android Version
Arvos - Augmented reality viewer open source
 All Classes Namespaces Files Functions Variables
Public Member Functions | Static Public Attributes | List of all members
com.mission_base.arviewer_android.viewer.opengl.Square Class Reference
Inheritance diagram for com.mission_base.arviewer_android.viewer.opengl.Square:
com.mission_base.arviewer_android.viewer.opengl.ArvosObject

Public Member Functions

 Square ()
 
void loadGLTexture (GL10 gl, int textureId)
 
void loadGLTexture (GL10 gl, Bitmap bitmap)
 
void draw (GL10 gl)
 

Static Public Attributes

static final float vertices []
 

Detailed Description

The basic object shown in the opengl view, a square with a texture on it.

Author
peter

Definition at line 45 of file Square.java.

Constructor & Destructor Documentation

com.mission_base.arviewer_android.viewer.opengl.Square.Square ( )

Definition at line 67 of file Square.java.

Member Function Documentation

void com.mission_base.arviewer_android.viewer.opengl.Square.draw ( GL10  gl)

The draw method for the square with the GL context

Definition at line 113 of file Square.java.

void com.mission_base.arviewer_android.viewer.opengl.Square.loadGLTexture ( GL10  gl,
int  textureId 
)

Definition at line 85 of file Square.java.

void com.mission_base.arviewer_android.viewer.opengl.Square.loadGLTexture ( GL10  gl,
Bitmap  bitmap 
)

Definition at line 96 of file Square.java.

Member Data Documentation

final float com.mission_base.arviewer_android.viewer.opengl.Square.vertices[]
static
Initial value:
= {
-0.5f, -0.5f, 0.0f,
-0.5f, 0.5f, 0.0f,
0.5f, -0.5f, 0.0f,
0.5f, 0.5f, 0.0f
}

Definition at line 49 of file Square.java.


The documentation for this class was generated from the following file: