Revision e489a5ef
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/library/DistortedNode.java | ||
---|---|---|
60 | 60 |
|
61 | 61 |
////////////////////////////////////////////////////////////////// |
62 | 62 |
|
63 |
public NodeData(long id)
|
|
63 |
NodeData(long id) |
|
64 | 64 |
{ |
65 | 65 |
ID = id; |
66 | 66 |
numPointingNodes= 1; |
src/main/java/org/distorted/library/DistortedObject.java | ||
---|---|---|
182 | 182 |
void drawNoEffectsPriv(DistortedProjection dp) |
183 | 183 |
{ |
184 | 184 |
GLES20.glViewport(0, 0, dp.width, dp.height); |
185 |
mM.sendNoEffects(dp);
|
|
185 |
mM.sendZero(dp);
|
|
186 | 186 |
mV.sendZero(); |
187 | 187 |
mF.sendZero(); |
188 | 188 |
mGrid.draw(); |
src/main/java/org/distorted/library/EffectQueueMatrix.java | ||
---|---|---|
239 | 239 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
240 | 240 |
// here construct the ModelView Matrix, but without any effects |
241 | 241 |
|
242 |
synchronized void sendNoEffects(DistortedProjection dp)
|
|
242 |
synchronized void sendZero(DistortedProjection dp)
|
|
243 | 243 |
{ |
244 | 244 |
Matrix.setIdentityM(mTmpMatrix, 0); |
245 | 245 |
Matrix.translateM(mTmpMatrix, 0, mObjHalfX-dp.width/2, dp.height/2-mObjHalfY, -dp.distance); |
Also available in: Unified diff
Minor stuff