A graphics problem
BlitzMax Forums/BlitzMax Beginners Area/A graphics problem
| ||
Hello I've plyed a lot with Blitz3D In it there was a way to draw on imagebuffers but now in blitzmax I don't really know how to do that and the help is confusing me mre than it helpes me :(( So how da I draw on a image? Like: Setbuffer imagebuffer(imagex) How do you do it in Blitzmax?? Pls help thx |
| ||
graphics 800,600 global myimage1 = loadimage(".\gfx\someimage1.png") global myimage2 = loadimage(".\gfx\someimage2.png") global myimage3 = loadimage(".\gfx\someimage3.png") cls drawimage myimage1,100,200 drawimage myimage2,300,100 drawimage myimage3,500,600 global background = createimage(800,600) grabimage(background,0,0) while not keydown(key_escape) cls drawimage background,0,0 flip wend end '---------------------------------------------------------- not tested, but i think that should work. |
| ||
How do you do it in Blitzmax?? Short answer: You can't.Slightly longer answer: You will need to draw to the backbuffer and then grab it, as suggested above, or get a 3rd party library that does this for you. I believe Indiepath has just the thing. |
| ||
Theres an addon that allows you to use buffers in a usably fast way. Do a search for HighGFX module. |
| ||
Or use TPixmap. |