com.drismo.gui.monitor
Class QualityMeterMonitor.QualityMeter

java.lang.Object
  extended by com.drismo.gui.monitor.QualityMeterMonitor.QualityMeter
Enclosing class:
QualityMeterMonitor

private class QualityMeterMonitor.QualityMeter
extends java.lang.Object


Field Summary
private  java.nio.ByteBuffer indexBuffer
          The buffer holding the indices
private  byte[] indices
          The initial indices definition
private  float[] texture
          The initial texture coordinates (u, v)
private  java.nio.FloatBuffer textureBuffer
          The buffer holding the texture coordinates
private  int[] textures
          Our texture pointer
private  java.nio.FloatBuffer vertexBuffer
          The buffer holding the vertices
private  float[] vertices
          The initial vertex definition
 
Constructor Summary
QualityMeterMonitor.QualityMeter()
          The QualityMeter constructor.
 
Method Summary
 void draw(javax.microedition.khronos.opengles.GL10 gl)
          The object own drawing function.
 void loadGLTexture(javax.microedition.khronos.opengles.GL10 gl, android.content.Context context)
          Load the textures
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vertexBuffer

private java.nio.FloatBuffer vertexBuffer
The buffer holding the vertices


textureBuffer

private java.nio.FloatBuffer textureBuffer
The buffer holding the texture coordinates


indexBuffer

private java.nio.ByteBuffer indexBuffer
The buffer holding the indices


textures

private int[] textures
Our texture pointer


vertices

private float[] vertices
The initial vertex definition


texture

private float[] texture
The initial texture coordinates (u, v)


indices

private byte[] indices
The initial indices definition

Constructor Detail

QualityMeterMonitor.QualityMeter

public QualityMeterMonitor.QualityMeter()
The QualityMeter constructor. Initiate the buffers.

Method Detail

draw

public void draw(javax.microedition.khronos.opengles.GL10 gl)
The object own drawing function. Called from the renderer to redraw this instance with possible changes in values.

Parameters:
gl - - The GL Context

loadGLTexture

public void loadGLTexture(javax.microedition.khronos.opengles.GL10 gl,
                          android.content.Context context)
Load the textures

Parameters:
gl - - The GL Context
context - - The Activity context