ImageData

class ImageData(val width: Int, val height: Int, val rgba: ByteArray)

Tightly packed RGBA8888 image carrier — what flows from ImageDecoder into ImageTexture for GL upload. The byte layout is RGBARGBA... with premultiplied alpha, matching what glTexImage2D(GL_RGBA, GL_UNSIGNED_BYTE, ...) expects.

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, rgba: ByteArray)

Properties

Link copied to clipboard
val height: Int
Link copied to clipboard
Link copied to clipboard
val width: Int