|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
a3dAPI.a3dGL4J
This is the hardware gl4java render please note that you can remove this class from the distribution in case you only need the software driver
| Constructor Summary | |
a3dGL4J()
|
|
| Method Summary | |
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 |
display()
|
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 |
java.awt.Component |
getComponent()
|
int |
getHeight()
returns the height of the screen |
int |
getWidth()
returns the width of the rendering screen |
int[][][] |
grow(int[][][] start)
|
void |
init()
|
void |
preInit()
|
void |
resetDevice()
reset this device deleting all textures and temporary datas |
void |
reshape(int width,
int height)
|
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 textureID,
boolean gouraud,
float rAlpha)
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 |
update()
|
| Constructor Detail |
public a3dGL4J()
| Method Detail |
public java.awt.Component getComponent()
public void setBackgroundColor(float r,
float g,
float b)
a3dRendersetBackgroundColor in interface a3dRendera3dAPI.a3dRenderr - red componentg - green componentb - blue component
public 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 arraypublic int createTexture()
a3dRendercreateTexture in interface a3dRendera3dAPI.a3dRenderpublic void deleteTexture(int ID)
a3dRenderdeleteTexture in interface a3dRendera3dAPI.a3dRenderID - texture ID to delete
public 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 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 void setBilinear(boolean bilinear)
setBilinear in interface a3dRenderpublic void beginScene()
a3dRenderbeginScene in interface a3dRenderpublic void endScene()
a3dRenderendScene in interface a3dRenderpublic void setFilter(int filter)
setFilter in interface a3dRenderpublic void resetDevice()
a3dRenderresetDevice in interface a3dRenderpublic int getWidth()
a3dRendergetWidth in interface a3dRendera3dAPI.a3dRenderpublic int getHeight()
a3dRendergetHeight in interface a3dRendera3dAPI.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 component
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 final void setKeyCode(java.lang.String key)
a3dRendersetKeyCode in interface a3dRendera3dAPI.a3dRenderkey - the license code
public void setRenderState(int textureID,
boolean gouraud,
float rAlpha)
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 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 int[][][] grow(int[][][] start)
public void preInit()
public void init()
public void reshape(int width,
int height)
public void destroyDevice()
a3dRenderdestroyDevice in interface a3dRenderpublic void update()
public void display()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||