Package com.ardor3d.extension.model.md2
Class Md2Importer
java.lang.Object
com.ardor3d.extension.model.md2.Md2Importer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
load
(ResourceSource resource) Reads an MD2 file from the given resourceReads a MD2 file from the given resourcesetFlipTextureVertically
(boolean flipTextureVertically) setLoadTextures
(boolean loadTextures) setMinificationFilter
(Texture.MinificationFilter minificationFilter) setModelLocator
(ResourceLocator locator) setTextureLocator
(ResourceLocator locator) setUseCompression
(boolean useCompression)
-
Constructor Details
-
Md2Importer
public Md2Importer()
-
-
Method Details
-
isLoadTextures
public boolean isLoadTextures() -
setLoadTextures
-
setTextureLocator
-
setModelLocator
-
setFlipTextureVertically
-
isFlipTextureVertically
public boolean isFlipTextureVertically() -
setUseCompression
-
isUseCompression
public boolean isUseCompression() -
setMinificationFilter
-
getMinificationFilter
-
load
Reads an MD2 file from the given resource- Parameters:
resource
- a resource pointing to the model we wish to load.- Returns:
- an Md2DataStore data object containing the scene and other useful elements.
-
load
Reads a MD2 file from the given resource- Parameters:
resource
- the name of the resource to find.- Returns:
- an ObjGeometryStore data object containing the scene and other useful elements.
-