|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcrystalspace.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 iBasegetVersion in class csBaseiBase.getVersion()public java.lang.String getName()
iBase
getName in interface iBasegetName in class csBaseiBase.getName()protected boolean isNativePointerValidSafe(long pointer)
isNativePointerValidSafe in class csNativeObjectcsNativeObject.isNativePointerValidSafe(long)public void addMaterial(iMaterialHandle mat_handle)
iPolygonBuffer
addMaterial in interface iPolygonBuffermat_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 iPolygonBufferverts - 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 iPolygonBufferiPolygonBuffer.clear()public csBox3 getBoundingBox()
iPolygonBuffer
getBoundingBox in interface iPolygonBufferiPolygonBuffer.getBoundingBox()public iMaterialHandle getMaterial(int idx)
iPolygonBuffer
getMaterial in interface iPolygonBufferidx -
iPolygonBuffer.getMaterial(int)public int getMaterialCount()
iPolygonBuffer
getMaterialCount in interface iPolygonBufferiPolygonBuffer.getMaterialCount()public int getVertexCount()
iPolygonBuffer
getVertexCount in interface iPolygonBufferiPolygonBuffer.getVertexCount()public csVector3[] getVertices()
iPolygonBuffer
getVertices in interface iPolygonBufferiPolygonBuffer.getVertices()public void markLightmapsDirty()
iPolygonBuffer
markLightmapsDirty in interface iPolygonBufferiPolygonBuffer.markLightmapsDirty()public void prepare()
iPolygonBuffer
prepare in interface iPolygonBufferiPolygonBuffer.prepare()
public void setMaterial(int idx,
iMaterialHandle mat_handle)
iPolygonBuffer
setMaterial in interface iPolygonBufferidx - mat_handle - iPolygonBuffer.setMaterial(int, crystalspace.jbind.interfaces.ivideo.material.iMaterialHandle)public void setVertexArray(csVector3[] verts)
iPolygonBuffer
setVertexArray in interface iPolygonBufferverts - iPolygonBuffer.setVertexArray(crystalspace.jbind.impl.csgeom.vector3.csVector3[])
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||