|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcrystalspace.jbind.impl.csNativeObject
crystalspace.jbind.impl.csutil.scf.csBase
crystalspace.jbind.impl.video.graph3d.csGraphics3D
Field Summary |
Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
Constructor Summary | |
csGraphics3D(iPointer nPointer)
|
Method Summary | |
boolean |
beginDraw(int DrawFlags)
Start a new frame (see CSDRAW_XXX bit flags);. |
void |
clearCache()
Clear the texture cache. |
void |
close()
Close the 3D graphics display. |
void |
closeFogObject(int id)
Close a volumetric fog object. |
void |
closePortal()
Close a portal previously opened with OpenPortal();. |
iHalo |
createHalo(float iR,
float iG,
float iB,
byte iAlpha,
int iWidth,
int iHeight)
Create a halo of the specified color and return a handle. |
void |
createInterleavedRenderBuffers(int size,
int type,
int count,
iRenderBuffer buffers)
Create an interleaved renderbuffer (You would use this then set stride to determine offset and stride of the interleaved buffer. |
iRenderBuffer |
createRenderBuffer(int size,
int type,
int componentType,
int componentCount,
boolean index)
Create a renderbuffer. |
void |
disableZOffset()
Disables offsetting of Z values. |
void |
drawFogPolygon(int id,
G3DPolygonDFP poly,
int fogtype)
Add a front or back-facing fog polygon in the current fog object. |
void |
drawLine(csVector3 v1,
csVector3 v2,
float fov,
int color)
Draw a line in camera space. |
void |
drawMesh(csRenderMesh mymesh)
Drawroutine. |
void |
drawPixmap(iTextureHandle hTex,
int sx,
int sy,
int sw,
int sh,
int tx,
int ty,
int tw,
int th)
Draw a pixmap using a rectangle from given texture. |
void |
drawPixmap(iTextureHandle hTex,
int sx,
int sy,
int sw,
int sh,
int tx,
int ty,
int tw,
int th,
byte Alpha)
Draw a pixmap using a rectangle from given texture. |
void |
drawPolygon(G3DPolygonDP poly)
Draw the projected polygon with light and texture. |
void |
drawPolygonDebug(G3DPolygonDP poly)
Draw the projected polygon with light and texture. |
void |
drawPolygonFX(G3DPolygonDPFX poly)
Draw a polygon with special effects. |
void |
drawPolygonMesh(G3DPolygonMesh mesh)
Draw a triangle mesh using features similar to DrawPolygon. |
void |
drawSimpleMesh(csSimpleRenderMesh mesh)
Draw a csSimpleRenderMesh on the screen. |
void |
drawTriangleMesh(G3DTriangleMesh mesh)
Draw a triangle mesh using features similar to DrawPolygonFX. |
void |
dumpCache()
Dump the texture cache. |
void |
enableZOffset()
Enables offsetting of Z values. |
void |
finishDraw()
End the frame and do a page swap. |
csGraphics3DCaps |
getCaps()
Get the current driver's capabilities. |
iClipper2D |
getClipper()
Get clipper that was used. |
int |
getClipType()
Return type of clipper. |
iGraphics2D |
getDriver2D()
Get a pointer to our 2d canvas driver. |
int |
getHeight()
Get drawing buffer height. |
static java.lang.Class |
getInterfaceClass()
|
static java.lang.String |
getInterfaceName()
|
static int |
getInterfaceVersion()
|
java.lang.String |
getName()
Return the name of the interface |
csPlane3 |
getNearPlane()
Get near clip plane. |
csReversibleTransform |
getObjectToCamera()
Get object to camera transformation. |
float |
getPerspectiveAspect()
Get aspect ratio. |
int[] |
getPerspectiveCenter()
Get perspective center. |
long |
getRenderState(int op)
Get a renderstate value. |
iTextureHandle |
getRenderTarget()
Get the current render target (0 for screen);. |
iTextureManager |
getTextureManager()
Get the texture manager: do NOT increment the refcount of texture manager. |
int |
getVersion()
Return the version of the interface |
iVertexBufferManager |
getVertexBufferManager()
Get the vertex buffer manager. |
int |
getWidth()
Get drawing buffer width. |
boolean[] |
getWriteMask()
Get the masking of color and/or alpha values to framebuffer. |
iPointer |
getZBuffAt(int x,
int y)
Debugging only: get a pointer to Z-buffer at some location. |
float |
getZBuffValue(int x,
int y)
Get Z-buffer value at given X,Y position. |
int |
getZMode()
Get the z buffer write/test mode. |
boolean |
hasNearPlane()
Return true if we have a near plane. |
static void |
initSCF()
|
boolean |
isLightmapOK(int lmw,
int lmh,
int lightCellSize)
Check if renderer can handle a lightmap. |
protected boolean |
isNativePointerValidSafe()
|
boolean |
open()
Open the 3D graphics display. |
void |
openFogObject(int id,
csFog fog)
Initiate a volumetric fog object. |
void |
openPortal(G3DPolygonDFP poly)
Enter a new clipped portal. |
void |
print(csRect area)
Print the image in backbuffer. |
void |
removeFromCache(iRendererLightmap rlm)
Remove some polygon from the cache. |
void |
resetNearPlane()
Reset near clip plane (i.e. disable it);. |
void |
setBufferState(int attribs,
iRenderBuffer[] buffers,
int count)
Activate or deactivate all given buffers depending on the value of 'buffers' for that index. |
void |
setClipper(iClipper2D clipper,
int cliptype)
Set optional clipper to use. |
void |
setDimensions(int width,
int height)
Change the dimensions of the display. |
void |
setNearPlane(csPlane3 pl)
Set near clip plane. |
void |
setObjectToCamera(csReversibleTransform o2c)
Set object to camera transformation (currently only used by DrawTriangleMesh and DrawPolygonMesh);. |
void |
setPerspectiveAspect(float aspect)
Set aspect ratio for perspective projection. |
void |
setPerspectiveCenter(int x,
int y)
Set center of projection for perspective projection. |
boolean |
setRenderState(int op,
long val)
Set a renderstate value. |
void |
setRenderTarget(iTextureHandle handle)
Set the target of rendering. |
void |
setRenderTarget(iTextureHandle handle,
boolean persisten)
Set the target of rendering. |
void |
setShadowState(int state)
Controls shadow drawing. |
void |
setTextureState(int units,
iTextureHandle[] textures,
int count)
Activate or deactivate all given textures depending on the value of 'textures' for that unit (i.e. deactivate if 0);. |
void |
setWriteMask(boolean red,
boolean green,
boolean blue,
boolean alpha)
Set the masking of color and/or alpha values to framebuffer. |
void |
setZMode(int mode)
Set the z buffer write/test mode. |
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, isNativePointerValidSafe, 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 |
public csGraphics3D(iPointer nPointer)
nPointer
- Method Detail |
protected boolean isNativePointerValidSafe()
public int getVersion()
iBase
getVersion
in interface iBase
getVersion
in class csBase
public java.lang.String getName()
iBase
getName
in interface iBase
getName
in class csBase
public static void initSCF()
public iTextureManager getTextureManager()
iGraphics3D
getTextureManager
in interface iGraphics3D
public static int getInterfaceVersion()
public static java.lang.String getInterfaceName()
public static java.lang.Class getInterfaceClass()
public iGraphics2D getDriver2D()
iGraphics3D
getDriver2D
in interface iGraphics3D
public boolean beginDraw(int DrawFlags)
iGraphics3D
beginDraw
in interface iGraphics3D
DrawFlags
-
public void finishDraw()
iGraphics3D
finishDraw
in interface iGraphics3D
public void print(csRect area)
iGraphics3D
print
in interface iGraphics3D
area
- public void clearCache()
iGraphics3D
clearCache
in interface iGraphics3D
iGraphics3D.clearCache()
public void close()
iGraphics3D
close
in interface iGraphics3D
iGraphics3D.close()
public void closeFogObject(int id)
iGraphics3D
closeFogObject
in interface iGraphics3D
id
- iGraphics3D.closeFogObject(int)
public void closePortal()
iGraphics3D
closePortal
in interface iGraphics3D
iGraphics3D.closePortal()
public iHalo createHalo(float iR, float iG, float iB, byte iAlpha, int iWidth, int iHeight)
iGraphics3D
createHalo
in interface iGraphics3D
iR
- iG
- iB
- iAlpha
- iWidth
- iHeight
-
iGraphics3D.createHalo(float, float, float, byte, int, int)
public void createInterleavedRenderBuffers(int size, int type, int count, iRenderBuffer buffers)
iGraphics3D
createInterleavedRenderBuffers
in interface iGraphics3D
size
- type
- count
- buffers
- iGraphics3D.createInterleavedRenderBuffers(int, int, int, crystalspace.jbind.interfaces.ivideo.rndbuf.iRenderBuffer)
public iRenderBuffer createRenderBuffer(int size, int type, int componentType, int componentCount, boolean index)
iGraphics3D
createRenderBuffer
in interface iGraphics3D
iGraphics3D.createRenderBuffer(int, int, int, int, boolean)
public void disableZOffset()
iGraphics3D
disableZOffset
in interface iGraphics3D
iGraphics3D.disableZOffset()
public void drawFogPolygon(int id, G3DPolygonDFP poly, int fogtype)
iGraphics3D
drawFogPolygon
in interface iGraphics3D
id
- poly
- fogtype
- iGraphics3D.drawFogPolygon(int, crystalspace.jbind.impl.video.graph3d.G3DPolygonDFP, int)
public void drawLine(csVector3 v1, csVector3 v2, float fov, int color)
iGraphics3D
drawLine
in interface iGraphics3D
v1
- v2
- fov
- color
- iGraphics3D.drawLine(crystalspace.jbind.impl.csgeom.vector3.csVector3, crystalspace.jbind.impl.csgeom.vector3.csVector3, float, int)
public void drawMesh(csRenderMesh mymesh)
iGraphics3D
drawMesh
in interface iGraphics3D
mymesh
- iGraphics3D.drawMesh(crystalspace.jbind.impl.video.rendermesh.csRenderMesh)
public void drawPixmap(iTextureHandle hTex, int sx, int sy, int sw, int sh, int tx, int ty, int tw, int th, byte Alpha)
iGraphics3D
drawPixmap
in interface iGraphics3D
hTex
- sx
- sy
- sw
- sh
- tx
- ty
- tw
- th
- Alpha
- iGraphics3D.drawPixmap(crystalspace.jbind.interfaces.ivideo.texture.iTextureHandle, int, int, int, int, int, int, int, int, byte)
public void drawPixmap(iTextureHandle hTex, int sx, int sy, int sw, int sh, int tx, int ty, int tw, int th)
iGraphics3D
drawPixmap
in interface iGraphics3D
hTex
- sx
- sy
- sw
- sh
- tx
- ty
- tw
- th
- iGraphics3D.drawPixmap(crystalspace.jbind.interfaces.ivideo.texture.iTextureHandle, int, int, int, int, int, int, int, int)
public void drawPolygon(G3DPolygonDP poly)
iGraphics3D
drawPolygon
in interface iGraphics3D
poly
- iGraphics3D.drawPolygon(crystalspace.jbind.impl.video.graph3d.G3DPolygonDP)
public void drawPolygonDebug(G3DPolygonDP poly)
iGraphics3D
drawPolygonDebug
in interface iGraphics3D
poly
- iGraphics3D.drawPolygonDebug(crystalspace.jbind.impl.video.graph3d.G3DPolygonDP)
public void drawPolygonFX(G3DPolygonDPFX poly)
iGraphics3D
drawPolygonFX
in interface iGraphics3D
poly
- iGraphics3D.drawPolygonFX(crystalspace.jbind.impl.video.graph3d.G3DPolygonDPFX)
public void drawPolygonMesh(G3DPolygonMesh mesh)
iGraphics3D
drawPolygonMesh
in interface iGraphics3D
mesh
- iGraphics3D.drawPolygonMesh(crystalspace.jbind.impl.video.graph3d.G3DPolygonMesh)
public void drawSimpleMesh(csSimpleRenderMesh mesh)
iGraphics3D
drawSimpleMesh
in interface iGraphics3D
mesh
- iGraphics3D.drawSimpleMesh(crystalspace.jbind.impl.video.graph3d.csSimpleRenderMesh)
public void drawTriangleMesh(G3DTriangleMesh mesh)
iGraphics3D
drawTriangleMesh
in interface iGraphics3D
mesh
- iGraphics3D.drawTriangleMesh(crystalspace.jbind.impl.video.graph3d.G3DTriangleMesh)
public void dumpCache()
iGraphics3D
dumpCache
in interface iGraphics3D
iGraphics3D.dumpCache()
public void enableZOffset()
iGraphics3D
enableZOffset
in interface iGraphics3D
iGraphics3D.enableZOffset()
public csGraphics3DCaps getCaps()
iGraphics3D
getCaps
in interface iGraphics3D
iGraphics3D.getCaps()
public iClipper2D getClipper()
iGraphics3D
getClipper
in interface iGraphics3D
iGraphics3D.getClipper()
public int getClipType()
iGraphics3D
getClipType
in interface iGraphics3D
iGraphics3D.getClipType()
public int getHeight()
iGraphics3D
getHeight
in interface iGraphics3D
iGraphics3D.getHeight()
public csPlane3 getNearPlane()
iGraphics3D
getNearPlane
in interface iGraphics3D
iGraphics3D.getNearPlane()
public csReversibleTransform getObjectToCamera()
iGraphics3D
getObjectToCamera
in interface iGraphics3D
iGraphics3D.getObjectToCamera()
public float getPerspectiveAspect()
iGraphics3D
getPerspectiveAspect
in interface iGraphics3D
iGraphics3D.getPerspectiveAspect()
public int[] getPerspectiveCenter()
iGraphics3D
getPerspectiveCenter
in interface iGraphics3D
iGraphics3D.getPerspectiveCenter()
public long getRenderState(int op)
iGraphics3D
getRenderState
in interface iGraphics3D
op
-
iGraphics3D.getRenderState(int)
public iTextureHandle getRenderTarget()
iGraphics3D
getRenderTarget
in interface iGraphics3D
iGraphics3D.getRenderTarget()
public iVertexBufferManager getVertexBufferManager()
iGraphics3D
getVertexBufferManager
in interface iGraphics3D
iGraphics3D.getVertexBufferManager()
public int getWidth()
iGraphics3D
getWidth
in interface iGraphics3D
iGraphics3D.getWidth()
public boolean[] getWriteMask()
iGraphics3D
getWriteMask
in interface iGraphics3D
iGraphics3D.getWriteMask()
public iPointer getZBuffAt(int x, int y)
iGraphics3D
getZBuffAt
in interface iGraphics3D
x
- y
-
iGraphics3D.getZBuffAt(int, int)
public float getZBuffValue(int x, int y)
iGraphics3D
getZBuffValue
in interface iGraphics3D
x
- y
-
iGraphics3D.getZBuffValue(int, int)
public int getZMode()
iGraphics3D
getZMode
in interface iGraphics3D
iGraphics3D.getZMode()
public boolean hasNearPlane()
iGraphics3D
hasNearPlane
in interface iGraphics3D
iGraphics3D.hasNearPlane()
public boolean isLightmapOK(int lmw, int lmh, int lightCellSize)
iGraphics3D
isLightmapOK
in interface iGraphics3D
lmw
- lmh
- lightCellSize
-
iGraphics3D.isLightmapOK(int, int, int)
public boolean open()
iGraphics3D
open
in interface iGraphics3D
iGraphics3D.open()
public void openFogObject(int id, csFog fog)
iGraphics3D
openFogObject
in interface iGraphics3D
id
- fog
- iGraphics3D.openFogObject(int, crystalspace.jbind.impl.video.graph3d.csFog)
public void openPortal(G3DPolygonDFP poly)
iGraphics3D
openPortal
in interface iGraphics3D
poly
- iGraphics3D.openPortal(crystalspace.jbind.impl.video.graph3d.G3DPolygonDFP)
public void removeFromCache(iRendererLightmap rlm)
iGraphics3D
removeFromCache
in interface iGraphics3D
rlm
- iGraphics3D.removeFromCache(crystalspace.jbind.interfaces.ivideo.txtmgr.iRendererLightmap)
public void resetNearPlane()
iGraphics3D
resetNearPlane
in interface iGraphics3D
iGraphics3D.resetNearPlane()
public void setBufferState(int attribs, iRenderBuffer[] buffers, int count)
iGraphics3D
setBufferState
in interface iGraphics3D
attribs
- buffers
- count
- iGraphics3D.setBufferState(int, crystalspace.jbind.interfaces.ivideo.rndbuf.iRenderBuffer[], int)
public void setClipper(iClipper2D clipper, int cliptype)
iGraphics3D
setClipper
in interface iGraphics3D
clipper
- cliptype
- iGraphics3D.setClipper(crystalspace.jbind.interfaces.igeom.clip2d.iClipper2D, int)
public void setDimensions(int width, int height)
iGraphics3D
setDimensions
in interface iGraphics3D
width
- height
- iGraphics3D.setDimensions(int, int)
public void setNearPlane(csPlane3 pl)
iGraphics3D
setNearPlane
in interface iGraphics3D
pl
- iGraphics3D.setNearPlane(crystalspace.jbind.impl.csgeom.plane3.csPlane3)
public void setObjectToCamera(csReversibleTransform o2c)
iGraphics3D
setObjectToCamera
in interface iGraphics3D
o2c
- iGraphics3D.setObjectToCamera(crystalspace.jbind.impl.csgeom.transfrm.csReversibleTransform)
public void setPerspectiveAspect(float aspect)
iGraphics3D
setPerspectiveAspect
in interface iGraphics3D
aspect
- iGraphics3D.setPerspectiveAspect(float)
public void setPerspectiveCenter(int x, int y)
iGraphics3D
setPerspectiveCenter
in interface iGraphics3D
x
- y
- iGraphics3D.setPerspectiveCenter(int, int)
public boolean setRenderState(int op, long val)
iGraphics3D
setRenderState
in interface iGraphics3D
op
- val
-
iGraphics3D.setRenderState(int, long)
public void setRenderTarget(iTextureHandle handle, boolean persisten)
iGraphics3D
setRenderTarget
in interface iGraphics3D
handle
- persisten
- iGraphics3D.setRenderTarget(crystalspace.jbind.interfaces.ivideo.texture.iTextureHandle, boolean)
public void setRenderTarget(iTextureHandle handle)
iGraphics3D
setRenderTarget
in interface iGraphics3D
handle
- iGraphics3D.setRenderTarget(crystalspace.jbind.interfaces.ivideo.texture.iTextureHandle)
public void setShadowState(int state)
iGraphics3D
setShadowState
in interface iGraphics3D
state
- iGraphics3D.setShadowState(int)
public void setTextureState(int units, iTextureHandle[] textures, int count)
iGraphics3D
setTextureState
in interface iGraphics3D
units
- textures
- count
- iGraphics3D.setTextureState(int, crystalspace.jbind.interfaces.ivideo.texture.iTextureHandle[], int)
public void setWriteMask(boolean red, boolean green, boolean blue, boolean alpha)
iGraphics3D
setWriteMask
in interface iGraphics3D
red
- green
- blue
- alpha
- iGraphics3D.setWriteMask(boolean, boolean, boolean, boolean)
public void setZMode(int mode)
iGraphics3D
setZMode
in interface iGraphics3D
mode
- iGraphics3D.setZMode(int)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |