Texture.updateRegion

Sets the pixels of a specified rectangular region

class Texture
void
updateRegion
(
uint offsetx
,
uint offsety
,
uint width
,
uint height
,
uint[] data
)
out {}

Parameters

offsetx uint

x coordinate ( from low left texture corner ) of the low left corner of the region

offsety uint

y coordinate ( from low left texture corner ) of the low left corner of the region

width uint

width of the region

height uint

height of the region

data uint[]

data in row major order of the pixels to be set

Meta