Project

General

Profile

« Previous | Next » 

Revision bc208a9c

Added by Leszek Koltunski almost 4 years ago

Introduce 'tags' (soon to be renamed to 'associations') to Mesh and VertexEffect.
A 'tag' is a way to associate a Vertex Effect only to a subgroup of a given Mesh's vertices (more precisely, only to an arbitrary subset of its Components)

View differences:

src/main/java/org/distorted/library/mesh/MeshQuad.java
46 46

  
47 47
    attribs2[VERT2_ATTRIBS*index + TEX_ATTRIB  ] = x;
48 48
    attribs2[VERT2_ATTRIBS*index + TEX_ATTRIB+1] = 1.0f-y;
49
    attribs2[VERT2_ATTRIBS*index + TAG_ATTRIB  ] = DEFAULT_TAG;
49 50
    }
50 51

  
51 52
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff