|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Canvas
|
+--a3dAPI.a3dSWH
java software rendering core This class offers some extended functions that you can use to manipulate video buffers
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Method Summary | |
void |
addConsumer(java.awt.image.ImageConsumer imageconsumer)
|
void |
beginScene()
call this metodh before starting to send faces |
int |
createTexture()
create a new texture |
void |
deleteTexture(int ID)
delete texture |
void |
destroyDevice()
destroy the device and frees all allocated datas |
void |
drawFace(float[] v0,
float[] v1,
float[] v2,
int clip)
draw a face given it's vertices and clipvalue |
void |
endScene()
call this method when you've sent all faces |
int[] |
extGetScreen()
Returns the array that will be used for rendering the dimension of the array is the same of the Component width*height |
int[] |
extGetZBuffer()
Returns the array that will be used for zbuffering |
void |
extSetMode(int z00m)
this function changes in realtime the rendering type of the software module |
void |
extSetPaint(java.awt.Component c)
this function is useful to set up a paint method that will be called by the device's paint method to write over the rendering canvas |
int |
getHeight()
returns the height of the screen |
java.awt.Dimension |
getMinimumSize()
|
int |
getWidth()
returns the width of the rendering screen |
int[][][] |
grow(int[][][] start)
|
boolean |
isConsumer(java.awt.image.ImageConsumer imageconsumer)
|
void |
paint(java.awt.Graphics gx)
|
void |
removeConsumer(java.awt.image.ImageConsumer imageconsumer)
|
void |
requestTopDownLeftRightResend(java.awt.image.ImageConsumer imageconsumer)
|
void |
resetDevice()
reset this device deleting all textures and temporary datas |
void |
setBackgroundColor(float r,
float g,
float b)
sets the background color |
void |
setBackgroundImage(int[] pix,
int width,
int height)
sets the background image |
void |
setBilinear(boolean bilinear)
|
void |
setFilter(int filter)
|
void |
setFogActive(boolean flag)
switch fog on/off |
void |
setFogLinear(float near,
float far,
float r,
float g,
float b)
switch fog on and create a linear for |
void |
setKeyCode(java.lang.String key)
sets the registartion code |
void |
setPerspective(float fov2,
float fov,
float near,
float far)
sets the values used by the camera |
void |
setRenderState(int texID,
boolean gouraud,
float alpha)
sets the render state for the rendering of all the next faces |
void |
setTextureBilinear(int ID,
boolean bilinear)
sets bilinear filtering of a texture |
void |
setTextureImage(int ID,
int[] pix,
int width,
int height)
sets the image of a texture |
void |
startProduction(java.awt.image.ImageConsumer imageconsumer)
|
void |
update(java.awt.Graphics gx)
|
| Methods inherited from class java.awt.Canvas |
addNotify, getAccessibleContext |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, validate |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public final void setKeyCode(java.lang.String key)
a3dRendersetKeyCode in interface a3dRendera3dAPI.a3dRenderkey - the license code
public void setPerspective(float fov2,
float fov,
float near,
float far)
a3dRendersetPerspective in interface a3dRendera3dAPI.a3dRenderfov - fov of the cameranear - near camera planefar - far camera planepublic int getWidth()
a3dRendergetWidth in interface a3dRendergetWidth in class java.awt.Componenta3dAPI.a3dRenderpublic int getHeight()
a3dRendergetHeight in interface a3dRendergetHeight in class java.awt.Componenta3dAPI.a3dRenderpublic void resetDevice()
a3dRenderresetDevice in interface a3dRenderpublic int[][][] grow(int[][][] start)
public int createTexture()
a3dRendercreateTexture in interface a3dRendera3dAPI.a3dRenderpublic void deleteTexture(int ID)
a3dRenderdeleteTexture in interface a3dRendera3dAPI.a3dRenderID - texture ID to delete
public void setTextureBilinear(int ID,
boolean bilinear)
a3dRendersetTextureBilinear in interface a3dRendera3dAPI.a3dRenderID - the ID of the texturebilinear - true/false to switch bilinear filtering on/off for that texturepublic final void paint(java.awt.Graphics gx)
paint in class java.awt.Canvaspublic final void update(java.awt.Graphics gx)
update in class java.awt.Componentpublic final boolean isConsumer(java.awt.image.ImageConsumer imageconsumer)
isConsumer in interface java.awt.image.ImageProducerpublic final void removeConsumer(java.awt.image.ImageConsumer imageconsumer)
removeConsumer in interface java.awt.image.ImageProducerpublic final void addConsumer(java.awt.image.ImageConsumer imageconsumer)
addConsumer in interface java.awt.image.ImageProducerpublic final void requestTopDownLeftRightResend(java.awt.image.ImageConsumer imageconsumer)
requestTopDownLeftRightResend in interface java.awt.image.ImageProducerpublic final void startProduction(java.awt.image.ImageConsumer imageconsumer)
startProduction in interface java.awt.image.ImageProducerpublic final java.awt.Dimension getMinimumSize()
getMinimumSize in class java.awt.Componentpublic final void beginScene()
a3dRenderbeginScene in interface a3dRenderpublic final void endScene()
a3dRenderendScene in interface a3dRender
public final void setBackgroundColor(float r,
float g,
float b)
a3dRendersetBackgroundColor in interface a3dRendera3dAPI.a3dRenderr - red componentg - green componentb - blue component
public final void setBackgroundImage(int[] pix,
int width,
int height)
a3dRendersetBackgroundImage in interface a3dRendera3dAPI.a3dRenderpix - an array of 0xrrggbb valueswidth - width of the arrayheight - height of the array
public final void setTextureImage(int ID,
int[] pix,
int width,
int height)
a3dRendersetTextureImage in interface a3dRendera3dAPI.a3dRenderID - the ID of the texture to modifypix - an array of 0xrrggbb valueswidth - width of the arrayheight - height of the array
public void setRenderState(int texID,
boolean gouraud,
float alpha)
a3dRendersetRenderState in interface a3dRendera3dAPI.a3dRendertextureID - ID of the texture to use or -1 if no texture is usedgouraud - true if the vertices contains color per vertex informationsrAlpha - a float in the range 0-1 to specify the alpha value
public final void drawFace(float[] v0,
float[] v1,
float[] v2,
int clip)
a3dRenderdrawFace in interface a3dRendera3dAPI.a3dRenderv0 - an array that contains:
v0[0],v0[1],v0[2] = x,y,z of the vertices
v0[3],v0[4],v0[5] = xr,yr,zr in screen coords
v0[6],v0[7],v0[8] = r,g,b for the vertices
v0[9],v0[10] = u,v for the verticespublic final void setBilinear(boolean bilinear)
setBilinear in interface a3dRenderpublic final void setFilter(int filter)
setFilter in interface a3dRenderpublic void setFogActive(boolean flag)
a3dRendersetFogActive in interface a3dRendera3dAPI.a3dRenderflag - true/false fog on/off
public void setFogLinear(float near,
float far,
float r,
float g,
float b)
a3dRendersetFogLinear in interface a3dRendera3dAPI.a3dRendernear - near fog planefar - far fog planer - fog red componentg - fog green componentb - fog blue componentpublic final void destroyDevice()
a3dRenderdestroyDevice in interface a3dRenderpublic final int[] extGetScreen()
public final int[] extGetZBuffer()
public final void extSetPaint(java.awt.Component c)
public final void extSetMode(int z00m)
z00m - 0-standard software mode 1-zoomed mode 2-alt zoomed mode 3-antialias mode
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||