Revision ff31e865
Added by Leszek Koltunski almost 9 years ago
| src/main/java/org/distorted/examples/quaternion/QuaternionRenderer.java | ||
|---|---|---|
| 106 | 106 |
mEffects.abortEffects(EffectTypes.MATRIX); |
| 107 | 107 |
mEffects.move( new Static3D( (width-scaleFactor)/2 , (height-scaleFactor)/2 , 0) ); |
| 108 | 108 |
mEffects.scale(scaleFactor); |
| 109 |
mEffects.quaternion( mRot, new Static3D(0.5f,0.5f,0) );
|
|
| 109 |
mEffects.quaternion( mRot, new Static3D( (float)mTexture.getWidth()/2, (float)mTexture.getHeight()/2 , 0) );
|
|
| 110 | 110 |
|
| 111 | 111 |
mScreen.resize(width, height); |
| 112 | 112 |
} |
Also available in: Unified diff
Small bugfix