|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents all information needed to render some object in a current draw context.
Method Summary | |
boolean |
addedFogInfo()
Return true if fog info has been added |
void |
attachRenderContextData(iPointer key,
iBase data)
Attach data to the current render context |
void |
calculateFogMesh(csTransform tr_o2c,
G3DPolygonMesh mesh)
|
void |
calculateFogMesh(csTransform tr_o2c,
G3DTriangleMesh mesh)
|
void |
calculateFogPolygon(G3DPolygonDP poly)
|
void |
calculateFogPolygon(G3DPolygonDPFX poly)
|
boolean |
clipBBox(csBox2 sbox,
csBox3 cbox,
int clip_portal,
int clip_plane,
int clip_z_plane)
Check if the screen bounding box of an object is visible in this render view. |
boolean |
clipBSphere(csReversibleTransform o2c,
csSphere sphere,
int clip_portal,
int clip_plane,
int clip_z_plane)
Check if the given bounding sphere(in object space coordinates) is visibile in this render view. |
iCamera |
createNewCamera()
Create a new camera in the current render context. |
void |
createRenderContext()
Create a new render context. |
void |
deleteRenderContextData(iPointer key)
Delete all data with the given key on the current render context. |
iBase |
findRenderContextData(iPointer key)
Look for data on the current render context. |
iCamera |
getCamera()
Get the current camerapublic |
iClipper2D |
getClipper()
Get the 2D clipper for this view |
csPlane3 |
getClipPlane()
Get the clip plane |
boolean |
getClipPlane(csPlane3 pl)
Get the 3D clip plane that should be used to clip all geometry. |
iEngine |
getEngine()
Get the engine |
csFogInfo |
getFirstFogInfo()
Every fogged sector we encountered results in an extra structure in the following list. |
void |
getFrustum(float lx,
float rx,
float ty,
float by)
Get the frustum |
iGraphics2D |
getGraphics2D()
Get the 2D graphics subsystem |
iGraphics3D |
getGraphics3D()
Get the 3D graphics subsystem |
iPortal |
getLastPortal()
Get the portal we last traversed through |
iCamera |
getOriginalCamera()
Get the original camera for this render view. |
iSector |
getPreviousSector()
Get previous sector |
csRenderContext |
getRenderContext()
Get the current render context |
int |
getRenderRecursionLevel()
Get render recursion level |
iSector |
getThisSector()
Get current sector |
csRenderContextFrustum |
getTopFrustum()
Get the top level frustum(corresponding with SetFrustum()) |
boolean |
isClipperRequired()
If true then we have to clip all objects to the portal frustum (returned with GetClipper()). |
void |
resetFogInfo()
Reset fog info |
void |
restoreRenderContext(csRenderContext original)
Restore a render context. |
void |
setClipper(iClipper2D clip)
Set the 2D clipper for this view |
void |
setClipPlane(csPlane3 pl)
Set the 3D clip plane that should be used to clip all geometry |
void |
setFirstFogInfo(csFogInfo fi)
Set the first fog info |
void |
setFrustum(float lx,
float rx,
float ty,
float by)
Set the view frustum at z = 1. |
void |
setLastPortal(iPortal portal)
Set the last portal |
void |
setPreviousSector(iSector s)
Set the previous sector |
void |
setRenderRecursionLevel(int rec)
Set render recursion level |
void |
setThisSector(iSector s)
Set the current sector |
boolean |
testBSphere(csReversibleTransform o2c,
csSphere sphere)
Test if the given bounding sphere(in object space coordinates) is visibile in this render view. |
void |
useClipFrustum(boolean u)
Enable the use of a clip frustum |
void |
useClipPlane(boolean u)
Enable the use of a clip plane |
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase |
decRef, getName, getRefCount, getVersion, incRef, queryInterface, queryInterfaceSafe |
Methods inherited from interface crystalspace.jbind.interfaces.iPointer |
changePointer, getPointer, isMemoryOwner, setMemoryOwner |
Method Detail |
public boolean addedFogInfo()
public void attachRenderContextData(iPointer key, iBase data)
key
- data
- public void calculateFogMesh(csTransform tr_o2c, G3DPolygonMesh mesh)
tr_o2c
- mesh
- public void calculateFogMesh(csTransform tr_o2c, G3DTriangleMesh mesh)
tr_o2c
- mesh
- public void calculateFogPolygon(G3DPolygonDPFX poly)
poly
- public void calculateFogPolygon(G3DPolygonDP poly)
poly
- public boolean clipBBox(csBox2 sbox, csBox3 cbox, int clip_portal, int clip_plane, int clip_z_plane)
sbox
- cbox
- clip_portal
- clip_plane
- clip_z_plane
-
public boolean clipBSphere(csReversibleTransform o2c, csSphere sphere, int clip_portal, int clip_plane, int clip_z_plane)
o2c
- sphere
- clip_portal
- clip_plane
- clip_z_plane
-
public iCamera createNewCamera()
public void createRenderContext()
public void deleteRenderContextData(iPointer key)
key
- public iBase findRenderContextData(iPointer key)
key
-
public iCamera getCamera()
public iClipper2D getClipper()
public csPlane3 getClipPlane()
public boolean getClipPlane(csPlane3 pl)
pl
-
public iEngine getEngine()
public csFogInfo getFirstFogInfo()
public void getFrustum(float lx, float rx, float ty, float by)
lx
- rx
- ty
- by
- public iGraphics2D getGraphics2D()
public iGraphics3D getGraphics3D()
public iPortal getLastPortal()
public iCamera getOriginalCamera()
public iSector getPreviousSector()
public csRenderContext getRenderContext()
public int getRenderRecursionLevel()
public iSector getThisSector()
public csRenderContextFrustum getTopFrustum()
public boolean isClipperRequired()
public void resetFogInfo()
public void restoreRenderContext(csRenderContext original)
original
- public void setClipper(iClipper2D clip)
clip
- public void setClipPlane(csPlane3 pl)
pl
- public void setFirstFogInfo(csFogInfo fi)
fi
- public void setFrustum(float lx, float rx, float ty, float by)
lx
- rx
- ty
- by
- public void setLastPortal(iPortal portal)
portal
- public void setPreviousSector(iSector s)
s
- public void setRenderRecursionLevel(int rec)
rec
- public void setThisSector(iSector s)
s
- public boolean testBSphere(csReversibleTransform o2c, csSphere sphere)
o2c
- sphere
-
public void useClipFrustum(boolean u)
u
- public void useClipPlane(boolean u)
u
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |