Examples of toRGBAArray()


Examples of toxi.color.ReadonlyTColor.toRGBAArray()

    @Override
    public void compileFace(AttributedFace f, ItemIndex<?> index, float[] buf,
            int offset) {
        int[] vn = f.attribs.get(IndexedTriangleMesh.ATTR_VCOLORS);
        ReadonlyTColor c = (ReadonlyTColor) index.forID(vn[0]);
        c.toRGBAArray(buf, offset);
        c = (ReadonlyTColor) index.forID(vn[1]);
        c.toRGBAArray(buf, offset + 4);
        c = (ReadonlyTColor) index.forID(vn[2]);
        c.toRGBAArray(buf, offset + 8);
    }
View Full Code Here

Examples of toxi.color.ReadonlyTColor.toRGBAArray()

            int offset) {
        int[] vn = f.attribs.get(IndexedTriangleMesh.ATTR_VCOLORS);
        ReadonlyTColor c = (ReadonlyTColor) index.forID(vn[0]);
        c.toRGBAArray(buf, offset);
        c = (ReadonlyTColor) index.forID(vn[1]);
        c.toRGBAArray(buf, offset + 4);
        c = (ReadonlyTColor) index.forID(vn[2]);
        c.toRGBAArray(buf, offset + 8);
    }

    @Override
View Full Code Here

Examples of toxi.color.ReadonlyTColor.toRGBAArray()

        ReadonlyTColor c = (ReadonlyTColor) index.forID(vn[0]);
        c.toRGBAArray(buf, offset);
        c = (ReadonlyTColor) index.forID(vn[1]);
        c.toRGBAArray(buf, offset + 4);
        c = (ReadonlyTColor) index.forID(vn[2]);
        c.toRGBAArray(buf, offset + 8);
    }

    @Override
    public ItemIndex<?> getIndex() {
        return mesh.attributes.get(IndexedTriangleMesh.ATTR_VCOLORS);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.