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/MeshTriangles.java
48 48

  
49 49
     attribs2[VERT2_ATTRIBS*vertex + TEX_ATTRIB  ] = x;
50 50
     attribs2[VERT2_ATTRIBS*vertex + TEX_ATTRIB+1] = y;
51
     attribs2[VERT2_ATTRIBS*vertex + TAG_ATTRIB  ] = DEFAULT_TAG;
51 52

  
52 53
     return vertex+1;
53 54
     }

Also available in: Unified diff