com.sun.jsr239.wtksamples.cube
Class CubeCanvas

java.lang.Object
  extended by javax.microedition.lcdui.Displayable
      extended by javax.microedition.lcdui.Canvas
          extended by javax.microedition.lcdui.game.GameCanvas
              extended by com.sun.jsr239.wtksamples.cube.CubeCanvas
All Implemented Interfaces:
java.lang.Runnable

 class CubeCanvas
extends javax.microedition.lcdui.game.GameCanvas
implements java.lang.Runnable


Field Summary
(package private)  Cube cube
           
(package private)  java.nio.ByteBuffer cubeColors
           
(package private)  java.nio.ByteBuffer cubeIndices
           
(package private)  java.nio.ByteBuffer cubeNormals
           
(package private)  java.nio.ByteBuffer cubeVertices
           
(package private)  javax.microedition.khronos.egl.EGL10 egl
           
(package private)  javax.microedition.khronos.egl.EGLConfig eglConfig
           
(package private)  javax.microedition.khronos.egl.EGLContext eglContext
           
(package private)  javax.microedition.khronos.egl.EGLDisplay eglDisplay
           
(package private)  javax.microedition.khronos.egl.EGLSurface eglWindowSurface
           
(package private)  int frame
           
(package private)  javax.microedition.lcdui.Graphics g
           
(package private)  javax.microedition.khronos.opengles.GL10 gl
           
(package private)  int height
           
(package private)  boolean initialized
           
(package private)  float time
           
(package private)  int width
           
 
Fields inherited from class javax.microedition.lcdui.game.GameCanvas
DOWN_PRESSED, FIRE_PRESSED, GAME_A_PRESSED, GAME_B_PRESSED, GAME_C_PRESSED, GAME_D_PRESSED, LEFT_PRESSED, RIGHT_PRESSED, UP_PRESSED
 
Fields inherited from class javax.microedition.lcdui.Canvas
DOWN, FIRE, GAME_A, GAME_B, GAME_C, GAME_D, KEY_NUM0, KEY_NUM1, KEY_NUM2, KEY_NUM3, KEY_NUM4, KEY_NUM5, KEY_NUM6, KEY_NUM7, KEY_NUM8, KEY_NUM9, KEY_POUND, KEY_STAR, LEFT, RIGHT, UP
 
Constructor Summary
CubeCanvas(Cube cube)
           
 
Method Summary
 void init()
           
 void run()
           
 void shutdown()
           
 
Methods inherited from class javax.microedition.lcdui.game.GameCanvas
flushGraphics, flushGraphics, getGraphics, getKeyStates, paint
 
Methods inherited from class javax.microedition.lcdui.Canvas
getGameAction, getKeyCode, getKeyName, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, hideNotify, isDoubleBuffered, keyPressed, keyReleased, keyRepeated, pointerDragged, pointerPressed, pointerReleased, repaint, repaint, serviceRepaints, setFullScreenMode, showNotify, sizeChanged
 
Methods inherited from class javax.microedition.lcdui.Displayable
addCommand, getHeight, getTicker, getTitle, getWidth, isShown, removeCommand, setCommandListener, setTicker, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initialized

boolean initialized

frame

int frame

time

float time

g

javax.microedition.lcdui.Graphics g

width

int width

height

int height

cube

Cube cube

egl

javax.microedition.khronos.egl.EGL10 egl

gl

javax.microedition.khronos.opengles.GL10 gl

eglConfig

javax.microedition.khronos.egl.EGLConfig eglConfig

eglDisplay

javax.microedition.khronos.egl.EGLDisplay eglDisplay

eglWindowSurface

javax.microedition.khronos.egl.EGLSurface eglWindowSurface

eglContext

javax.microedition.khronos.egl.EGLContext eglContext

cubeVertices

java.nio.ByteBuffer cubeVertices

cubeColors

java.nio.ByteBuffer cubeColors

cubeNormals

java.nio.ByteBuffer cubeNormals

cubeIndices

java.nio.ByteBuffer cubeIndices
Constructor Detail

CubeCanvas

public CubeCanvas(Cube cube)
Method Detail

init

public void init()

shutdown

public void shutdown()

run

public void run()
Specified by:
run in interface java.lang.Runnable