|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object crystalspace.jbind.impl.csNativeObject crystalspace.jbind.impl.csutil.scf.csBase crystalspace.jbind.impl.video.vbufmgr.csPolygonBuffer
Field Summary |
Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
Constructor Summary | |
csPolygonBuffer(iPointer nPointer)
|
Method Summary | |
void |
addMaterial(iMaterialHandle mat_handle)
Add a material. |
void |
addPolygon(int[] verts,
csPolyTextureMapping texmap,
csPlane3 poly_normal,
int mat_index,
iRendererLightmap lm)
Add a polygon to this buffer. |
void |
clear()
Clear all polygons, materials, and vertex array. |
csBox3 |
getBoundingBox()
Get a bounding box for all the vertices. |
iMaterialHandle |
getMaterial(int idx)
Get a material. |
int |
getMaterialCount()
Get the number of materials. |
java.lang.String |
getName()
Return the name of the interface |
int |
getVersion()
Return the version of the interface |
int |
getVertexCount()
Gets the number of vertices. |
csVector3[] |
getVertices()
Gets the array of vertices. |
protected boolean |
isNativePointerValidSafe(long pointer)
|
void |
markLightmapsDirty()
Sets the polygon buffer as dirty. |
void |
prepare()
After adding everything and before using this polygon buffer you should call Prepare();. |
void |
setMaterial(int idx,
iMaterialHandle mat_handle)
Set a previously added material (this can be used to change a material handle);. |
void |
setVertexArray(csVector3[] verts)
Set vertices to use for the polygons. |
Methods inherited from class crystalspace.jbind.impl.csutil.scf.csBase |
decRef, equals, finalize, getRefCount, incRef, nDelete, queryInterface, queryInterfaceSafe |
Methods inherited from class crystalspace.jbind.impl.csNativeObject |
changePointer, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase |
decRef, getRefCount, incRef, queryInterface, queryInterfaceSafe |
Methods inherited from interface crystalspace.jbind.interfaces.iPointer |
changePointer, getPointer, isMemoryOwner, setMemoryOwner |
Constructor Detail |
public csPolygonBuffer(iPointer nPointer)
nPointer
- Method Detail |
public int getVersion()
iBase
getVersion
in interface iBase
getVersion
in class csBase
iBase.getVersion()
public java.lang.String getName()
iBase
getName
in interface iBase
getName
in class csBase
iBase.getName()
protected boolean isNativePointerValidSafe(long pointer)
isNativePointerValidSafe
in class csNativeObject
csNativeObject.isNativePointerValidSafe(long)
public void addMaterial(iMaterialHandle mat_handle)
iPolygonBuffer
addMaterial
in interface iPolygonBuffer
mat_handle
- iPolygonBuffer.addMaterial(crystalspace.jbind.interfaces.ivideo.material.iMaterialHandle)
public void addPolygon(int[] verts, csPolyTextureMapping texmap, csPlane3 poly_normal, int mat_index, iRendererLightmap lm)
iPolygonBuffer
addPolygon
in interface iPolygonBuffer
verts
- texmap
- poly_normal
- mat_index
- lm
- iPolygonBuffer.addPolygon(int[], crystalspace.jbind.impl.mesh.thing.polygon.csPolyTextureMapping, crystalspace.jbind.impl.csgeom.plane3.csPlane3, int, crystalspace.jbind.interfaces.ivideo.txtmgr.iRendererLightmap)
public void clear()
iPolygonBuffer
clear
in interface iPolygonBuffer
iPolygonBuffer.clear()
public csBox3 getBoundingBox()
iPolygonBuffer
getBoundingBox
in interface iPolygonBuffer
iPolygonBuffer.getBoundingBox()
public iMaterialHandle getMaterial(int idx)
iPolygonBuffer
getMaterial
in interface iPolygonBuffer
idx
-
iPolygonBuffer.getMaterial(int)
public int getMaterialCount()
iPolygonBuffer
getMaterialCount
in interface iPolygonBuffer
iPolygonBuffer.getMaterialCount()
public int getVertexCount()
iPolygonBuffer
getVertexCount
in interface iPolygonBuffer
iPolygonBuffer.getVertexCount()
public csVector3[] getVertices()
iPolygonBuffer
getVertices
in interface iPolygonBuffer
iPolygonBuffer.getVertices()
public void markLightmapsDirty()
iPolygonBuffer
markLightmapsDirty
in interface iPolygonBuffer
iPolygonBuffer.markLightmapsDirty()
public void prepare()
iPolygonBuffer
prepare
in interface iPolygonBuffer
iPolygonBuffer.prepare()
public void setMaterial(int idx, iMaterialHandle mat_handle)
iPolygonBuffer
setMaterial
in interface iPolygonBuffer
idx
- mat_handle
- iPolygonBuffer.setMaterial(int, crystalspace.jbind.interfaces.ivideo.material.iMaterialHandle)
public void setVertexArray(csVector3[] verts)
iPolygonBuffer
setVertexArray
in interface iPolygonBuffer
verts
- iPolygonBuffer.setVertexArray(crystalspace.jbind.impl.csgeom.vector3.csVector3[])
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |