|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.ShadowCaster
public class ShadowCaster
| Nested Class Summary | |
|---|---|
static class |
ShadowCaster.ShadowRenderableList
|
static class |
ShadowCaster.ShadowRenderableListIterator
|
| Nested classes/interfaces inherited from interface org.ogre4j.IShadowCaster |
|---|
IShadowCaster.IShadowRenderableList, IShadowCaster.IShadowRenderableListIterator |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
ShadowCaster(InstancePointer p)
This constructor is public for internal useage only! |
protected |
ShadowCaster(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
ShadowCaster(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
delete()
Deletes the corresponding C++ object. |
static void |
extrudeVertices(IHardwareVertexBufferSharedPtr vertexBuffer,
int originalVertexCount,
IVector4 lightPos,
float extrudeDist)
Utility method for extruding vertices based on a light. |
void |
finalize()
|
boolean |
getCastShadows()
Returns whether or not this object currently casts a shadow. |
IAxisAlignedBox |
getDarkCapBounds(ILight light,
float dirLightExtrusionDist)
Gets the world space bounding box of the dark cap, as extruded using the light provided |
IEdgeData |
getEdgeList()
Returns details of the edges which might be used to determine a silhouette. |
IAxisAlignedBox |
getLightCapBounds()
Gets the world space bounding box of the light cap |
float |
getPointExtrusionDistance(ILight l)
Get the distance to extrude for a point/spot light |
void |
getShadowVolumeRenderableIterator(IShadowCaster.IShadowRenderableListIterator returnValue,
ShadowTechnique shadowTechnique,
ILight light,
IHardwareIndexBufferSharedPtr indexBuffer,
boolean extrudeVertices,
float extrusionDistance,
long flags)
Gets an iterator over the renderables required to render the shadow volume. |
IAxisAlignedBox |
getWorldBoundingBox(boolean derive)
Get the world bounding box of the caster. |
boolean |
hasEdgeList()
Returns whether the object has a valid edge list. |
| Methods inherited from class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public ShadowCaster(InstancePointer p)
protected ShadowCaster(InstancePointer p,
boolean remote)
public ShadowCaster(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic boolean getCastShadows()
getCastShadows in interface IShadowCasterpublic IEdgeData getEdgeList()
getEdgeList in interface IShadowCasterpublic boolean hasEdgeList()
hasEdgeList in interface IShadowCasterpublic IAxisAlignedBox getWorldBoundingBox(boolean derive)
getWorldBoundingBox in interface IShadowCasterpublic IAxisAlignedBox getLightCapBounds()
getLightCapBounds in interface IShadowCaster
public IAxisAlignedBox getDarkCapBounds(ILight light,
float dirLightExtrusionDist)
getDarkCapBounds in interface IShadowCaster
public void getShadowVolumeRenderableIterator(IShadowCaster.IShadowRenderableListIterator returnValue,
ShadowTechnique shadowTechnique,
ILight light,
IHardwareIndexBufferSharedPtr indexBuffer,
boolean extrudeVertices,
float extrusionDistance,
long flags)
getShadowVolumeRenderableIterator in interface IShadowCasterpublic float getPointExtrusionDistance(ILight l)
getPointExtrusionDistance in interface IShadowCaster
public static void extrudeVertices(IHardwareVertexBufferSharedPtr vertexBuffer,
int originalVertexCount,
IVector4 lightPos,
float extrudeDist)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||