Project

General

Profile

« Previous | Next » 

Revision dbe3079d

Added by Leszek Koltunski almost 4 years ago

Extend the MeshBase.setTextureMaps API so that we are able to set a single texture map to a single texture component, or a few consecutive at a time, not necessarily starting from component 0.

View differences:

src/main/java/org/distorted/library/mesh/DeferredJobs.java
100 100
                                 break;
101 101
        case JOB_TYPE_COPY     : mTarget.copy(mSource[0]);
102 102
                                 break;
103
        case JOB_TYPE_TEXTURE  : mTarget.textureMap(mMaps);
103
        case JOB_TYPE_TEXTURE  : mTarget.textureMap(mMaps,mComp);
104 104
                                 break;
105 105
        case JOB_TYPE_ASSOC    : mTarget.setEffectAssociationNow(mComp,mAndAssoc,mEquAssoc);
106 106
                                 break;
......
335 335

  
336 336
///////////////////////////////////////////////////////////////////////////////////////////////////
337 337

  
338
  static JobNode textureMap(MeshBase target, Static4D[] maps)
338
  static JobNode textureMap(MeshBase target, Static4D[] maps, int comp)
339 339
    {
340 340
    JobNode jn = target.mJobNode[0];
341
    Job job = new Job(JOB_TYPE_TEXTURE,target,null,null,null,maps,0,0,0);
341
    Job job = new Job(JOB_TYPE_TEXTURE,target,null,null,null,maps,comp,0,0);
342 342
    JobNode node = new JobNode(job);
343 343
    node.mPrevJobs.add(jn);
344 344
    jn.mNextJobs.add(node);

Also available in: Unified diff