|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.loaders.textures.TextureFactory
public abstract class TextureFactory
The TextureFactory creates instances of AbstractTextureImage.
| Constructor Summary | |
|---|---|
TextureFactory()
|
|
| Method Summary | |
|---|---|
AbstractTexture |
createTexture(boolean withAlphaChannel)
Creates a new 2D- AbstractTexture instance and chooses
AbstractTexture.Format#RGB or AbstractTexture.Format#RGBA
depending on the withAlphachannel parameter. |
AbstractTexture |
createTexture(TextureFormat format)
Creates a new 2D- AbstractTexture instance. |
AbstractTexture |
createTexture(TextureImageFormat imageFormat)
Creates a new 2D- AbstractTexture instance. |
AbstractTexture |
createTexture(TextureType type,
TextureFormat format)
Creates a new AbstractTexture instance. |
AbstractTextureImage |
createTextureImage(int width,
int height,
int orgWidth,
int orgHeight,
int pixelSize)
Creates an instance of AbstractTextureImage with an initialized
ByteBuffer, which is returned by the AbstractTextureImage.getDataBuffer() method. |
AbstractTextureImage |
createTextureImage(int width,
int height,
int orgWidth,
int orgHeight,
int pixelSize,
boolean withAlphaChannel)
Creates an instance of AbstractTextureImage with an initialized
ByteBuffer, which is returned by the AbstractTextureImage.getDataBuffer() method. |
AbstractTextureImage |
createTextureImage(int width,
int height,
int orgWidth,
int orgHeight,
int pixelSize,
int dataSizeHint,
TextureImageInternalFormat internalFormat,
TextureImageFormat format)
Creates an instance of AbstractTextureImage with an initialized
ByteBuffer, which is returned by the AbstractTextureImage.getDataBuffer() method. |
AbstractTextureImage |
createTextureImage(int width,
int height,
int orgWidth,
int orgHeight,
int pixelSize,
TextureImageFormat format)
Creates an instance of AbstractTextureImage with an initialized
ByteBuffer, which is returned by the AbstractTextureImage.getDataBuffer() method. |
AbstractTextureImage |
createTextureImage(int width,
int height,
int orgWidth,
int orgHeight,
int pixelSize,
TextureImageInternalFormat internalFormat,
TextureImageFormat format)
Creates an instance of AbstractTextureImage with an initialized
ByteBuffer, which is returned by the AbstractTextureImage.getDataBuffer() method. |
protected abstract AbstractTextureImage |
createTextureImageImpl(int width,
int height,
int orgWidth,
int orgHeight,
int pixelSize,
int dataSize,
TextureImageInternalFormat internalFormat,
TextureImageFormat format)
Creates an instance of AbstractTextureImage with an initialized
ByteBuffer, which is returned by the AbstractTextureImage.getDataBuffer() method. |
protected abstract AbstractTexture |
createTextureImpl(TextureType type,
TextureFormat format)
Creates a new AbstractTexture instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextureFactory()
| Method Detail |
|---|
protected abstract AbstractTextureImage createTextureImageImpl(int width,
int height,
int orgWidth,
int orgHeight,
int pixelSize,
int dataSize,
TextureImageInternalFormat internalFormat,
TextureImageFormat format)
AbstractTextureImage with an initialized
ByteBuffer, which is returned by the AbstractTextureImage.getDataBuffer() method.
width - height - orgWidth - orgHeight - pixelSize - dataSize - format - internalFormat -
public final AbstractTextureImage createTextureImage(int width,
int height,
int orgWidth,
int orgHeight,
int pixelSize,
int dataSizeHint,
TextureImageInternalFormat internalFormat,
TextureImageFormat format)
AbstractTextureImage with an initialized
ByteBuffer, which is returned by the AbstractTextureImage.getDataBuffer() method.
width - height - orgWidth - orgHeight - pixelSize - dataSizeHint - if -1, the data-size is auto-calculated.format - internalFormat -
public final AbstractTextureImage createTextureImage(int width,
int height,
int orgWidth,
int orgHeight,
int pixelSize,
TextureImageInternalFormat internalFormat,
TextureImageFormat format)
AbstractTextureImage with an initialized
ByteBuffer, which is returned by the AbstractTextureImage.getDataBuffer() method.
width - height - orgWidth - orgHeight - pixelSize - format - internalFormat -
public final AbstractTextureImage createTextureImage(int width,
int height,
int orgWidth,
int orgHeight,
int pixelSize,
TextureImageFormat format)
AbstractTextureImage with an initialized
ByteBuffer, which is returned by the AbstractTextureImage.getDataBuffer() method.
width - height - orgWidth - orgHeight - pixelSize - format -
public final AbstractTextureImage createTextureImage(int width,
int height,
int orgWidth,
int orgHeight,
int pixelSize,
boolean withAlphaChannel)
AbstractTextureImage with an initialized
ByteBuffer, which is returned by the AbstractTextureImage.getDataBuffer() method.
width - height - orgWidth - orgHeight - pixelSize - withAlphaChannel -
public final AbstractTextureImage createTextureImage(int width,
int height,
int orgWidth,
int orgHeight,
int pixelSize)
AbstractTextureImage with an initialized
ByteBuffer, which is returned by the AbstractTextureImage.getDataBuffer() method.
width - height - orgWidth - orgHeight - pixelSize -
protected abstract AbstractTexture createTextureImpl(TextureType type,
TextureFormat format)
AbstractTexture instance.
type - format -
public final AbstractTexture createTexture(TextureType type,
TextureFormat format)
AbstractTexture instance.
type - format -
public final AbstractTexture createTexture(TextureFormat format)
AbstractTexture instance.
format -
public final AbstractTexture createTexture(TextureImageFormat imageFormat)
AbstractTexture instance.
format -
public final AbstractTexture createTexture(boolean withAlphaChannel)
AbstractTexture instance and chooses
AbstractTexture.Format#RGB or AbstractTexture.Format#RGBA
depending on the withAlphachannel parameter.
withAlphaChannel -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||