Any way to mirror the complete output?
Reilly Hamilton

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?

Rampage

The manual said:

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.

julian_boolean

Your talking about reflections right? Like looking into water or a mirror? Holy crap Allegro has functions for that?? Sweeeeet

Reilly Hamilton

I'm looking for a way to mirror the entire screen, not just a sprite.

Is there a way to mirror the display buffer?

X-G

Of course. When copying your backbuffer to the screen, simply draw it upside-down.

gnolam

Be sure to clear the buffer with magenta/palette index 0 first though (iff you use it anywhere in your graphics, that is).

gillius

I'm really curious to hear where you have an environment where the user views the screen via a mirror...

Reilly Hamilton

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.

gillius

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.

Rampage

Hey! Where are my cookies? >:(

ixilom

I ate 'em, tasted bad :-X

ImLeftFooted

Cooool, allegro is taking over the automobile industry!

GullRaDriel

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"}lamborghini_diablo_sexycar_bis.jpg

Kibiz0r

:o

Thread #591312. Printed from Allegro.cc