|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.PatchSurface
public class PatchSurface
| Nested Class Summary | |
|---|---|
static class |
PatchSurface.PatchSurfaceType
|
static class |
PatchSurface.VisibleSide
|
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
PatchSurface()
|
|
PatchSurface(InstancePointer p)
This constructor is public for internal useage only! |
protected |
PatchSurface(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
PatchSurface(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
build(IHardwareVertexBufferSharedPtr destVertexBuffer,
int vertexStart,
IHardwareIndexBufferSharedPtr destIndexBuffer,
int indexStart)
Tells the system to build the mesh relating to the surface into externally created buffers. |
void |
defineSurface(VoidPointer controlPointBuffer,
IVertexDeclaration declaration,
int width,
int height,
PatchSurface.PatchSurfaceType pType,
int uMaxSubdivisionLevel,
int vMaxSubdivisionLevel,
PatchSurface.VisibleSide visibleSide)
Sets up the surface by defining it's control points, type and initial subdivision level. |
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
float |
getBoundingSphereRadius()
Gets the radius of the bounding sphere for this patch, only valid after defineSurface has been called. |
IAxisAlignedBox |
getBounds()
Gets the bounds of this patch, only valid after calling defineSurface. |
VoidPointer |
getControlPointBuffer()
|
int |
getCurrentIndexCount()
Gets the current index count based on the current subdivision level. |
int |
getIndexOffset()
|
int |
getRequiredIndexCount()
Based on a previous call to defineSurface, establishes the number of indexes required to hold this patch at the maximum detail level. |
int |
getRequiredVertexCount()
Based on a previous call to defineSurface, establishes the number of vertices required to hold this patch at the maximum detail level. |
float |
getSubdivisionFactor()
Gets the current level of subdivision. |
int |
getVertexOffset()
|
void |
notifyControlPointBufferDeallocated()
Convenience method for telling the patch that the control points have been deleted, since once the patch has been built they are not required. |
void |
setSubdivisionFactor(float factor)
Alters the level of subdivision for this surface. |
| 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 PatchSurface(InstancePointer p)
protected PatchSurface(InstancePointer p,
boolean remote)
public PatchSurface(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public PatchSurface()
| 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 NativeObject
public void defineSurface(VoidPointer controlPointBuffer,
IVertexDeclaration declaration,
int width,
int height,
PatchSurface.PatchSurfaceType pType,
int uMaxSubdivisionLevel,
int vMaxSubdivisionLevel,
PatchSurface.VisibleSide visibleSide)
defineSurface in interface IPatchSurfacepublic int getRequiredVertexCount()
getRequiredVertexCount in interface IPatchSurfacepublic int getRequiredIndexCount()
getRequiredIndexCount in interface IPatchSurfacepublic int getCurrentIndexCount()
getCurrentIndexCount in interface IPatchSurfacepublic int getIndexOffset()
getIndexOffset in interface IPatchSurfacepublic int getVertexOffset()
getVertexOffset in interface IPatchSurfacepublic IAxisAlignedBox getBounds()
getBounds in interface IPatchSurfacepublic float getBoundingSphereRadius()
getBoundingSphereRadius in interface IPatchSurface
public void build(IHardwareVertexBufferSharedPtr destVertexBuffer,
int vertexStart,
IHardwareIndexBufferSharedPtr destIndexBuffer,
int indexStart)
build in interface IPatchSurfacepublic void setSubdivisionFactor(float factor)
setSubdivisionFactor in interface IPatchSurfacepublic float getSubdivisionFactor()
getSubdivisionFactor in interface IPatchSurfacepublic VoidPointer getControlPointBuffer()
getControlPointBuffer in interface IPatchSurfacepublic void notifyControlPointBufferDeallocated()
notifyControlPointBufferDeallocated in interface IPatchSurface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||