Esempio n. 1
0
 protected internal virtual void readVertex(Memory mem, int index, VertexState v, bool readTexture)
 {
     if (bufferVertexReader == null)
     {
         int addr = context.vinfo.getAddress(mem, index);
         context.vinfo.readVertex(mem, addr, v, readTexture, VideoEngine.Instance.DoubleTexture2DCoords);
     }
     else
     {
         // This is used for spline and bezier curves:
         // the VideoEngine is computing the vertices and is pushing them into a buffer.
         bufferVertexReader.readVertex(index, v);
     }
     if (context.vinfo.weight != 0)
     {
         VideoEngine.doSkinning(context.bone_uploaded_matrix, context.vinfo, v);
     }
 }