Project

General

Profile

« Previous | Next » 

Revision c92c163c

Added by Leszek Koltunski over 3 years ago

New API for the library: add an empty texture component to a Mesh.
Use this in thr Magic Cube to add empty texture components to some types of cubits.

View differences:

src/main/java/org/distorted/library/mesh/MeshBase.java
220 220
       }
221 221
     }
222 222

  
223

  
224
///////////////////////////////////////////////////////////////////////////////////////////////////
225

  
226
   void addEmptyTexComponentNow()
227
     {
228
     mTexComponent.add(new TexComponent(mNumVertices-1));
229
     }
230

  
223 231
///////////////////////////////////////////////////////////////////////////////////////////////////
224 232

  
225 233
   void mergeEffComponentsNow()
......
1210 1218
       }
1211 1219
     }
1212 1220

  
1221
///////////////////////////////////////////////////////////////////////////////////////////////////
1222
/**
1223
 * Adds an empty (no vertices) texture component to the end of the text component list.
1224
 *
1225
 * Sometimes we want to do this to have several Meshes with equal number of tex components each.
1226
 */
1227
   public void addEmptyTexComponent()
1228
     {
1229
      if( mJobNode[0]==null )
1230
       {
1231
       addEmptyTexComponentNow();
1232
       }
1233
     else
1234
       {
1235
       mJobNode[0] = DeferredJobs.addEmptyTex(this);
1236
       }
1237
     }
1238

  
1213 1239
///////////////////////////////////////////////////////////////////////////////////////////////////
1214 1240
/**
1215 1241
 * Return the number of texture components, i.e. individual subsets of the whole set of vertices

Also available in: Unified diff