Project

General

Profile

« Previous | Next » 

Revision 96877ab4

Added by Leszek Koltunski over 4 years ago

Begin porting RubikCube to the new SingleMesh library. This will make rendering much faster - e.g. in case of Cube 5, instead of 98 renders of individual Cubits, there will be one render of the whole Mesh.

View differences:

src/main/java/org/distorted/library/mesh/MeshBase.java
495 495
     int num_comp = mTexComponent.size();
496 496
     int num_maps = maps.length;
497 497
     int min = Math.min(num_comp-startComponent, num_maps);
498
     int vertex = 0;
498
     int vertex = startComponent>0 ? mTexComponent.get(startComponent-1).mEndIndex+1 : 0;
499 499
     Static4D newMap, oldMap;
500 500
     TexComponent comp;
501 501
     float newW, newH, ratW, ratH, movX, movY;

Also available in: Unified diff