crystalspace.jbind.impl.video.halo
Class csHalo

java.lang.Object
  extended bycrystalspace.jbind.impl.csNativeObject
      extended bycrystalspace.jbind.impl.csutil.scf.csBase
          extended bycrystalspace.jbind.impl.video.halo.csHalo
All Implemented Interfaces:
iBase, iHalo, iPointer

public class csHalo
extends csBase
implements iHalo

Author:
Quentin Anciaux

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csHalo(iPointer nPointer)
           
 
Method Summary
 void draw(float x, float y, float w, float h, float iIntensity, csVector2[] iVertices)
          Draw the halo given a center point and an intensity.
 float[] getColor()
          Query halo color.
 int getHeight()
          Query halo height.
 java.lang.String getName()
          Return the name of the interface
 int getVersion()
          Return the version of the interface
 int getWidth()
          Query halo width.
protected  boolean isNativePointerValidSafe(long pointer)
           
 void setColor(float iR, float iG, float iB)
          Change halo color.
 
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

csHalo

public csHalo(iPointer nPointer)
Parameters:
nPointer -
Method Detail

getVersion

public int getVersion()
Description copied from interface: iBase
Return the version of the interface

Specified by:
getVersion in interface iBase
Specified by:
getVersion in class csBase
See Also:
iBase.getVersion()

getName

public java.lang.String getName()
Description copied from interface: iBase
Return the name of the interface

Specified by:
getName in interface iBase
Specified by:
getName in class csBase
See Also:
iBase.getName()

isNativePointerValidSafe

protected boolean isNativePointerValidSafe(long pointer)
Specified by:
isNativePointerValidSafe in class csNativeObject
See Also:
csNativeObject.isNativePointerValidSafe(long)

draw

public void draw(float x,
                 float y,
                 float w,
                 float h,
                 float iIntensity,
                 csVector2[] iVertices)
Description copied from interface: iHalo
Draw the halo given a center point and an intensity. If either w and/or h is negative, the native width and/or height is used instead. If the halo should be clipped against some polygon, that polygon should be given, otherwise if a 0 pointer is passed, the halo is clipped just against screen bounds.

Specified by:
draw in interface iHalo
Parameters:
x -
y -
w -
h -
iIntensity -
iVertices -
See Also:
iHalo.draw(float, float, float, float, float, crystalspace.jbind.impl.csgeom.vector2.csVector2[])

getColor

public float[] getColor()
Description copied from interface: iHalo
Query halo color.

Specified by:
getColor in interface iHalo
Returns:
See Also:
iHalo.getColor()

getHeight

public int getHeight()
Description copied from interface: iHalo
Query halo height.

Specified by:
getHeight in interface iHalo
Returns:
See Also:
iHalo.getHeight()

getWidth

public int getWidth()
Description copied from interface: iHalo
Query halo width.

Specified by:
getWidth in interface iHalo
Returns:
See Also:
iHalo.getWidth()

setColor

public void setColor(float iR,
                     float iG,
                     float iB)
Description copied from interface: iHalo
Change halo color.

Specified by:
setColor in interface iHalo
Parameters:
iR -
iG -
iB -
See Also:
iHalo.setColor(float, float, float)