public final class

RenderView

extends GLSurfaceView
implements SensorEventListener GLSurfaceView.Renderer
java.lang.Object
   ↳ android.view.View
     ↳ android.view.SurfaceView
       ↳ android.opengl.GLSurfaceView
         ↳ com.cooliris.media.RenderView

Summary

Nested Classes
class RenderView.Lists  
[Expand]
Inherited Constants
From class android.opengl.GLSurfaceView
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
RenderView(Context context)
Public Methods
boolean bind(Texture texture)
boolean bindMixed(Texture from, Texture to, float ratio)
void clearCache()
void draw2D(Texture texture, int x, int y, int width, int height)
void draw2D(float x, float y, float z, float width, float height)
void draw2D(Texture texture, float x, float y, float width, float height)
void draw2D(Texture texture, float x, float y)
void drawMixed2D(Texture from, Texture to, float ratio, float x, float y, float z, float width, float height)
long elapsedLoadingExpensiveTextures()
float getAlpha()
float getFrameInterval()
long getFrameTime()
Render API
RenderView.Lists getLists()
ResourceTexture getResource(int resourceId, boolean scaled)
ResourceTexture getResource(int resourceId)
void handleLowMemory()
boolean isLoadingExpensiveTextures()
void loadTexture(Texture texture)
void onAccuracyChanged(Sensor sensor, int accuracy)
Indicates that the accuracy of a sensor value has changed.
void onDrawFrame(GL10 gl1)
Renders a frame of the UI.
boolean onKeyDown(int keyCode, KeyEvent event)
void onPause()
void onResume()
void onSensorChanged(SensorEvent event)
Indicates that a sensor value has changed.
void onSurfaceChanged(GL10 gl1, int width, int height)
Called when the OpenGL surface is recreated without destroying the context.
void onSurfaceCreated(GL10 gl1, EGLConfig config)
Called when the context is created, possibly after automatic destruction.
boolean onTouchEvent(MotionEvent event)
void prime(Texture texture, boolean highPriority)
void processAllTextures()
void resetColor()
void setAlpha(float alpha)
void setColor(float red, float green, float blue, float alpha)
void setFov(float fov)
void setRootLayer(RootLayer layer)
void shutdown()
void surfaceDestroyed(SurfaceHolder holder)
void unbindMixed()
Protected Methods
void onAttachedToWindow()
void onDetachedFromWindow()
void onFocusChanged(boolean gainFocus, int direction, Rect previouslyFocusedRect)
[Expand]
Inherited Methods
From class android.opengl.GLSurfaceView
From class android.view.SurfaceView
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.hardware.SensorEventListener
From interface android.opengl.GLSurfaceView.Renderer
From interface android.view.KeyEvent.Callback
From interface android.view.SurfaceHolder.Callback
From interface android.view.accessibility.AccessibilityEventSource

Public Constructors

public RenderView (Context context)

Public Methods

public boolean bind (Texture texture)

public boolean bindMixed (Texture from, Texture to, float ratio)

public void clearCache ()

public void draw2D (Texture texture, int x, int y, int width, int height)

public void draw2D (float x, float y, float z, float width, float height)

public void draw2D (Texture texture, float x, float y, float width, float height)

public void draw2D (Texture texture, float x, float y)

public void drawMixed2D (Texture from, Texture to, float ratio, float x, float y, float z, float width, float height)

public long elapsedLoadingExpensiveTextures ()

public float getAlpha ()

public float getFrameInterval ()

public long getFrameTime ()

Render API

public RenderView.Lists getLists ()

public ResourceTexture getResource (int resourceId, boolean scaled)

public ResourceTexture getResource (int resourceId)

public void handleLowMemory ()

public boolean isLoadingExpensiveTextures ()

public void loadTexture (Texture texture)

public void onAccuracyChanged (Sensor sensor, int accuracy)

Indicates that the accuracy of a sensor value has changed.

public void onDrawFrame (GL10 gl1)

Renders a frame of the UI.

public boolean onKeyDown (int keyCode, KeyEvent event)

public void onPause ()

public void onResume ()

public void onSensorChanged (SensorEvent event)

Indicates that a sensor value has changed.

public void onSurfaceChanged (GL10 gl1, int width, int height)

Called when the OpenGL surface is recreated without destroying the context.

public void onSurfaceCreated (GL10 gl1, EGLConfig config)

Called when the context is created, possibly after automatic destruction.

public boolean onTouchEvent (MotionEvent event)

public void prime (Texture texture, boolean highPriority)

public void processAllTextures ()

public void resetColor ()

public void setAlpha (float alpha)

public void setColor (float red, float green, float blue, float alpha)

public void setFov (float fov)

public void setRootLayer (RootLayer layer)

public void shutdown ()

public void surfaceDestroyed (SurfaceHolder holder)

public void unbindMixed ()

Protected Methods

protected void onAttachedToWindow ()

protected void onDetachedFromWindow ()

protected void onFocusChanged (boolean gainFocus, int direction, Rect previouslyFocusedRect)