|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.graphics3d.gles.nodes.Actorx
de.enough.polish.graphics3d.gles.nodes.TexturePlane
public class TexturePlane
Node abstraction that ensure that images of arbitrary size can be represented as a textured 'Quad'.
Argument Image object is divided into subquads (submeshes) according to either maximum supported texture size or manually defined texture size.
| Field Summary |
|---|
| Fields inherited from class de.enough.polish.graphics3d.gles.nodes.Actorx |
|---|
children, gl10, parent, rXx, rYx, rZx, sXx, sYx, sZx, tXx, tYx, tZx |
| Constructor Summary | |
|---|---|
TexturePlane(javax.microedition.khronos.opengles.GL10 gl,
Image sourceImg)
|
|
TexturePlane(javax.microedition.khronos.opengles.GL10 gl,
Image sourceImg,
int textureDimension)
|
|
TexturePlane(javax.microedition.khronos.opengles.GL10 gl,
Image sourceImg,
int textureDimension,
boolean isExplicit)
|
|
| Method Summary | |
|---|---|
int |
getNumSubQuadPerColumn()
|
int |
getNumSubQuadPerRow()
|
Quad |
getSubTexture(int rowNum,
int colNum)
Returns a subQuad according to argument row and column number |
int |
getTextureDimension()
|
protected void |
renderActor()
|
void |
setTexture(Image sourceImg)
Update or replace image represented by TexturePlane |
void |
setTexture(Image sourceImg,
int textureDimension)
Update or replace image represented by TexturePlane |
void |
setTexture(Image sourceImg,
int textureDimension,
boolean isExplicit)
Update or replace image represented by TexturePlane |
protected void |
updateActor()
|
| Methods inherited from class de.enough.polish.graphics3d.gles.nodes.Actorx |
|---|
addChild, getChild, getNumChildren, removeChild, removeChild, render, setRotateXx, setRotateYx, setRotateZx, setScalex, setTranslationx, toString, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TexturePlane(javax.microedition.khronos.opengles.GL10 gl,
Image sourceImg)
public TexturePlane(javax.microedition.khronos.opengles.GL10 gl,
Image sourceImg,
int textureDimension)
public TexturePlane(javax.microedition.khronos.opengles.GL10 gl,
Image sourceImg,
int textureDimension,
boolean isExplicit)
| Method Detail |
|---|
public void setTexture(Image sourceImg)
sourceImg - source image that is to be shown by subquads
public void setTexture(Image sourceImg,
int textureDimension)
sourceImg - source image that is to be shown by subquadstextureDimension - texture dimension to be used
public void setTexture(Image sourceImg,
int textureDimension,
boolean isExplicit)
sourceImg - source image that is to be shown by subquadstextureDimension - texture dimension to be usedisExplicit - if texture dimension is set explicitlypublic int getNumSubQuadPerRow()
public int getNumSubQuadPerColumn()
public Quad getSubTexture(int rowNum,
int colNum)
rowNum - colNum -
public int getTextureDimension()
protected void renderActor()
renderActor in class Actorxprotected void updateActor()
updateActor in class Actorx
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||