Where did my gradiated pixmap go?

BlitzMax Forums/BlitzMax Beginners Area/Where did my gradiated pixmap go?

Arowx(Posted 2008) [#1]
The following code generates and should display a 4 corner/colour gradient rectangle...



This should now work on both OpenGL and DirectX, hopefully!


GfK(Posted 2008) [#2]
What's it do when you use OpenGL?


Arowx(Posted 2008) [#3]
You get nothing - No errors and an image that when drawn does not appear??

I've been hunting around in the forum and it would appear that there was an issue with Pixmaps and OpenGL but this was a while ago, with no apparent solution?


Jesse(Posted 2008) [#4]
It works fine on my computer with out any modifications and a substitute 640x480.bmp. A four corner gadient window is displayed.

windows xp sp2
AMD Athlon 64 x2 dual 4200+
Nvidia GeForce 7300GT
Bmax 1.28


Arowx(Posted 2008) [#5]
It should work fine on windows as it defaults to DirectX rendering, I have now updated it so that it will use the OpenGL driver, now what does it do?


Arowx(Posted 2008) [#6]
Well I think I've fixed it at least for opengl, would interested to know if it will work on Vista?

For some bizzar reason I was setting the alpha to 0 and this should have made the image transparent but it was appearing in DirectX (?) but transparent in OpenGL which was correct!

A classic case of it's not a bug it's a feature! ;o)


kenshin(Posted 2008) [#7]
works fine with Vista x64 Ultimate, all m$ updates installed. no sign of the bitmap I supplied though, even resized to 800*600. I can only see the gradient. Is that correct?