Global skyi=LoadPixmap("sky2.png") Global sky=bglTexFromPixmap( skyi ) . . . For Local x:Int=1 To 200 WritePixel(skyi,Rand(0,255),Rand(0,255),rnd(0,255)+(Int(rnd(0,255)) Shl 8)+(Int(rnd(0,255)) Shl 16)) next . . . sky=bglTexFromPixmap( skyi )
but only do bgltextfrompixmap for as few text's as
needed because transfering multiple textures to vid
ram will be slow...