DX Render to Texture

BlitzMax Forums/BlitzMax Programming/DX Render to Texture

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.

Tim, I just double-checked your R2T code and it renders to a seperate surface which it then displays.
What I am trying to do here is change the image's texture which is why I need the blt... unless I have missed something.
<edit> In fact, I think we're doing the same thing. My render surface displays correctly and can be drawn. However, I need to then blt the contents of that surface to the image surface.
Does anybody know if this is right...
	Local src[]=[0,0,ImageWidth(image),ImageHeight(image)]  	
	Local dest[]=[0,0,ImageWidth(image),ImageHeight(image)]  
	dest[2]:+dest[0]
	dest[3]:+dest[1]
	' Do the blit from the dummy rendertarget to the image surface.
	TD3D7ImageFrame(image.frame(frame)).surface.Blt dest,mysurf,src,0,Null

?