gestalt.candidates
Class NativeMovieTextureProducer

java.lang.Object
  extended by gestalt.shape.AbstractDrawable
      extended by gestalt.candidates.NativeMovieTextureProducer
All Implemented Interfaces:
Drawable, java.lang.Runnable

public class NativeMovieTextureProducer
extends AbstractDrawable
implements java.lang.Runnable


Constructor Summary
NativeMovieTextureProducer(java.lang.String theNativeLibrary, JoglMaterialPluginNonPowerOfTwoTextureReference theTexture, java.lang.String theFileName, float theFPS)
           
 
Method Summary
 void draw(GLContext theRenderContext)
          this method is used to draw the drawable, when the context is ready.
 int getHeight()
           
 int getOpenGlTextureId()
          Gets the texture ID with which the native movie library was set up
 int getWidth()
           
 void init(java.lang.String theFileName, int theOpenGLTextureID)
           
 boolean isInitialized()
           
 int requestOpenGlTextureId()
           
 void run()
           
 void tryToReadNewFrame()
           
 void update()
           
 
Methods inherited from class gestalt.shape.AbstractDrawable
add, getSortData, getSortValue, isActive, isSortable, setSortValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeMovieTextureProducer

public NativeMovieTextureProducer(java.lang.String theNativeLibrary,
                                  JoglMaterialPluginNonPowerOfTwoTextureReference theTexture,
                                  java.lang.String theFileName,
                                  float theFPS)
Method Detail

init

public void init(java.lang.String theFileName,
                 int theOpenGLTextureID)

tryToReadNewFrame

public void tryToReadNewFrame()

requestOpenGlTextureId

public int requestOpenGlTextureId()

update

public void update()

getWidth

public int getWidth()

getHeight

public int getHeight()

getOpenGlTextureId

public int getOpenGlTextureId()
Gets the texture ID with which the native movie library was set up

Returns:
The used OpenGL texture ID

isInitialized

public boolean isInitialized()

draw

public void draw(GLContext theRenderContext)
Description copied from interface: Drawable
this method is used to draw the drawable, when the context is ready. although the behavior sometimes varies and doesn t always need to have a visual representation depending on the implementation.

Specified by:
draw in interface Drawable
Parameters:
theRenderContext - GLContext

run

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


processing library gestalt_p5 by Patrick Kochlik + Dennis Paul. (c) 2009