TextureSequence implementation
allowing existing textures
or image streams
to be used and replayed as frames.
| Modifier and Type | Field and Description |
|---|---|
| private volatile int | |
| private final List | |
| private volatile boolean | |
| private final int[] | |
| private int | |
| private String | |
| private final int | |
| private final int[] | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | |
| public final void | |
| public void | |
| public final int | |
| public final TextureSequence. | |
| public final int | |
| public TextureSequence. | getLastTexture()
Implements com. |
| public final boolean | |
| public TextureSequence. | getNextTexture(final GL gl)
Implements com. |
| public String | getRequiredExtensionsShaderStub()
Implements com. #extension GL_OES_EGL_image_external : enable |
| public int | getTextureFragmentShaderHashCode()
Implements com. |
| public String | getTextureLookupFragmentShaderImpl()
Implements com.
vec4 funcName(in getTextureSampler2DType() image, in vec2 texCoord) {
vec4 texColor = do_something_with(image, texCoord);
return texColor;
}
|
| public String | getTextureLookupFunctionName(final String
desired lookup function name. If desiredFuncName)null or ignored by the implementation,
a build-in name is returned.Implements com. |
| public int[] | |
| public String | getTextureSampler2DType()
Implements com. sampler2D or samplerExternalOES
depending on getLastTexture().
|
| public int | getTextureTarget()
Implements com. |
| public int | getTextureUnit()
Implements com. |
| public int[] | |
| public boolean | isTextureAvailable()
Implements com. getNextTexture(GL) and getLastTexture().
|
| public final void | |
| public final void | |
| public void |
| frameIdx | back to summary |
|---|---|
| private volatile int frameIdx | |
| frames | back to summary |
|---|---|
| private final List<TextureSequence. | |
| manualStepping | back to summary |
|---|---|
| private volatile boolean manualStepping | |
| texMinMagFilter | back to summary |
|---|---|
| private final int[] texMinMagFilter | |
| textureFragmentShaderHashCode | back to summary |
|---|---|
| private int textureFragmentShaderHashCode | |
| textureLookupFunctionName | back to summary |
|---|---|
| private String textureLookupFunctionName | |
| textureUnit | back to summary |
|---|---|
| private final int textureUnit | |
| texWrapST | back to summary |
|---|---|
| private final int[] texWrapST | |
| useBuildInTexLookup | back to summary |
|---|---|
| private final boolean useBuildInTexLookup | |
| ImageSequence | back to summary |
|---|---|
| public ImageSequence(final int textureUnit, final boolean useBuildInTexLookup) | |
| addFrame | back to summary |
|---|---|
| public final void addFrame(final GL gl, final Texture tex) | |
| addFrame | back to summary |
|---|---|
| public final void addFrame(final GL gl, final Class<?> context, final String imageResourcePath, final String imageSuffix) throws IOException | |
| destroy | back to summary |
|---|---|
| public void destroy(final GL gl) throws GLException | |
| getCurrentIdx | back to summary |
|---|---|
| public final int getCurrentIdx() | |
| getFrame | back to summary |
|---|---|
| public final TextureSequence. | |
| getFrameCount | back to summary |
|---|---|
| public final int getFrameCount() | |
| getLastTexture | back to summary |
|---|---|
| public TextureSequence. Implements com. Doc from com. Returns the last updated texture.
In case the instance is just initialized, it shall return a
| |
| getManualStepping | back to summary |
|---|---|
| public final boolean getManualStepping() | |
| getNextTexture | back to summary |
|---|---|
| public TextureSequence. Implements com. Doc from com. Returns the next texture to be rendered. Implementation shall return the next frame if available, may block if a next frame may arrive soon. Otherwise implementation shall return the last frame.
Shall return
| |
| getRequiredExtensionsShaderStub | back to summary |
|---|---|
| public String getRequiredExtensionsShaderStub() throws IllegalStateException Implements com. Doc from com. In case a shader extension is required, based on the implementation and the runtime GL profile, this method returns the preprocessor macros, e.g.: #extension GL_OES_EGL_image_external : enable
| |
| getTextureFragmentShaderHashCode | back to summary |
|---|---|
| public int getTextureFragmentShaderHashCode() Implements com. Doc from com. Returns the hash code of the strings:
Returns zero if TextureSequence instance.
Implementation shall cache the resulting hash code,
which must be reset to zero if
| |
| getTextureLookupFragmentShaderImpl | back to summary |
|---|---|
| public String getTextureLookupFragmentShaderImpl() throws IllegalStateException Implements com. Doc from com. Returns the complete texture2D lookup function code of type
vec4 funcName(in getTextureSampler2DType() image, in vec2 texCoord) {
vec4 texColor = do_something_with(image, texCoord);
return texColor;
}
funcName can be negotiated and queried via getTextureLookupFunctionName(String) will ignore the desired function name
and returns the build-in lookup function name.
| |
| getTextureLookupFunctionName | back to summary |
|---|---|
| public String getTextureLookupFunctionName(final String desiredFuncName) throws IllegalStateException Implements com.
| |
| getTextureMinMagFilter | back to summary |
|---|---|
| public int[] getTextureMinMagFilter() Implements com.
| |
| getTextureSampler2DType | back to summary |
|---|---|
| public String getTextureSampler2DType() throws IllegalStateException Implements com. Doc from com. Returns either
| |
| getTextureTarget | back to summary |
|---|---|
| public int getTextureTarget() Implements com. Doc from com. Returns the texture target used by implementation.
| |
| getTextureUnit | back to summary |
|---|---|
| public int getTextureUnit() Implements com. Doc from com. Return the texture unit used to render the current frame.
| |
| getTextureWrapST | back to summary |
|---|---|
| public int[] getTextureWrapST() Implements com.
| |
| isTextureAvailable | back to summary |
|---|---|
| public boolean isTextureAvailable() Implements com. Doc from com. Returns true if texture source is ready and a texture is available
via
| |
| setCurrentIdx | back to summary |
|---|---|
| public final void setCurrentIdx(final int idx) throws IndexOutOfBoundsException | |
| setManualStepping | back to summary |
|---|---|
| public final void setManualStepping(final boolean v) | |
| setParams | back to summary |
|---|---|
| public void setParams(final int magFilter, final int minFilter, final int wrapS, final int wrapT) | |