Revision 715e7726
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/library/main/DistortedNode.java | ||
---|---|---|
21 | 21 |
|
22 | 22 |
import android.opengl.GLES31; |
23 | 23 |
|
24 |
import org.distorted.library.mesh.MeshObject;
|
|
24 |
import org.distorted.library.mesh.MeshBase;
|
|
25 | 25 |
|
26 | 26 |
import java.util.ArrayList; |
27 | 27 |
import java.util.Collections; |
... | ... | |
68 | 68 |
private boolean mRenderWayOIT; |
69 | 69 |
private DistortedNode mParent; |
70 | 70 |
private DistortedOutputSurface mSurfaceParent; |
71 |
private MeshObject mMesh;
|
|
71 |
private MeshBase mMesh;
|
|
72 | 72 |
private DistortedEffects mEffects; |
73 | 73 |
private DistortedSurface mSurface; |
74 | 74 |
private DistortedRenderState mState; |
... | ... | |
375 | 375 |
* |
376 | 376 |
* @param surface InputSurface to put into the new Node. |
377 | 377 |
* @param effects DistortedEffects to put into the new Node. |
378 |
* @param mesh MeshObject to put into the new Node.
|
|
378 |
* @param mesh MeshBase to put into the new Node.
|
|
379 | 379 |
*/ |
380 |
public DistortedNode(DistortedSurface surface, DistortedEffects effects, MeshObject mesh)
|
|
380 |
public DistortedNode(DistortedSurface surface, DistortedEffects effects, MeshBase mesh)
|
|
381 | 381 |
{ |
382 | 382 |
mSurface = surface; |
383 | 383 |
mEffects = effects; |
... | ... | |
559 | 559 |
* |
560 | 560 |
* @param surface InputSurface to initialize our child Node with. |
561 | 561 |
* @param effects DistortedEffects to initialize our child Node with. |
562 |
* @param mesh MeshObject to initialize our child Node with.
|
|
562 |
* @param mesh MeshBase to initialize our child Node with.
|
|
563 | 563 |
* @return the newly constructed child Node, or null if we couldn't allocate resources. |
564 | 564 |
*/ |
565 |
public DistortedNode attach(DistortedSurface surface, DistortedEffects effects, MeshObject mesh)
|
|
565 |
public DistortedNode attach(DistortedSurface surface, DistortedEffects effects, MeshBase mesh)
|
|
566 | 566 |
{ |
567 | 567 |
DistortedNode node = new DistortedNode(surface,effects,mesh); |
568 | 568 |
mJobs.add(new Job(ATTACH,node)); |
... | ... | |
748 | 748 |
* |
749 | 749 |
* @return Mesh contained in the Node. |
750 | 750 |
*/ |
751 |
public MeshObject getMesh()
|
|
751 |
public MeshBase getMesh()
|
|
752 | 752 |
{ |
753 | 753 |
return mMesh; |
754 | 754 |
} |
Also available in: Unified diff
Rename MeshObject to MeshBase.