Gamp v0.0.7-54-gccdc599
Gamp: Graphics, Audio, Multimedia and Processing
Loading...
Searching...
No Matches
TextureSequence Class Reference

Simple TextureSequence implementation allowing existing textures or image streams to be used and replayed as frames. More...

#include <ImageSequence.hpp>

Collaboration diagram for TextureSequence:

Public Member Functions

final void addFrame (final GL gl, final Class<?> context, final String imageResourcePath, final String imageSuffix) throws IOException
 
final TextureSequence TextureFrame addFrame (final GL gl, final Texture tex)
 
final TextureSequence TextureFrame addFrame (final GL gl, final TextureSequence.TextureFrame frame)
 
void destroy (final GL gl) throws GLException
 
Vec4f getARatioLetterboxBackColor ()
 
final int getCurrentIdx ()
 
final TextureSequence TextureFrame getFrame (final int idx)
 
final int getFrameCount ()
 
TextureSequence TextureFrame getLastTexture () throws IllegalStateException
 
TextureSequence TextureFrame getNextTexture (final GL gl) throws IllegalStateException
 
String getRequiredExtensionsShaderStub () throws IllegalStateException
 
int getTextureFragmentShaderHashCode ()
 
String getTextureFragmentShaderHashID ()
 
String getTextureLookupFragmentShaderImpl () throws IllegalStateException
 
String getTextureLookupFunctionName () throws IllegalStateException
 
int[] getTextureMinMagFilter ()
 
String getTextureSampler2DType () throws IllegalStateException
 
int getTextureTarget ()
 
int getTextureUnit ()
 
int[] getTextureWrapST ()
 
 ImageSequence (final int textureUnit, final boolean useBuildInTexLookup)
 
final boolean isManualStepping ()
 
final boolean isSequenceAnimating ()
 Returns true if not isManualStepping() and getFrameCount() > 1.
 
boolean isTextureAvailable ()
 
void removeAllFrames ()
 
boolean removeFrame (final TextureFrame tex)
 
void setARatioAdjustment (final boolean v)
 
void setARatioLetterbox (final boolean v, final Vec4f backColor)
 
final void setCurrentIdx (final int idx) throws IndexOutOfBoundsException
 
final void setManualStepping (final boolean v)
 
void setParams (final int magFilter, final int minFilter, final int wrapS, final int wrapT)
 
String setTextureLookupFunctionName (final String texLookupFuncName) throws IllegalStateException
 
boolean useARatioAdjustment ()
 
boolean useARatioLetterbox ()
 

Detailed Description

Simple TextureSequence implementation allowing existing textures or image streams to be used and replayed as frames.

Definition at line 48 of file ImageSequence.hpp.

Member Function Documentation

◆ ImageSequence()

TextureSequence::ImageSequence ( final int textureUnit,
final boolean useBuildInTexLookup )
inline

Definition at line 61 of file ImageSequence.hpp.

◆ setParams()

void TextureSequence::setParams ( final int magFilter,
final int minFilter,
final int wrapS,
final int wrapT )
inline

Definition at line 66 of file ImageSequence.hpp.

◆ addFrame() [1/3]

final TextureSequence TextureFrame TextureSequence::addFrame ( final GL gl,
final Texture tex )
inline

Definition at line 73 of file ImageSequence.hpp.

Here is the caller graph for this function:

◆ addFrame() [2/3]

final TextureSequence TextureFrame TextureSequence::addFrame ( final GL gl,
final TextureSequence.TextureFrame frame )
inline

Definition at line 76 of file ImageSequence.hpp.

◆ removeFrame()

boolean TextureSequence::removeFrame ( final TextureFrame tex)
inline

Definition at line 85 of file ImageSequence.hpp.

◆ removeAllFrames()

void TextureSequence::removeAllFrames ( )
inline

Definition at line 88 of file ImageSequence.hpp.

◆ addFrame() [3/3]

final void TextureSequence::addFrame ( final GL gl,
final Class<?> context,
final String imageResourcePath,
final String imageSuffix ) throws IOException
inline

Definition at line 92 of file ImageSequence.hpp.

◆ getFrameCount()

final int TextureSequence::getFrameCount ( )
inline

Definition at line 101 of file ImageSequence.hpp.

◆ getCurrentIdx()

final int TextureSequence::getCurrentIdx ( )
inline

Definition at line 102 of file ImageSequence.hpp.

◆ setCurrentIdx()

final void TextureSequence::setCurrentIdx ( final int idx) throws IndexOutOfBoundsException
inline

Definition at line 103 of file ImageSequence.hpp.

◆ setManualStepping()

final void TextureSequence::setManualStepping ( final boolean v)
inline

Definition at line 109 of file ImageSequence.hpp.

◆ isManualStepping()

final boolean TextureSequence::isManualStepping ( )
inline

Definition at line 110 of file ImageSequence.hpp.

◆ isSequenceAnimating()

final boolean TextureSequence::isSequenceAnimating ( )
inline

Returns true if not isManualStepping() and getFrameCount() > 1.

Definition at line 113 of file ImageSequence.hpp.

◆ getFrame()

final TextureSequence TextureFrame TextureSequence::getFrame ( final int idx)
inline

Definition at line 114 of file ImageSequence.hpp.

◆ destroy()

void TextureSequence::destroy ( final GL gl) throws GLException
inline

Definition at line 116 of file ImageSequence.hpp.

◆ getTextureTarget()

int TextureSequence::getTextureTarget ( )
inline

Definition at line 124 of file ImageSequence.hpp.

Here is the caller graph for this function:

◆ getTextureUnit()

int TextureSequence::getTextureUnit ( )
inline

Definition at line 129 of file ImageSequence.hpp.

◆ getTextureMinMagFilter()

int[] TextureSequence::getTextureMinMagFilter ( )
inline

Definition at line 134 of file ImageSequence.hpp.

◆ getTextureWrapST()

int[] TextureSequence::getTextureWrapST ( )
inline

Definition at line 139 of file ImageSequence.hpp.

◆ useARatioAdjustment()

boolean TextureSequence::useARatioAdjustment ( )
inline

Defaults to true and toggling is supported via setARatioAdjustment(boolean)

Definition at line 150 of file ImageSequence.hpp.

◆ setARatioAdjustment()

void TextureSequence::setARatioAdjustment ( final boolean v)
inline

Defaults to true.

Definition at line 159 of file ImageSequence.hpp.

◆ useARatioLetterbox()

boolean TextureSequence::useARatioLetterbox ( )
inline

Defaults to false and toggling is supported via setARatioLetterbox(boolean, Vec4f)

Definition at line 168 of file ImageSequence.hpp.

◆ getARatioLetterboxBackColor()

Vec4f TextureSequence::getARatioLetterboxBackColor ( )
inline

Definition at line 171 of file ImageSequence.hpp.

◆ setARatioLetterbox()

void TextureSequence::setARatioLetterbox ( final boolean v,
final Vec4f backColor )
inline

Defaults to false.

Definition at line 180 of file ImageSequence.hpp.

◆ isTextureAvailable()

boolean TextureSequence::isTextureAvailable ( )
inline

Definition at line 188 of file ImageSequence.hpp.

Here is the caller graph for this function:

◆ getLastTexture()

TextureSequence TextureFrame TextureSequence::getLastTexture ( ) throws IllegalStateException
inline

Definition at line 191 of file ImageSequence.hpp.

◆ getNextTexture()

TextureSequence TextureFrame TextureSequence::getNextTexture ( final GL gl) throws IllegalStateException
inline

Definition at line 196 of file ImageSequence.hpp.

◆ getRequiredExtensionsShaderStub()

String TextureSequence::getRequiredExtensionsShaderStub ( ) throws IllegalStateException
inline

Definition at line 204 of file ImageSequence.hpp.

◆ getTextureSampler2DType()

String TextureSequence::getTextureSampler2DType ( ) throws IllegalStateException
inline

Definition at line 209 of file ImageSequence.hpp.

Here is the caller graph for this function:

◆ setTextureLookupFunctionName()

String TextureSequence::setTextureLookupFunctionName ( final String texLookupFuncName) throws IllegalStateException
inline

Definition at line 216 of file ImageSequence.hpp.

◆ getTextureLookupFunctionName()

String TextureSequence::getTextureLookupFunctionName ( ) throws IllegalStateException
inline

Definition at line 227 of file ImageSequence.hpp.

Here is the caller graph for this function:

◆ getTextureLookupFragmentShaderImpl()

String TextureSequence::getTextureLookupFragmentShaderImpl ( ) throws IllegalStateException
inline

Definition at line 232 of file ImageSequence.hpp.

Here is the caller graph for this function:

◆ getTextureFragmentShaderHashID()

String TextureSequence::getTextureFragmentShaderHashID ( )
inline

Definition at line 244 of file ImageSequence.hpp.

Here is the caller graph for this function:

◆ getTextureFragmentShaderHashCode()

int TextureSequence::getTextureFragmentShaderHashCode ( )
inline

Definition at line 254 of file ImageSequence.hpp.


The documentation for this class was generated from the following file: