Revision 34bc9f31
Added by Leszek Koltunski about 2 years ago
src/main/java/org/distorted/tutorials/TutorialRenderer.java | ||
---|---|---|
30 | 30 |
import org.distorted.library.main.DistortedLibrary; |
31 | 31 |
import org.distorted.library.main.DistortedScreen; |
32 | 32 |
|
33 |
import org.distorted.library.mesh.MeshBase; |
|
33 | 34 |
import org.distorted.objectlib.effects.BaseEffect; |
35 |
import org.distorted.objectlib.main.ObjectControl; |
|
34 | 36 |
|
35 | 37 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
36 | 38 |
|
... | ... | |
74 | 76 |
@Override |
75 | 77 |
public void onSurfaceCreated(GL10 glUnused, EGLConfig config) |
76 | 78 |
{ |
77 |
DistortedLibrary.setMax(EffectType.VERTEX,61); // 60 Minx quaternions + rotate |
|
79 |
DistortedLibrary.setMax(EffectType.VERTEX, ObjectControl.MAX_QUATS+1); |
|
80 |
MeshBase.setMaxEffComponents(ObjectControl.MAX_MOVING_PARTS); |
|
81 |
|
|
78 | 82 |
VertexEffectRotate.enable(); |
79 | 83 |
VertexEffectQuaternion.enable(); |
80 | 84 |
BaseEffect.Type.enableEffects(); |
Also available in: Unified diff
Generalize the max number of moving parts and max size of quat group.