Lines Matching refs:components

304     protected int components = 0;
307 * derived from components * format.getComponentSize()
453 * @param normalized Set to true if integer components should be converted
457 * the components will be converted to the range 0.0 - 1.0 by dividing
465 * @return True if integer components should be converted to the range 0-1.
487 * @return The number of components of the given {@link Format format} per
491 return components;
498 int elements = data.capacity() / components;
510 * @param components The number of components per element.
516 public void setupData(Usage usage, int components, Format format, Buffer data){
526 if (components < 1 || components > 4)
527 throw new IllegalArgumentException("components must be between 1 and 4");
530 this.components = components;
533 this.componentsLength = components * format.getComponentSize();
596 int numElements = data.capacity() / components;
598 this.componentsLength = components * format.getComponentSize();
624 int total = components * numElements;
678 int inPos = elementIndex * components;
723 int inPos = elementIndex * components;
783 if (outVb.format != format || outVb.components != components)
786 int inPos = inIndex * components;
787 int outPos = outIndex * components;
788 int elementSz = components;
848 * of elements with the given number of components in each element.
850 public static Buffer createBuffer(Format format, int components, int numElements){
851 if (components < 1 || components > 4)
852 throw new IllegalArgumentException("Num components must be between 1 and 4");
854 int total = numElements * components;
909 vb.components = components;
959 oc.write(components, "components", 0);
993 components = ic.readInt("components", 0);
1000 componentsLength = components * format.getComponentSize();