GLTexture
Constructors
Properties
Functions
Link copied to clipboard
Link copied to clipboard
The ratio of the imageWidth to the imageHeight.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun drawToBatched(batch: TextureBatch, x: Float, y: Float, destWidth: Float, destHeight: Float)
The same as the other drawTo, but using a TextureBatch for efficiency.
Link copied to clipboard
fun onLoaded(handlerCombination: HandlerCombination = HandlerCombination.AFTER, block: (event: ActionEvent) -> Unit)
Link copied to clipboard
Link copied to clipboard
Returns an ObservableOptionalImage whose value is a scaled version of this image, scaled such that width and height are at most sizeProperty.value.
Link copied to clipboard
Link copied to clipboard
Transfers the texture from the GPU to main memory (which is SLOW). The result is a ByteArray of size width * height * 4, and the format is RGBA. i.e. to get the alpha value at x,y :
Link copied to clipboard