org.jagatoo.loaders.models._util
Interface AppearanceFactory


public interface AppearanceFactory

Insert type comment here.


Field Summary
static int APP_FLAG_STATIC
           
 
Method Summary
 void applyAppearance(NamedObject appearance, NamedObject geometry)
           
 void applyColoringAttributes(NamedObject coloringAttribs, NamedObject appearance)
           
 void applyMaterial(NamedObject material, NamedObject appearance)
           
 void applyPolygonAttributes(NamedObject polygonAttribs, NamedObject appearance)
           
 void applyRenderingAttributes(NamedObject renderingAttribs, NamedObject appearance)
           
 void applyTexture(AbstractTexture texture, int textureUnit, NamedObject appearance)
           
 void applyTextureAttributes(NamedObject textureAttribs, int textureUnit, NamedObject appearance)
           
 void applyTextureCoordGeneration(NamedObject texCoordGen, int textureUnit, NamedObject appearance)
           
 void applyTransparancyAttributes(NamedObject transpAttribs, NamedObject appearance)
           
 NamedObject createAppearance(java.lang.String name, int flags)
           
 NamedObject createColoringAttributes(java.lang.String name)
           
 NamedObject createMaterial(java.lang.String name)
           
 NamedObject createPolygonAttributes(java.lang.String name)
           
 NamedObject createRenderingAttributesAttributes(java.lang.String name)
           
 NamedObject createStandardAppearance(java.lang.String name, AbstractTexture texture0, int flags)
           
 NamedObject createStandardAppearance(java.lang.String name, java.lang.String textureName0, java.net.URL baseURL, int flags)
           
 AbstractTexture createTexture(AbstractTextureImage texImage0, boolean generateMipmaps)
           
 NamedObject createTextureAttributes(java.lang.String name)
           
 NamedObject createTextureCoordGeneration(java.lang.String name)
           
 AbstractTextureImage createTextureImage(TextureImageFormat format, int width, int height)
           
 AbstractTextureImage createTextureImage(TextureImageFormat format, int orgWidth, int orgHeight, int width, int height)
           
 NamedObject createTransparencyAttributes(java.lang.String name)
           
 AbstractTexture getFallbackTexture()
           
 boolean isFallbackTexture(AbstractTexture texture)
           
 AbstractTexture loadOrGetTexture(java.lang.String texName, boolean flipVertically, boolean acceptAlpha, boolean loadMipmaps, boolean allowStreching, boolean acceptFallbackTexture)
           
 AbstractTexture loadOrGetTexture(java.lang.String texName, java.net.URL baseURL, boolean flipVertically, boolean acceptAlpha, boolean loadMipmaps, boolean allowStreching, boolean acceptFallbackTexture)
           
 AbstractTexture loadTexture(java.io.InputStream in, java.lang.String texName, boolean flipVertically, boolean acceptAlpha, boolean loadMipmaps, boolean allowStreching, boolean acceptFallbackTexture)
           
 AbstractTexture loadTexture(java.net.URL url, boolean flipVertically, boolean acceptAlpha, boolean loadMipmaps, boolean allowStreching, boolean acceptFallbackTexture)
           
 void setColoringAttribsColor(NamedObject coloringAttribs, float[] color, int offset, int colorSize)
           
 void setColoringAttribsShadeModel(NamedObject coloringAttribs, ShadeModel shadeModel)
           
 void setMaterialAmbientColor(NamedObject material, float r, float g, float b)
           
 void setMaterialColorTarget(NamedObject material, ColorTarget colorTarget)
           
 void setMaterialDiffuseColor(NamedObject material, float r, float g, float b)
           
 void setMaterialEmissiveColor(NamedObject material, float r, float g, float b)
           
 void setMaterialLightingEnabled(NamedObject material, boolean lightingEnabled)
           
 void setMaterialNormalizeNormals(NamedObject material, boolean normalizeNormals)
           
 void setMaterialShininess(NamedObject material, float shininess)
           
 void setMaterialSpecularColor(NamedObject material, float r, float g, float b)
           
 void setPolygonAttribsAntialiasing(NamedObject polygonAttribs, boolean anitaliasing)
           
 void setPolygonAttribsBackfaceNormalFlip(NamedObject polygonAttribs, boolean backfaceNormalFlip)
           
 void setPolygonAttribsDrawMode(NamedObject polygonAttribs, DrawMode drawMode)
           
 void setPolygonAttribsFaceCullMode(NamedObject polygonAttribs, FaceCullMode faceCullMode)
           
 void setPolygonAttribsPolygonOffset(NamedObject polygonAttribs, float polygonOffset)
           
 void setPolygonAttribsPolygonOffsetFactor(NamedObject polygonAttribs, float polygonOffsetFactor)
           
 void setPolygonAttribsSortingEnabled(NamedObject polygonAttribs, boolean sortingEnabled)
           
 void setRenderingAttribsAlphaTestFunction(NamedObject renderingAttribs, TestFunction alphaTestFunction)
           
 void setRenderingAttribsAlphaTestValue(NamedObject renderingAttribs, float alphaTestValue)
           
 void setRenderingAttribsColorWriteMask(NamedObject renderingAttribs, int colorWriteMask)
           
 void setRenderingAttribsDepthBufferEnabled(NamedObject renderingAttribs, boolean depthBufferEnabled)
           
 void setRenderingAttribsDepthBufferWriteEnabled(NamedObject renderingAttribs, boolean depthBufferWriteEnabled)
           
 void setRenderingAttribsDepthTestFunction(NamedObject renderingAttribs, TestFunction depthTestFunction)
           
 void setRenderingAttribsIgnoreVertexColors(NamedObject renderingAttribs, boolean ignoreVertexColors)
           
 void setRenderingAttribsStencilEnabled(NamedObject renderingAttribs, boolean stencilEnabled)
           
 void setRenderingAttribsStencilMask(NamedObject renderingAttribs, int stencilMask)
           
 void setRenderingAttribsStencilRef(NamedObject renderingAttribs, int stencilRef)
           
 void setRenderingAttribsStencilTestFunction(NamedObject renderingAttribs, TestFunction stencilTestFunction)
           
 void setTexCoordGenerationGenMode(NamedObject texCoordGen, TexCoordGenMode genMode)
           
 void setTexCoordGenerationNumTexGenUnits(NamedObject texCoordGen, int numTexGenUnits)
           
 void setTexCoordGenerationPlaneQ(NamedObject texCoordGen, float[] planeQ, int offset)
           
 void setTexCoordGenerationPlaneR(NamedObject texCoordGen, float[] planeR, int offset)
           
 void setTexCoordGenerationPlaneS(NamedObject texCoordGen, float[] planeS, int offset)
           
 void setTexCoordGenerationPlaneT(NamedObject texCoordGen, float[] planeT, int offset)
           
 void setTextureAttribsCombineAlphaFunction(NamedObject textureAttribs, int channel, TextureCombineFunction combineAlphaFunction)
           
 void setTextureAttribsCombineAlphaMode(NamedObject textureAttribs, TextureCombineMode combineAlphaMode)
           
 void setTextureAttribsCombineAlphaScale(NamedObject textureAttribs, int combineAlphaScale)
           
 void setTextureAttribsCombineAlphaSource(NamedObject textureAttribs, int channel, TextureCombineSource combineAlphaSource)
           
 void setTextureAttribsCombineRGBFunction(NamedObject textureAttribs, int channel, TextureCombineFunction combineRGBFunction)
           
 void setTextureAttribsCombineRGBMode(NamedObject textureAttribs, TextureCombineMode combineRGBMode)
           
 void setTextureAttribsCombineRGBScale(NamedObject textureAttribs, int combineRGBScale)
           
 void setTextureAttribsCombineRGBSource(NamedObject textureAttribs, int channel, TextureCombineSource combineRGBSource)
           
 void setTextureAttribsCompareFunc(NamedObject textureAttribs, CompareFunction compareFunc)
           
 void setTextureAttribsCompareMode(NamedObject textureAttribs, TextureCompareMode compareMode)
           
 void setTextureAttribsPerspectiveCorrectionMode(NamedObject textureAttribs, PerspectiveCorrectionMode perspCorrMode)
           
 void setTextureAttribsTextureBlendColor(NamedObject textureAttribs, float[] texBlendColor, int offset, int colorSize)
           
 void setTextureAttribsTextureMode(NamedObject textureAttribs, TextureMode textureMode)
           
 void setTextureAttribsTextureTransfrom(NamedObject textureAttribs, org.openmali.vecmath2.Matrix4f textureTransform)
           
 void setTextureBoundaryModeS(AbstractTexture texture, TextureBoundaryMode boundaryModeS)
           
 void setTextureBoundaryModeT(AbstractTexture texture, TextureBoundaryMode boundaryModeT)
           
 void setTextureMagFilter(AbstractTexture texture, TextureMagFilter magFilter)
           
 void setTextureMinFilter(AbstractTexture texture, TextureMinFilter minFilter)
           
 void setTransparencyAttribsBlendMode(NamedObject transpAttribs, BlendMode blendMode)
           
 void setTransparencyAttribsDestBlendFunc(NamedObject transpAttribs, BlendFunction dstBlendFunc)
           
 void setTransparencyAttribsSortingEnabled(NamedObject transpAttribs, boolean sortingEnabled)
           
 void setTransparencyAttribsSourceBlendFunc(NamedObject transpAttribs, BlendFunction srcBlendFunc)
           
 void setTransparencyAttribsTransparency(NamedObject transpAttribs, float transparency)
           
 

Field Detail

APP_FLAG_STATIC

static final int APP_FLAG_STATIC
See Also:
Constant Field Values
Method Detail

createTransparencyAttributes

NamedObject createTransparencyAttributes(java.lang.String name)

setTransparencyAttribsSourceBlendFunc

void setTransparencyAttribsSourceBlendFunc(NamedObject transpAttribs,
                                           BlendFunction srcBlendFunc)

setTransparencyAttribsDestBlendFunc

void setTransparencyAttribsDestBlendFunc(NamedObject transpAttribs,
                                         BlendFunction dstBlendFunc)

setTransparencyAttribsBlendMode

void setTransparencyAttribsBlendMode(NamedObject transpAttribs,
                                     BlendMode blendMode)

setTransparencyAttribsTransparency

void setTransparencyAttribsTransparency(NamedObject transpAttribs,
                                        float transparency)

setTransparencyAttribsSortingEnabled

void setTransparencyAttribsSortingEnabled(NamedObject transpAttribs,
                                          boolean sortingEnabled)

applyTransparancyAttributes

void applyTransparancyAttributes(NamedObject transpAttribs,
                                 NamedObject appearance)

createMaterial

NamedObject createMaterial(java.lang.String name)

setMaterialColorTarget

void setMaterialColorTarget(NamedObject material,
                            ColorTarget colorTarget)

setMaterialAmbientColor

void setMaterialAmbientColor(NamedObject material,
                             float r,
                             float g,
                             float b)

setMaterialEmissiveColor

void setMaterialEmissiveColor(NamedObject material,
                              float r,
                              float g,
                              float b)

setMaterialDiffuseColor

void setMaterialDiffuseColor(NamedObject material,
                             float r,
                             float g,
                             float b)

setMaterialSpecularColor

void setMaterialSpecularColor(NamedObject material,
                              float r,
                              float g,
                              float b)

setMaterialShininess

void setMaterialShininess(NamedObject material,
                          float shininess)

setMaterialNormalizeNormals

void setMaterialNormalizeNormals(NamedObject material,
                                 boolean normalizeNormals)

setMaterialLightingEnabled

void setMaterialLightingEnabled(NamedObject material,
                                boolean lightingEnabled)

applyMaterial

void applyMaterial(NamedObject material,
                   NamedObject appearance)

createColoringAttributes

NamedObject createColoringAttributes(java.lang.String name)

setColoringAttribsShadeModel

void setColoringAttribsShadeModel(NamedObject coloringAttribs,
                                  ShadeModel shadeModel)

setColoringAttribsColor

void setColoringAttribsColor(NamedObject coloringAttribs,
                             float[] color,
                             int offset,
                             int colorSize)

applyColoringAttributes

void applyColoringAttributes(NamedObject coloringAttribs,
                             NamedObject appearance)

createRenderingAttributesAttributes

NamedObject createRenderingAttributesAttributes(java.lang.String name)

setRenderingAttribsDepthBufferEnabled

void setRenderingAttribsDepthBufferEnabled(NamedObject renderingAttribs,
                                           boolean depthBufferEnabled)

setRenderingAttribsDepthBufferWriteEnabled

void setRenderingAttribsDepthBufferWriteEnabled(NamedObject renderingAttribs,
                                                boolean depthBufferWriteEnabled)

setRenderingAttribsAlphaTestValue

void setRenderingAttribsAlphaTestValue(NamedObject renderingAttribs,
                                       float alphaTestValue)

setRenderingAttribsAlphaTestFunction

void setRenderingAttribsAlphaTestFunction(NamedObject renderingAttribs,
                                          TestFunction alphaTestFunction)

setRenderingAttribsDepthTestFunction

void setRenderingAttribsDepthTestFunction(NamedObject renderingAttribs,
                                          TestFunction depthTestFunction)

setRenderingAttribsIgnoreVertexColors

void setRenderingAttribsIgnoreVertexColors(NamedObject renderingAttribs,
                                           boolean ignoreVertexColors)

setRenderingAttribsStencilEnabled

void setRenderingAttribsStencilEnabled(NamedObject renderingAttribs,
                                       boolean stencilEnabled)

setRenderingAttribsStencilTestFunction

void setRenderingAttribsStencilTestFunction(NamedObject renderingAttribs,
                                            TestFunction stencilTestFunction)

setRenderingAttribsStencilRef

void setRenderingAttribsStencilRef(NamedObject renderingAttribs,
                                   int stencilRef)

setRenderingAttribsStencilMask

void setRenderingAttribsStencilMask(NamedObject renderingAttribs,
                                    int stencilMask)

setRenderingAttribsColorWriteMask

void setRenderingAttribsColorWriteMask(NamedObject renderingAttribs,
                                       int colorWriteMask)

applyRenderingAttributes

void applyRenderingAttributes(NamedObject renderingAttribs,
                              NamedObject appearance)

createPolygonAttributes

NamedObject createPolygonAttributes(java.lang.String name)

setPolygonAttribsFaceCullMode

void setPolygonAttribsFaceCullMode(NamedObject polygonAttribs,
                                   FaceCullMode faceCullMode)

setPolygonAttribsDrawMode

void setPolygonAttribsDrawMode(NamedObject polygonAttribs,
                               DrawMode drawMode)

setPolygonAttribsPolygonOffset

void setPolygonAttribsPolygonOffset(NamedObject polygonAttribs,
                                    float polygonOffset)

setPolygonAttribsPolygonOffsetFactor

void setPolygonAttribsPolygonOffsetFactor(NamedObject polygonAttribs,
                                          float polygonOffsetFactor)

setPolygonAttribsBackfaceNormalFlip

void setPolygonAttribsBackfaceNormalFlip(NamedObject polygonAttribs,
                                         boolean backfaceNormalFlip)

setPolygonAttribsAntialiasing

void setPolygonAttribsAntialiasing(NamedObject polygonAttribs,
                                   boolean anitaliasing)

setPolygonAttribsSortingEnabled

void setPolygonAttribsSortingEnabled(NamedObject polygonAttribs,
                                     boolean sortingEnabled)

applyPolygonAttributes

void applyPolygonAttributes(NamedObject polygonAttribs,
                            NamedObject appearance)

setTextureBoundaryModeS

void setTextureBoundaryModeS(AbstractTexture texture,
                             TextureBoundaryMode boundaryModeS)

setTextureBoundaryModeT

void setTextureBoundaryModeT(AbstractTexture texture,
                             TextureBoundaryMode boundaryModeT)

setTextureMagFilter

void setTextureMagFilter(AbstractTexture texture,
                         TextureMagFilter magFilter)

setTextureMinFilter

void setTextureMinFilter(AbstractTexture texture,
                         TextureMinFilter minFilter)

applyTexture

void applyTexture(AbstractTexture texture,
                  int textureUnit,
                  NamedObject appearance)

createTextureAttributes

NamedObject createTextureAttributes(java.lang.String name)

setTextureAttribsTextureMode

void setTextureAttribsTextureMode(NamedObject textureAttribs,
                                  TextureMode textureMode)

setTextureAttribsPerspectiveCorrectionMode

void setTextureAttribsPerspectiveCorrectionMode(NamedObject textureAttribs,
                                                PerspectiveCorrectionMode perspCorrMode)

setTextureAttribsTextureBlendColor

void setTextureAttribsTextureBlendColor(NamedObject textureAttribs,
                                        float[] texBlendColor,
                                        int offset,
                                        int colorSize)

setTextureAttribsTextureTransfrom

void setTextureAttribsTextureTransfrom(NamedObject textureAttribs,
                                       org.openmali.vecmath2.Matrix4f textureTransform)

setTextureAttribsCombineRGBMode

void setTextureAttribsCombineRGBMode(NamedObject textureAttribs,
                                     TextureCombineMode combineRGBMode)

setTextureAttribsCombineAlphaMode

void setTextureAttribsCombineAlphaMode(NamedObject textureAttribs,
                                       TextureCombineMode combineAlphaMode)

setTextureAttribsCombineRGBSource

void setTextureAttribsCombineRGBSource(NamedObject textureAttribs,
                                       int channel,
                                       TextureCombineSource combineRGBSource)

setTextureAttribsCombineAlphaSource

void setTextureAttribsCombineAlphaSource(NamedObject textureAttribs,
                                         int channel,
                                         TextureCombineSource combineAlphaSource)

setTextureAttribsCombineRGBFunction

void setTextureAttribsCombineRGBFunction(NamedObject textureAttribs,
                                         int channel,
                                         TextureCombineFunction combineRGBFunction)

setTextureAttribsCombineAlphaFunction

void setTextureAttribsCombineAlphaFunction(NamedObject textureAttribs,
                                           int channel,
                                           TextureCombineFunction combineAlphaFunction)

setTextureAttribsCombineRGBScale

void setTextureAttribsCombineRGBScale(NamedObject textureAttribs,
                                      int combineRGBScale)

setTextureAttribsCombineAlphaScale

void setTextureAttribsCombineAlphaScale(NamedObject textureAttribs,
                                        int combineAlphaScale)

setTextureAttribsCompareMode

void setTextureAttribsCompareMode(NamedObject textureAttribs,
                                  TextureCompareMode compareMode)

setTextureAttribsCompareFunc

void setTextureAttribsCompareFunc(NamedObject textureAttribs,
                                  CompareFunction compareFunc)

applyTextureAttributes

void applyTextureAttributes(NamedObject textureAttribs,
                            int textureUnit,
                            NamedObject appearance)

createTextureCoordGeneration

NamedObject createTextureCoordGeneration(java.lang.String name)

setTexCoordGenerationGenMode

void setTexCoordGenerationGenMode(NamedObject texCoordGen,
                                  TexCoordGenMode genMode)

setTexCoordGenerationNumTexGenUnits

void setTexCoordGenerationNumTexGenUnits(NamedObject texCoordGen,
                                         int numTexGenUnits)

setTexCoordGenerationPlaneS

void setTexCoordGenerationPlaneS(NamedObject texCoordGen,
                                 float[] planeS,
                                 int offset)

setTexCoordGenerationPlaneT

void setTexCoordGenerationPlaneT(NamedObject texCoordGen,
                                 float[] planeT,
                                 int offset)

setTexCoordGenerationPlaneR

void setTexCoordGenerationPlaneR(NamedObject texCoordGen,
                                 float[] planeR,
                                 int offset)

setTexCoordGenerationPlaneQ

void setTexCoordGenerationPlaneQ(NamedObject texCoordGen,
                                 float[] planeQ,
                                 int offset)

applyTextureCoordGeneration

void applyTextureCoordGeneration(NamedObject texCoordGen,
                                 int textureUnit,
                                 NamedObject appearance)

createAppearance

NamedObject createAppearance(java.lang.String name,
                             int flags)

createStandardAppearance

NamedObject createStandardAppearance(java.lang.String name,
                                     AbstractTexture texture0,
                                     int flags)

createStandardAppearance

NamedObject createStandardAppearance(java.lang.String name,
                                     java.lang.String textureName0,
                                     java.net.URL baseURL,
                                     int flags)

applyAppearance

void applyAppearance(NamedObject appearance,
                     NamedObject geometry)

getFallbackTexture

AbstractTexture getFallbackTexture()

isFallbackTexture

boolean isFallbackTexture(AbstractTexture texture)

loadTexture

AbstractTexture loadTexture(java.io.InputStream in,
                            java.lang.String texName,
                            boolean flipVertically,
                            boolean acceptAlpha,
                            boolean loadMipmaps,
                            boolean allowStreching,
                            boolean acceptFallbackTexture)

loadTexture

AbstractTexture loadTexture(java.net.URL url,
                            boolean flipVertically,
                            boolean acceptAlpha,
                            boolean loadMipmaps,
                            boolean allowStreching,
                            boolean acceptFallbackTexture)

loadOrGetTexture

AbstractTexture loadOrGetTexture(java.lang.String texName,
                                 java.net.URL baseURL,
                                 boolean flipVertically,
                                 boolean acceptAlpha,
                                 boolean loadMipmaps,
                                 boolean allowStreching,
                                 boolean acceptFallbackTexture)

loadOrGetTexture

AbstractTexture loadOrGetTexture(java.lang.String texName,
                                 boolean flipVertically,
                                 boolean acceptAlpha,
                                 boolean loadMipmaps,
                                 boolean allowStreching,
                                 boolean acceptFallbackTexture)

createTextureImage

AbstractTextureImage createTextureImage(TextureImageFormat format,
                                        int width,
                                        int height)

createTextureImage

AbstractTextureImage createTextureImage(TextureImageFormat format,
                                        int orgWidth,
                                        int orgHeight,
                                        int width,
                                        int height)

createTexture

AbstractTexture createTexture(AbstractTextureImage texImage0,
                              boolean generateMipmaps)