Revision cbd502ec
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/library/mesh/MeshBase.java | ||
---|---|---|
137 | 137 |
mVBO = new InternalBuffer(GLES30.GL_ARRAY_BUFFER , GLES30.GL_STATIC_READ); |
138 | 138 |
mTFO = new InternalBuffer(GLES30.GL_TRANSFORM_FEEDBACK_BUFFER, GLES30.GL_STATIC_READ); |
139 | 139 |
|
140 |
System.arraycopy(original.mVertAttribs,0,mVertAttribs,0,original.mNumVertices*VERT_ATTRIBS); |
|
141 |
setAttribs(mVertAttribs); |
|
140 |
mNumVertices = original.mNumVertices; |
|
141 |
mVertAttribs = new float[mNumVertices*VERT_ATTRIBS]; |
|
142 |
System.arraycopy(original.mVertAttribs,0,mVertAttribs,0,mNumVertices*VERT_ATTRIBS); |
|
143 |
|
|
144 |
mVBO.invalidate(); |
|
145 |
mTFO.invalidate(); |
|
142 | 146 |
} |
143 | 147 |
|
144 | 148 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
330 | 334 |
|
331 | 335 |
for(int i=0; i<numComp; i++) |
332 | 336 |
{ |
333 |
mComponent.get(i).mQueue.send(0.0f,4);
|
|
337 |
mComponent.get(i).mQueue.send(0.0f,3);
|
|
334 | 338 |
} |
335 | 339 |
} |
336 | 340 |
|
... | ... | |
554 | 558 |
{ |
555 | 559 |
return (component>=0 && component<mComponent.size()) ? mComponent.get(component).mTextureMap : null; |
556 | 560 |
} |
561 |
|
|
562 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
563 |
/** |
|
564 |
* Deep copy |
|
565 |
*/ |
|
566 |
public abstract MeshBase deepCopy(); |
|
557 | 567 |
} |
558 | 568 |
|
559 | 569 |
|
Also available in: Unified diff
Progress with the Predeform app; deepCopy for the Meshes; various fixes.