Dx9 Max2d Updated

BlitzMax Forums/BlitzMax Programming/Dx9 Max2d Updated

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.

Let me see if I can understand.

Do you want to do this every frame? If so then the technique your thinking would be very slow. The Dx9 driver uses managed Texutures as well. Main reason its easy for generic rendering like blitz max. To try and write optimized texture manager for max would be nightmare since you can call anything at any time.

Basically you want to Create an Image Render with MAX2d to it, then be able to draw that image on back buffer?

If thats it, I dont have much time right now, but can probably complete an extension like above.

Something like this.

rt=CreateRenderTarget()
SetRenderTarget(rt)
cls
Draw "Hello World",10,10
RestoreRenderTarget()
DrawRenderTarget rt,x,y
...


I think I can make it do it without haveing to convert back to pixmap. But can still provide mechanims to convert to managed image or pixmap , if wanted.

Might be fun to pull that off.

Doug Stastny