Pixmaps and DirectX

Archives Forums/BlitzMax Bug Reports/Pixmaps and DirectX

Azathoth(Posted 2008) [#1]
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



degac(Posted 2008) [#2]
I've always a blue box at the top-left on a black screen in every 4 combinations of (dx / open gl driver, const RGBA / BGRA)


Zeke(Posted 2008) [#3]
Yeah same what degac says, nothing wrong here. Win XP sp2, ati radeon x1600, etc...


Azathoth(Posted 2008) [#4]
I modifed the example from this post http://www.blitzbasic.com/Community/posts.php?topic=74077#827623