Is there any way to mirror the entire output in Allegro?
I'm developing a program that needs to be used in an environment where the display reflects off a mirror onto the final projection surface. Is there an easy way to do this in Allegro?
These are like draw_sprite(), but they additionally flip the image vertically, horizontally, or both, respectively. Flipping vertically means that the y-axis is reversed, while flipping horizontally means that the x-axis is reversed, between the source and the destination. This produces exact mirror images, which is not the same as rotating the sprite (and it is a lot faster than the rotation routine). The sprite must be a memory bitmap.
Your talking about reflections right? Like looking into water or a mirror? Holy crap Allegro has functions for that?? Sweeeeet
I'm looking for a way to mirror the entire screen, not just a sprite.
Is there a way to mirror the display buffer?
Of course. When copying your backbuffer to the screen, simply draw it upside-down.
Be sure to clear the buffer with magenta/palette index 0 first though (iff you use it anywhere in your graphics, that is).
I'm really curious to hear where you have an environment where the user views the screen via a mirror...
We're creating a Heads-Up Display for use in automobiles. The image is reflected off of the windshield, and therefore needs to be flipped horizontally.
Thanks for the help, should be pretty simple.
Nice I was hoping it was something like that
. I work on vehicle sensor systems and diagnostics... I wish we had that for our display
. I doubt any of our vehicles have a suitable windshield as they are all either vertical or non-existent.
Hey! Where are my cookies?
I ate 'em, tasted bad
Cooool, allegro is taking over the automobile industry!
Heh, you do not know the new lamborghini Allegro VT ? ;-P
{"name":"lamborghini_diablo_sexycar_bis.jpg","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/e\/5\/e52e5bcebe0bd930d78bea70dc79d93b.jpg","w":250,"h":324,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/e\/5\/e52e5bcebe0bd930d78bea70dc79d93b"}