org.ogre4j
Interface IMeshManager

All Superinterfaces:
IAllocatedObject<IResourceAllocPolicy>, IManualResourceLoader, INativeObject, IResourceAllocatedObject, IResourceManager, IScriptLoader, ISingleton<IMeshManager>
All Known Implementing Classes:
MeshManager

public interface IMeshManager
extends INativeObject, IResourceManager, IManualResourceLoader, ISingleton<IMeshManager>


Nested Class Summary
static interface IMeshManager.IMeshBuildParams
           
static interface IMeshManager.IMeshBuildParamsMap
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IResourceManager
IResourceManager.IResourceCreateOrRetrieveResult, IResourceManager.IResourceHandleMap, IResourceManager.IResourceMap, IResourceManager.IResourceMapIterator
 
Method Summary
 void _initialise()
          Initialises the manager, only to be called by OGRE internally.
 void createBezierPatch(IPatchMeshPtr returnValue, java.lang.String name, java.lang.String groupName, VoidPointer controlPointBuffer, IVertexDeclaration declaration, int width, int height, int uMaxSubdivisionLevel, int vMaxSubdivisionLevel, PatchSurface.VisibleSide visibleSide, HardwareBuffer.Usage vbUsage, HardwareBuffer.Usage ibUsage, boolean vbUseShadow, boolean ibUseShadow)
          Creates a Bezier patch based on an array of control vertices.
 void createCurvedIllusionPlane(IMeshPtr returnValue, java.lang.String name, java.lang.String groupName, IPlane plane, float width, float height, float curvature, int xsegments, int ysegments, boolean normals, int numTexCoordSets, float uTile, float vTile, IVector3 upVector, IQuaternion orientation, HardwareBuffer.Usage vertexBufferUsage, HardwareBuffer.Usage indexBufferUsage, boolean vertexShadowBuffer, boolean indexShadowBuffer, int ySegmentsToKeep)
          Creates a plane, which because of it's texture coordinates looks like a curved surface, useful for skies in a skybox.
 void createCurvedPlane(IMeshPtr returnValue, java.lang.String name, java.lang.String groupName, IPlane plane, float width, float height, float bow, int xsegments, int ysegments, boolean normals, int numTexCoordSets, float xTile, float yTile, IVector3 upVector, HardwareBuffer.Usage vertexBufferUsage, HardwareBuffer.Usage indexBufferUsage, boolean vertexShadowBuffer, boolean indexShadowBuffer)
          Creates a genuinely curved plane, by default majoring on the x/y axes facing positive Z.
 void createManual(IMeshPtr returnValue, java.lang.String name, java.lang.String groupName, IManualResourceLoader loader)
          Creates a new specifically for manual definition rather than loading from an object file.
 void createOrRetrieve(IResourceManager.IResourceCreateOrRetrieveResult returnValue, java.lang.String name, java.lang.String group, boolean isManual, IManualResourceLoader loader, INameValuePairList params, HardwareBuffer.Usage vertexBufferUsage, HardwareBuffer.Usage indexBufferUsage, boolean vertexBufferShadowed, boolean indexBufferShadowed)
          Create a new mesh, or retrieve an existing one with the same name if it already exists.
 void createPlane(IMeshPtr returnValue, java.lang.String name, java.lang.String groupName, IPlane plane, float width, float height, int xsegments, int ysegments, boolean normals, int numTexCoordSets, float uTile, float vTile, IVector3 upVector, HardwareBuffer.Usage vertexBufferUsage, HardwareBuffer.Usage indexBufferUsage, boolean vertexShadowBuffer, boolean indexShadowBuffer)
          Creates a basic plane, by default majoring on the x/y axes facing positive Z.
 float getBoundsPaddingFactor()
          Gets the factor by which the bounding box of an entity is padded.
 IMeshSerializerListener getListener()
          Gets the listener used to control mesh loading through the serializer.
 boolean getPrepareAllMeshesForShadowVolumes()
          Retrieves whether all Meshes should prepare themselves for shadow volumes.
 void load(IMeshPtr returnValue, java.lang.String filename, java.lang.String groupName, HardwareBuffer.Usage vertexBufferUsage, HardwareBuffer.Usage indexBufferUsage, boolean vertexBufferShadowed, boolean indexBufferShadowed)
          Loads a mesh from a file, making it immediately available for use.
 void loadResource(IResource res)
          Called when a resource wishes to prepare.
 void prepare(IMeshPtr returnValue, java.lang.String filename, java.lang.String groupName, HardwareBuffer.Usage vertexBufferUsage, HardwareBuffer.Usage indexBufferUsage, boolean vertexBufferShadowed, boolean indexBufferShadowed)
          Prepares a mesh for loading from a file.
 void setBoundsPaddingFactor(float paddingFactor)
          Sets the factor by which the bounding box of an entity is padded
 void setListener(IMeshSerializerListener listener)
          Sets the listener used to control mesh loading through the serializer.
 void setPrepareAllMeshesForShadowVolumes(boolean enable)
          Tells the mesh manager that all future meshes should prepare themselves for shadow volumes on loading.
 
Methods inherited from interface org.ogre4j.IResourceManager
_notifyResourceLoaded, _notifyResourceTouched, _notifyResourceUnloaded, create, createOrRetrieve, getByHandle, getByName, getLoadingOrder, getMemoryBudget, getMemoryUsage, getResourceIterator, getResourceType, getScriptPatterns, getVerbose, load, parseScript, prepare, reloadAll, reloadUnreferencedResources, remove, remove, remove, removeAll, resourceExists, resourceExists, setMemoryBudget, setVerbose, unload, unload, unloadAll, unloadUnreferencedResources
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 
Methods inherited from interface org.ogre4j.IManualResourceLoader
prepareResource
 

Method Detail

_initialise

void _initialise()
Initialises the manager, only to be called by OGRE internally.


createOrRetrieve

void createOrRetrieve(IResourceManager.IResourceCreateOrRetrieveResult returnValue,
                      java.lang.String name,
                      java.lang.String group,
                      boolean isManual,
                      IManualResourceLoader loader,
                      INameValuePairList params,
                      HardwareBuffer.Usage vertexBufferUsage,
                      HardwareBuffer.Usage indexBufferUsage,
                      boolean vertexBufferShadowed,
                      boolean indexBufferShadowed)
Create a new mesh, or retrieve an existing one with the same name if it already exists.


prepare

void prepare(IMeshPtr returnValue,
             java.lang.String filename,
             java.lang.String groupName,
             HardwareBuffer.Usage vertexBufferUsage,
             HardwareBuffer.Usage indexBufferUsage,
             boolean vertexBufferShadowed,
             boolean indexBufferShadowed)
Prepares a mesh for loading from a file. This does the IO in advance of the call to .


load

void load(IMeshPtr returnValue,
          java.lang.String filename,
          java.lang.String groupName,
          HardwareBuffer.Usage vertexBufferUsage,
          HardwareBuffer.Usage indexBufferUsage,
          boolean vertexBufferShadowed,
          boolean indexBufferShadowed)
Loads a mesh from a file, making it immediately available for use.


createManual

void createManual(IMeshPtr returnValue,
                  java.lang.String name,
                  java.lang.String groupName,
                  IManualResourceLoader loader)
Creates a new specifically for manual definition rather than loading from an object file.


createPlane

void createPlane(IMeshPtr returnValue,
                 java.lang.String name,
                 java.lang.String groupName,
                 IPlane plane,
                 float width,
                 float height,
                 int xsegments,
                 int ysegments,
                 boolean normals,
                 int numTexCoordSets,
                 float uTile,
                 float vTile,
                 IVector3 upVector,
                 HardwareBuffer.Usage vertexBufferUsage,
                 HardwareBuffer.Usage indexBufferUsage,
                 boolean vertexShadowBuffer,
                 boolean indexShadowBuffer)
Creates a basic plane, by default majoring on the x/y axes facing positive Z.


createCurvedIllusionPlane

void createCurvedIllusionPlane(IMeshPtr returnValue,
                               java.lang.String name,
                               java.lang.String groupName,
                               IPlane plane,
                               float width,
                               float height,
                               float curvature,
                               int xsegments,
                               int ysegments,
                               boolean normals,
                               int numTexCoordSets,
                               float uTile,
                               float vTile,
                               IVector3 upVector,
                               IQuaternion orientation,
                               HardwareBuffer.Usage vertexBufferUsage,
                               HardwareBuffer.Usage indexBufferUsage,
                               boolean vertexShadowBuffer,
                               boolean indexShadowBuffer,
                               int ySegmentsToKeep)
Creates a plane, which because of it's texture coordinates looks like a curved surface, useful for skies in a skybox.


createCurvedPlane

void createCurvedPlane(IMeshPtr returnValue,
                       java.lang.String name,
                       java.lang.String groupName,
                       IPlane plane,
                       float width,
                       float height,
                       float bow,
                       int xsegments,
                       int ysegments,
                       boolean normals,
                       int numTexCoordSets,
                       float xTile,
                       float yTile,
                       IVector3 upVector,
                       HardwareBuffer.Usage vertexBufferUsage,
                       HardwareBuffer.Usage indexBufferUsage,
                       boolean vertexShadowBuffer,
                       boolean indexShadowBuffer)
Creates a genuinely curved plane, by default majoring on the x/y axes facing positive Z.


createBezierPatch

void createBezierPatch(IPatchMeshPtr returnValue,
                       java.lang.String name,
                       java.lang.String groupName,
                       VoidPointer controlPointBuffer,
                       IVertexDeclaration declaration,
                       int width,
                       int height,
                       int uMaxSubdivisionLevel,
                       int vMaxSubdivisionLevel,
                       PatchSurface.VisibleSide visibleSide,
                       HardwareBuffer.Usage vbUsage,
                       HardwareBuffer.Usage ibUsage,
                       boolean vbUseShadow,
                       boolean ibUseShadow)
Creates a Bezier patch based on an array of control vertices.


setPrepareAllMeshesForShadowVolumes

void setPrepareAllMeshesForShadowVolumes(boolean enable)
Tells the mesh manager that all future meshes should prepare themselves for shadow volumes on loading.


getPrepareAllMeshesForShadowVolumes

boolean getPrepareAllMeshesForShadowVolumes()
Retrieves whether all Meshes should prepare themselves for shadow volumes.


getBoundsPaddingFactor

float getBoundsPaddingFactor()
Gets the factor by which the bounding box of an entity is padded. Default is 0.01


setBoundsPaddingFactor

void setBoundsPaddingFactor(float paddingFactor)
Sets the factor by which the bounding box of an entity is padded


setListener

void setListener(IMeshSerializerListener listener)
Sets the listener used to control mesh loading through the serializer.


getListener

IMeshSerializerListener getListener()
Gets the listener used to control mesh loading through the serializer.


loadResource

void loadResource(IResource res)
Description copied from interface: IManualResourceLoader
Called when a resource wishes to prepare.

Specified by:
loadResource in interface IManualResourceLoader


Copyright © 2007 netAllied GmbH. All Rights Reserved.