public class ModelWriterSettings extends WriterSettings
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ARG_DEFAULT_COMPRESSION
Texture default file format compression.
|
static java.lang.String |
ARG_FILTERS
MapType filter list argument for texture writer.
|
static java.lang.String |
ARG_FORMAT
Texture format argument for texture writer.
|
static java.lang.String |
ARG_IGNORE_WRITE |
static java.lang.String |
ARG_MAX_SIZE
Texture max size argument for texture writer.
|
static java.lang.String |
ARG_MERGE_DIFFUSE_ALPHA |
static java.lang.String |
ARG_OPENGLES_COMPRESION
Texture default file format compression.
|
static java.lang.String |
ARG_PREPEND_PATH |
static java.lang.String |
ARG_REMOVE_ALPHA
Remove alpha channel argument for texture writer.
|
static java.lang.String |
ARG_RENAME_FILE |
static java.lang.String |
ARG_SIZE_POW_TWO
Texture max size argument for texture writer.
|
boolean |
compressed
Compression of JMA format.
|
Stream |
motionsDir
Separate model and motions, specify the motion directory.
|
Array<Stream> |
motionsOut
List of motions written by the
IModelWriter, filled when motionsDir is not null and model writter is jmf/jma formats |
Optimizer |
optimizer
Optimization options.
|
Array<Stream> |
texturesOut
List of motions written by the
IModelWriter |
java.lang.String |
textureWriterOptions
String representation of the parameters from:
#setTextureWriterOptions(String, boolean, boolean, boolean, Size, boolean, boolean, MapType[], String, boolean) |
key, lzmaCompression, stream| Constructor and Description |
|---|
ModelWriterSettings() |
| Modifier and Type | Method and Description |
|---|---|
void |
addStreamListener(IStreamAccessListener l) |
ModelWriterSettings |
clone() |
void |
fireStreamAccess_(Stream stream)
Internal use by
IModelWriter |
void |
preProcessAfterTexture(Model model)
Internal use by
IModelWriter |
void |
preProcessBeforeTexture(Model model)
Internal use by
IModelWriter |
void |
setTextureWriterIgnore()
Ignore texture writting
|
void |
setTextureWriterOptions(java.lang.String format,
boolean useDefaultCompression,
boolean openGLEsCompression,
boolean sizePox2,
Size maxSize,
boolean removeUnusedAlphaChannel,
boolean mergeDiffuseOpacityMap,
Map.MapType[] filters,
java.lang.String preprendPath,
boolean renameFile)
Texture writer options when using JMF and JMA format
|
public static final java.lang.String ARG_FORMAT
public static final java.lang.String ARG_DEFAULT_COMPRESSION
public static final java.lang.String ARG_OPENGLES_COMPRESION
public static final java.lang.String ARG_SIZE_POW_TWO
public static final java.lang.String ARG_MAX_SIZE
public static final java.lang.String ARG_FILTERS
public static final java.lang.String ARG_REMOVE_ALPHA
public static final java.lang.String ARG_MERGE_DIFFUSE_ALPHA
public static final java.lang.String ARG_PREPEND_PATH
public static final java.lang.String ARG_RENAME_FILE
public static final java.lang.String ARG_IGNORE_WRITE
public boolean compressed
public Optimizer optimizer
public java.lang.String textureWriterOptions
#setTextureWriterOptions(String, boolean, boolean, boolean, Size, boolean, boolean, MapType[], String, boolean)public final Array<Stream> texturesOut
IModelWriterpublic Stream motionsDir
motionsOutpublic final Array<Stream> motionsOut
IModelWriter, filled when motionsDir is not null and model writter is jmf/jma formatspublic final ModelWriterSettings clone()
clone in class WriterSettingspublic final void addStreamListener(IStreamAccessListener l)
l - register a listener to track Stream opened/used by the reader.public final void fireStreamAccess_(Stream stream)
IModelWriterpublic final void setTextureWriterOptions(java.lang.String format,
boolean useDefaultCompression,
boolean openGLEsCompression,
boolean sizePox2,
Size maxSize,
boolean removeUnusedAlphaChannel,
boolean mergeDiffuseOpacityMap,
Map.MapType[] filters,
java.lang.String preprendPath,
boolean renameFile)
format - Optional: extension of the texture formatuseDefaultCompression - Optional: use default file format compression (use DDS/TGA/PSD compression)sizePox2 - Optional: resize texture to power of two dimensionmaxSize - Optional: maximum texture sizeremoveUnusedAlphaChannel - remove unused alpha channelfilters - Optional: list of MapType to remove from the Model descriptionsetTextureWriterIgnore()public void setTextureWriterIgnore()
#setTextureWriterOptions(String, boolean, boolean, boolean, Size, boolean, boolean, MapType[], String, boolean)public final void preProcessBeforeTexture(Model model)
IModelWriterpublic final void preProcessAfterTexture(Model model)
IModelWriterBonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com