Pixmaps and DirectX

BlitzMax Forums/BlitzMax Bug Reports/Pixmaps and DirectX

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.

The following example gives a blank screen with the PF_RGBA8888 format and using the D3D7Max2DDriver(), using PF_BGRA8888 or GLMax2DDriver() works as expected.
'SetGraphicsDriver GLMax2DDriver()
SetGraphicsDriver D3D7Max2DDriver()

Const Pixfmt=PF_RGBA8888 ' doesn't work in D3D7Max2DDriver()
'Const Pixfmt=PF_BGRA8888

Graphics 640, 480,32

Global pmap:TPixmap = CreatePixmap(100, 100, pixfmt) 
For x = 0 To 99
For y = 0 To 99
WritePixel(pmap, x, y, $ff0080ff) 
Next
Next

DrawPixmap pmap, 0, 0

Flip
WaitKey
End