Render to Texture at runtime?

BlitzMax Forums/BlitzMax OpenGL Programming/Render to Texture at runtime?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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...