gestalt.candidates
Class NativeMovieTextureProducer
java.lang.Object
gestalt.shape.AbstractDrawable
gestalt.candidates.NativeMovieTextureProducer
- All Implemented Interfaces:
- Drawable, java.lang.Runnable
public class NativeMovieTextureProducer
- extends AbstractDrawable
- implements java.lang.Runnable
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NativeMovieTextureProducer
public NativeMovieTextureProducer(java.lang.String theNativeLibrary,
JoglMaterialPluginNonPowerOfTwoTextureReference theTexture,
java.lang.String theFileName,
float theFPS)
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