crystalspace.jbind.impl.csgeom.polymesh
Class csMeshedPolygon

java.lang.Object
  extended bycrystalspace.jbind.impl.csNativeObject
      extended bycrystalspace.jbind.impl.csgeom.polymesh.csMeshedPolygon
All Implemented Interfaces:
iPointer

public class csMeshedPolygon
extends csNativeObject

A polygon. Note that this structure is only valid if used in combination with a vertex table. The vertex array then contains indices in that table. Definition at line 93 of file polymesh.h

Author:
Java wrapper - Quentin Anciaux, c++ version - http://crystal.sourceforge.net/docs/online/pubapi/structcsMeshedPolygon.php

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csMeshedPolygon()
          Create a new csMeshedPolygon
csMeshedPolygon(iPointer nPointer)
           
 
Method Summary
protected  boolean isNativePointerValidSafe(long nPointer)
           
protected  void nDelete(long pointer)
           
 int num_vertices()
           
 csNativeIntArray vertices()
           
 void vertices(csNativeIntArray v)
          Set the vertices of the csMeshedPolygon
 
Methods inherited from class crystalspace.jbind.impl.csNativeObject
changePointer, equals, finalize, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

csMeshedPolygon

public csMeshedPolygon(iPointer nPointer)
Parameters:
nPointer -

csMeshedPolygon

public csMeshedPolygon()
Create a new csMeshedPolygon

Method Detail

nDelete

protected void nDelete(long pointer)
Specified by:
nDelete in class csNativeObject
See Also:
csNativeObject.nDelete(long)

isNativePointerValidSafe

protected boolean isNativePointerValidSafe(long nPointer)
Specified by:
isNativePointerValidSafe in class csNativeObject
See Also:
crystalspace.jbind.impl.csNativeObject#isNativePointerValidSafe()

vertices

public csNativeIntArray vertices()
Returns:
the vertices of the csMeshedPolygon

vertices

public void vertices(csNativeIntArray v)
Set the vertices of the csMeshedPolygon

Parameters:
v -

num_vertices

public int num_vertices()