Where did my gradiated pixmap go?
BlitzMax Forums/BlitzMax Beginners Area/Where did my gradiated pixmap go?
| ||
The following code generates and should display a 4 corner/colour gradient rectangle... This should now work on both OpenGL and DirectX, hopefully! |
| ||
What's it do when you use OpenGL? |
| ||
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? |
| ||
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 |
| ||
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? |
| ||
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) |
| ||
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? |