750 |
return impl_ByteVector_getInts(getId()); |
return impl_ByteVector_getInts(getId()); |
751 |
} |
} |
752 |
|
|
753 |
|
/** Shade the given Texture into this bytevector, using 32-bit floats. |
754 |
|
* Sets the bytevector length to w*h*(d > 0?d : 1) * comps * 4 |
755 |
|
*/ |
756 |
|
public int shade(int w, int h, int d, int comps, |
757 |
|
String shaderName, String[] params) { |
758 |
|
return impl_ByteVector_shade(getId(), w, h, d, comps, shaderName, params); |
759 |
|
} |
760 |
|
|
761 |
} |
} |
762 |
/** Create a new bytevector of size 0. |
/** Create a new bytevector of size 0. |
763 |
*/ |
*/ |
784 |
static private native byte[] impl_ByteVector_get(int id); |
static private native byte[] impl_ByteVector_get(int id); |
785 |
static private native int[] impl_ByteVector_getInts(int id); |
static private native int[] impl_ByteVector_getInts(int id); |
786 |
|
|
787 |
|
static private native int impl_ByteVector_shade(int id, int w, int h, int d, |
788 |
|
int comps, String shaderName, String[] params); |
789 |
|
|
790 |
|
|
791 |
//----------Misc |
//----------Misc |
792 |
|
|
793 |
/** CallGL the given string. |
/** CallGL the given string. |